LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2013, 09:12 AM   #1
J.A.X
Member
 
Registered: Jan 2010
Distribution: Fedora 19
Posts: 83

Rep: Reputation: 3
Apache not parsing php


Hello
I'm a web designer, after installing F19 Apache won't work, I had 3 projects which I did copy before installing F19 and placed them after installing F19 in /var/www/html, navigating with my Firefox to localhost/project1/index.php just returns a blank page which is not right.

I've created a test php file with root :
PHP Code:
<?php 
echo phpinfo();
?>
and it worked !!!!

so I did
PHP Code:
chmod -R 777 /var/www/html/project1 
PHP Code:
chown -R root.root /var/www/html/project1 
and did not work !!!, apache still returning blank pages.
 
Old 06-25-2013, 09:56 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,990

Rep: Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316
Quote:
Originally Posted by J.A.X View Post
Hello
I'm a web designer, after installing F19 Apache won't work, I had 3 projects which I did copy before installing F19 and placed them after installing F19 in /var/www/html, navigating with my Firefox to localhost/project1/index.php just returns a blank page which is not right.

I've created a test php file with root :
PHP Code:
<?php 
echo phpinfo();
?>
and it worked !!!!
Why did you create it as root?
Quote:
so I did
PHP Code:
chmod -R 777 /var/www/html/project1
chown 
-R root.root /var/www/html/project1 
and did not work !!!, apache still returning blank pages.
The first place to look since it's returning a blank page, is in the apache error log, typically in /var/log/apache2/error_log. If there are ANY errors/missing files, PHP returns the errors there, and displays a blank page.

You're using a beta version of Fedora...it could very well be that the PHP includes/libraries aren't totally done/available yet, or you didn't install a particular PHP library that your code requires. Since the test page works, you obviously have a working PHP installation, so that's a likely bet.
 
Old 06-25-2013, 02:26 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,702

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
The usual reason is that you forgot to enable php in apache/SELinux.

Since the php code is a html comment, did you look at the source for the "blank page"?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache not parsing PHP on Ubuntu 8.04 thegerm Linux - Server 2 09-03-2010 04:25 AM
Apache not parsing php pages! bagfull Fedora 2 02-19-2010 06:05 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration