LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-06-2005, 02:22 PM   #1
spacy2003
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Rep: Reputation: 0
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 ?
 
Old 02-06-2005, 02:28 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,165

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Make sure the permissions on the php file are set to 644.
 
Old 02-06-2005, 02:34 PM   #3
spacy2003
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
thnx it works
Is there any way that a new php file is automaticly chmod'ed to 644 ?

Last edited by spacy2003; 02-06-2005 at 02:35 PM.
 
  


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
Fedora 1 printing blank pages Rollie Peck Linux - Newbie 2 08-21-2005 08:39 PM
CUPS = only blank pages georgekm Linux - Software 1 11-12-2004 07:43 PM
php not working Fedora 2 (blank screen) jomama Programming 2 08-27-2004 03:33 PM
php not working Fedora 2 (blank screen) jomama Linux - Software 1 08-27-2004 11:42 AM
Blank pages before and after printing bspicer Linux - General 0 05-13-2002 03:16 PM


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