LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php 5.0 blank pages (fedora) (https://www.linuxquestions.org/questions/linux-software-2/php-5-0-blank-pages-fedora-286958/)

spacy2003 02-06-2005 01:22 PM

php 5.0 blank pages (fedora)
 
I installed apache 2.0 and php 5 with .rpm files and everything works great
except that php files are shown as blank pages.

Php is installed correct because i've tested it with a file, like so:
# php /var/www/html/phpinfo.php

When i enter this command in the terminal i get a useable html file, the way it supposed to be.

The problem is with apache, but i cant find the problem, here is the httpd.conf:
LoadModule php5_Module /modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php

DocumentIndex index.php



Can anyone help ? :Pengy:

michaelk 02-06-2005 01:28 PM

Make sure the permissions on the php file are set to 644.

spacy2003 02-06-2005 01:34 PM

thnx it works :p
Is there any way that a new php file is automaticly chmod'ed to 644 ?


All times are GMT -5. The time now is 12:57 AM.