LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-22-2011, 12:34 PM   #1
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Rep: Reputation: 0
LoadModule php5_module modules/libphp5.so


Dear all
i have a web server that ran perfectly php site. today that i checked it my web site output was white page, nothing output. when i tried to restart httpd i received this error:


Starting httpd:[warn] module php5_module is already loaded, skipping

i found that there is a config file /etc/httpd/conf.d/php.conf that contains : " #LoadModule php5_module modules/libphp5.so"
i commented it and restart httpd. everything is Ok. but by web site still results white page, i mean nothing.

please somebody help me, thanks
 
Old 09-22-2011, 12:37 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,605

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by ahmadirad View Post
Dear all
i have a web server that ran perfectly php site. today that i checked it my web site output was white page, nothing output. when i tried to restart httpd i received this error:

Starting httpd:[warn] module php5_module is already loaded, skipping

i found that there is a config file /etc/httpd/conf.d/php.conf that contains : " #LoadModule php5_module modules/libphp5.so"
i commented it and restart httpd. everything is Ok. but by web site still results white page, i mean nothing.
please somebody help me, thanks
Well, you say "everything is ok"...do you still have a problem or not?

The warning is just that...a warning. The better questions to ask are "did anything change on the page(s) lately?" and "what do the apache error logs show?".
 
Old 09-22-2011, 01:38 PM   #3
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
sorry. about "everything is ok" i mean httpd restart. but web site doesn't load. i checked http error_log. my web site's default folder is /var/www/html but when i want to view web site register an error in error_log : "file does not exits: /var/www/html/web. and nothing displayed.
 
Old 09-22-2011, 01:42 PM   #4
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
there is a html file in my web site that when i check, it loaded. but default web page "index.php" doesn't load".
 
Old 09-22-2011, 01:47 PM   #5
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
when i check web site the display is bank(white)i mean the index.php doesn't load.
 
Old 09-22-2011, 02:49 PM   #6
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
Put any test Index.php content in your web root directory and try what it exactly shows.

and post your HTTPD error log content.
 
Old 09-22-2011, 03:02 PM   #7
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
File does not exist: /var/www/html/web
 
Old 09-22-2011, 03:04 PM   #8
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
pleaee check http://ric.ir and http://ric.ir/test/21.jpg
 
Old 09-22-2011, 03:58 PM   #9
resolv_25
Member
 
Registered: Aug 2011
Location: Croatia
Distribution: Debian 10/Ubuntu 20.04
Posts: 64

Rep: Reputation: 15
White screen of death, it happened to me, but I can't remember exact reason, try finding on google. there might be various reason.

Seems that PHP interpreter for Apache is not working. Maybe some update of Apache or PHP has been made?

Also, check out apache log.

Which version of Apache are you using, which OS ?
On Ubuntu, with Apache 2, there is a directory /etc/apache2/mods-enabled
there is a php5.load with only one line:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

Try to check again where is libphp5.so for Apache, and check for your version of OS/Apache where shall it be in configuration, in httpd.conf or somewhere else.
 
Old 09-22-2011, 04:16 PM   #10
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
centos 5.6 / php 5.1.6/httpd 2.2.19
 
Old 09-22-2011, 05:26 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,605

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by ahmadirad View Post
centos 5.6 / php 5.1.6/httpd 2.2.19
Again, from my first post:
  1. Did anything change on the page(s) lately?
  2. What do the apache error logs show?
The warning you get won't affect PHP running, as I've seen that error before, and PHP pages render fine. The only times I've seen the WSOD is if the PHP page itself has errors on it (see question one...have the page(s) been changed lately?), or there is another error (see question two...look in the Apache error_log file).

The error logs TELL YOU exactly what's wrong with the page loading. That should be your first place to look....
Quote:
Originally Posted by ahmadirad
File does not exist: /var/www/html/web
Ok...is that your DocumentRoot directory?? If it's been deleted, that would certainly explain why you don't have web content. If so, restore it from backups.

Last edited by TB0ne; 09-22-2011 at 05:27 PM.
 
Old 09-23-2011, 12:10 AM   #12
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
no changes to index.php and DocumentRoot was /var/www/html at first. there is no /var/www/html/web before. i don't know why it try to execute default web page into directory /var/www/html/web. also there are some .php files in the DocumentRoot that not of them can run i mean when i type url with that file nothing to display (all .php file goes blank)
 
Old 09-23-2011, 01:25 AM   #13
resolv_25
Member
 
Registered: Aug 2011
Location: Croatia
Distribution: Debian 10/Ubuntu 20.04
Posts: 64

Rep: Reputation: 15
Can you get any php page?

You can create one and put this is inside:
Code:
<?php
phpinfo();
?>
If nothing is shown, most probably is problem with php module for Apache.

I'm not sure about CentOS, but in this directory: /etc/httpd/
shall be directory mods-enabled
Check out the file php5.load
It must have line that loads php5 module (something as in previous post);
Code:
LoadModule php5_module path/to/libphp5.so
Find out the path of that module on your OS, it shall be:
/usr/lib/httpd/modules/libphp5.so


Detailed explanation is here: http://www.centos.org/docs/5/html/De...e-addmods.html

- If there is no directory as /etc/httpd/mods-enabled
put that line within httpd.conf


After that restart Apache.
 
Old 09-23-2011, 03:42 AM   #14
ahmadirad
Member
 
Registered: Dec 2010
Posts: 34

Original Poster
Rep: Reputation: 0
thanks for your attention. by restore SQL, every things is OK and all PHP files open correctly
 
  


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
cannot access `/usr/local/apache2/modules/libphp5.so' gravesb Linux - Software 13 12-02-2011 02:56 AM
PHP5 + Apache 2.x : /usr/local/modules/libphp5.so: Undefined symbol "apr_table_set" Ephracis Linux - Software 6 10-01-2010 12:26 PM
Centos 5.0, php-5.2.8 installation, chmod 755 /usr/local/apache2/modules/libphp5.so xxx_anuj_xxx Linux - Server 1 12-30-2008 12:37 PM
Centos 5.0, php-5.2.8 installation, chmod 755 /usr/local/apache2/modules/libphp5.so xxx_anuj_xxx Linux - Server 0 12-30-2008 10:37 AM
Apache: Where to place 'Loadmodule' on SuSE? Maarten_Holland SUSE / openSUSE 1 04-29-2005 03:28 AM

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

All times are GMT -5. The time now is 10:42 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
Open Source Consulting | Domain Registration