LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-16-2003, 02:28 AM   #1
rolling_titan
LQ Newbie
 
Registered: Oct 2003
Location: Pune
Posts: 2

Rep: Reputation: 0
How do i configure RH-9, apache 2.0, php and mysql


hello all,
Let me get straight to the point.
I have an application to be hosted on RH-9. I have installed php,httpd mysql all using rpms.
I am able to view the test page of apache server.
I could create datbses and add tables (so i guess apache and mysql are correctly installed)

I have created a test1.php file using the vi editor on a locl directory.

How do i execute it ?
are there any changes to be done in the /etc/httpd/conf/httpd.conf file ?
also the
/etc/php.ini file ?

thanks
 
Old 10-16-2003, 02:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Just put the php file in your DocumentRoot (see the value of this directive in httpd.conf) directory. Then access it via your browser.
 
Old 10-16-2003, 11:21 PM   #3
rolling_titan
LQ Newbie
 
Registered: Oct 2003
Location: Pune
Posts: 2

Original Poster
Rep: Reputation: 0
thanks a bunch

hey david_ross,

thanks a lot for ur suggestion. i copied the php files from my local directory to /var/www/html. i found this path on the test page of apache.

if i want to store files in local directories. what should i do ?
mention the path in the url ? or change the httpd.conf file ?

anyways thanks a lot.
 
Old 10-17-2003, 05:26 AM   #4
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Rep: Reputation: 15
hi just look at trickykids footnote , it may help you ..

it definitely helped me :-)

good luck...
 
Old 10-18-2003, 06:56 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you want to change the location where your server looks for web files then change the DocumentRoot directive or add an aliased directory. Take a look at the docs on:
http://httpd.apache.org

If you are unsure then just reply again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 2, php 5 and mysql 5 install and configure librano Linux - Enterprise 3 11-13-2005 05:52 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
PHP ./configure command dilema (for mysql) tuka Linux - Newbie 2 11-03-2003 09:26 PM
Configure Apache, PHP and MySQL on RedHat 9.0 siripr Linux - Newbie 2 10-21-2003 02:35 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration