LinuxQuestions.org
Review your favorite Linux distribution.
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 09-01-2008, 07:25 PM   #1
Manxa
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: Disabled
PHP module config problem?


Hello,

First time posting here, greetings!

I'm having a problem w/ either apache or the php module for apache. My routers/firewalls are set up to allow the appropriate traffic through. I can connect to the apache webserver via my outside IP (routing tables are set up correctly in router), and get a HTTP code 200 returned in the access log of server.

However, the php code is not executed. Instead I get a blank white screen (plain .htm files will work perfectly and show code, .php will not).

Anyone have any ideas?
 
Old 09-01-2008, 10:35 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Sounds to me like the php module isn't loading or isn't setup/configured properly. What's your apache httpd.conf file look like and do you actually have php installed?
 
Old 09-01-2008, 10:52 PM   #3
Manxa
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by trickykid View Post
Sounds to me like the php module isn't loading or isn't setup/configured properly. What's your apache httpd.conf file look like and do you actually have php installed?
here is the abridged version of the httpd.conf

[pre]
Listen 192.168.1.6:80

# Use for PHP 5.x:
# already loaded?
#LoadModule php5_module modules/libphp5.so
AddHandler php5-script php

DirectoryIndex index.html index.html.var index.php

ServerName 192.168.1.6

DocumentRoot "/var/www/html"

Include conf.d/*.conf

# PHP Syntax Coloring
# (optional but useful for reading PHP source for debugging):
AddType application/x-httpd-php-source phps
[/pre]

not sure how much you want....when i uncomment the LoadModule php5_module and restart the httpd service, i receive a msg stating that the php5 module is already loaded, however i don't have any other lines stating that the module is loaded...

and yes, i do have php5 installed.
 
  


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
PHP not starting - xmlreader module problem riamu Fedora 0 08-13-2008 11:51 PM
problem installing PHP 5 xml2-config not found SpinningCone Linux - Newbie 5 02-21-2007 08:06 AM
PHP ftp module problem 0x0000h Linux - Software 2 11-08-2006 03:54 PM
Apache / PHP / Mysql config problem - debian bandit Linux - Software 14 09-03-2003 10:04 AM
php or apache config problem mattkat Linux - Software 2 04-30-2003 07:25 PM


All times are GMT -5. The time now is 08:05 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