LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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: 697

Rep: Reputation: 93
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,217

Rep: Reputation: 131Reputation: 131
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


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 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/Novell 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


All times are GMT -5. The time now is 07:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration