Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

starting httpd....failed :´-( please help a newbie

Status
Not open for further replies.

18060

Technical User
Nov 1, 2001
2
DE
As an Apache newbie i need some help.
After installation of every availlable perl module and mySql on Suse 7.1 distribution
Apache won´t start anymore.
During boot process i get the following error-
message:

Starting httpd [ SuSEHelp PHP3 mod_perl LDAP contrib backhand ]
see /var/log/httpd/rcapache.log for details
failed

The content of rcapache.log:

Syntax error on line 198 of /etc/httpd/httpd.conf:
Cannot load /usr/lib/apache/libphp3.so into server: shared object not open

rows 197 - 199 of httpd.conf

<IfDefine PHP>
LoadModule php3_module /usr/lib/apache/libphp3.so
</IfDefine>

I don´t have any idea what the error could be.

with regards

hannemann
 
Well, is there a file called libphp3.so in the /usr/lib/apache/ directory? If not, then that is your problem. Installing &quot;every available module&quot; for Apache is something you should stear clear of. Install modules as you need them, and restart Apache after each module installation, so you can more easily identify problems, and so that you don't install more than you need.

Actually the configuration in question in your httpd.conf relates to the running of the PHP module, which is not Perl. If you don't know what PHP is, I greatly recommend you learn it, since it is probably the best scripting environment for web development. (hint: it is much easier than Perl)

However, the module that Apache is trying to load is the old version of PHP. PHP is now at version 4, which is much better. Your best bet at the moment is to simply comment out the lines in question:
Code:
#<IfDefine PHP>
#LoadModule php3_module /usr/lib/apache/libphp3.so
#</IfDefine>
and see if Apache starts now. Also, look and see if there is any reference to libphp4.so somewhere near there. It is possible that Apache was trying to run both versions at once. If Apache runs fine with libphp4.so, then you can leave it in there and start learning PHP. (
If you need any more help, just post here ;-).
 
Hi,

Assuming you installed apache from Suse pre-packaged rpm, I would imagine you probably don't have the mod_php rpms installed :


Download those to a temp directory, 'cd' to that dierctory and then do as root :

rpm -UVh mod_php*.rpm

The thing you'd have to watch is where the rpm puts the modules :

rpm -ql mod_php | grep libphp
rpm -ql mod_php4 | grep libphp

If its different to the path you originally mentioned change your httpd.conf accordingly.

Hope this helps
 
Thank you both for your hints

but after erasing of PHP4 everything works fine.
There´s a PHP4 package on the SuSE Dist. and if i Install it Apache won´t start anymore.

I tryed to download PHP4 from Suse directly but these rpms don´t work at all.
I get an error when i try the make command.
I don´know the error-message yet but maybe you have any suggestions.

bye

Hannemann :cool:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top