Help needed to run php page(Strange query)

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
pinga123
Forum Newbie
Posts: 1
Joined: Thu Mar 11, 2010 4:14 am

Help needed to run php page(Strange query)

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

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

Post by VladSun »

Code: Select all

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

You may need to change /etc/apache2 to conform your setup.
There are 10 types of people in this world, those who understand binary and those who don't
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

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

Post by mikosiko »

In addition to what VladSun posted, look also under /var/www ... otherwise look in your apache configuration file how is DocumentRoot defined
Post Reply