LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-19-2010, 04:45 AM   #1
bagfull
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Exclamation Apache not parsing php pages!


Hi,

I have a Cent OS 5.4 32 bit final installed in my dedicated server.

I used to run lighttpd with php in my server until now and all was fine.
But yesterday I changed my website which needs apache to run. So installed apache using yum install httpd command.

Then I added the virtual host name of my domain in webmin panel but when i try to run my php script in browser then its not opening php pages.

Instead it downloads php files like index.php when i open in browser.
So I guess apache is not able to compile and run php pages. Only html pages are opening right now..

Can anyone help me with this issue ?

I can pay for this service if its resolved. Its very small problem but i don't know how to resolve it.

Waiting for urgent replies.. If possible pm me if anyone can help me!
 
Old 02-19-2010, 05:33 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Make sure you have httpd and php installed by running "yum install httpd php".
Next verify that you have the file /etc/httpd/conf.d/php.conf and run
"service httpd restart". That should make it work.
 
Old 02-19-2010, 06:05 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
1.Makesure httpd service
ps aux | grep http

2. save the following as index.php at your doumentroot directory and check the output(http://localhost/index.php)
Quote:
<HTML>
<BODY>
<? phpinfo(); ?>
</BODY>
</HTML>
3. check whether the php module loaded in apache
 
  


Reply

Tags
apache, php



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installed php and apache yet my php pages dont load ?? jessica_lilly Linux - Software 1 11-13-2007 01:57 AM
Apache parsing css files for php scripting. dickohead Programming 1 09-14-2006 04:40 AM
Parsing PHP Scripts using Apache in SuSe 9.3 (without a dedicated server) elliotfuller SUSE / openSUSE 7 07-27-2005 11:40 AM
Apache-ssl not correctly parsing php files jme Linux - Software 2 05-03-2005 12:04 PM
Cant Get Apache to execute php pages nevarlen Linux - Newbie 1 02-17-2005 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:37 AM.

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