Page 1 of 1

Help needed to run php page(Strange query)

Posted: Thu Mar 11, 2010 4:21 am
by pinga123
Hi guys i m running a linux server with following os.
uname -o
GNU/Linux
lsb_release -a
LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: EnterpriseEnterpriseAS
Description: Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
Release: 4
Codename: OctoberUpdate7
Thanks in advance.
I m running following Apache web server version.

Code: Select all

httpd -v
Server version: Apache/2.0.52
Server built: Jun 11 2008 19:01:13
How would i find the root directory of Apache server to put my php pages.
Please help.

Re: Help needed to run php page(Strange query)

Posted: Thu Mar 11, 2010 7:47 am
by VladSun

Code: Select all

grep -R DocumentRoot /etc/apache2/*
will output it.

You may need to change /etc/apache2 to conform your setup.

Re: Help needed to run php page(Strange query)

Posted: Thu Mar 11, 2010 12:37 pm
by mikosiko
In addition to what VladSun posted, look also under /var/www ... otherwise look in your apache configuration file how is DocumentRoot defined