Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

problems starting apache with php

Shabu Khan-2
Frequent Advisor

problems starting apache with php

I've fixed this before, but I am having difficulty now, looks simple ...

OS: HP-UX, IA 64
# httpd -v
Server version: Apache/2.2.4 (Unix)
Server built: May 16 2007 17:59:02

# php -v
PHP 5.3.2 (cli) (built: Mar 11 2010 21:40:25)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


# /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 103 of /usr/local/apache2/etc/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: No such file or directory

# grep libphp5.so httpd.conf
LoadModule php5_module lib/modules/libphp5.so


#/usr/local/apache2/lib/modules]> ls -l libphp5.so
-rwxr-xr-x 1 www www 19069800 Mar 11 13:40 libphp5.so

Nothing in the logs ...

Any thoughts?
7 REPLIES
Ivan Krastev
Honored Contributor

Re: problems starting apache with php

See this:
Cannot load /usr/local/apache2/modules/libphp5.so into server: No such file or directory

compared to this:
usr/local/apache2/lib/modules]> ls -l libphp5.so
-rwxr-xr-x 1 www www 19069800 Mar 11 13:40 libphp5.so


1st is: /usr/local/apache2/modules/...

2nd: /usr/local/apache2/lib/...


regards,
ivan
Kapil Jha
Honored Contributor

Re: problems starting apache with php

you may have to make a link the /lib or copy the library file in lib directory.
/usr/local/apache2/lib/

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Shabu Khan-2
Frequent Advisor

Re: problems starting apache with php

Well, I've been playing around with the configs, so sorry bad example ...

....from httpd.conf....

LoadModule userdir_module lib/modules/mod_userdir.so
LoadModule php5_module lib/modules/libphp5.so
LoadModule alias_module lib/modules/mod_alias.so
LoadModule rewrite_module lib/modules/mod_rewrite.so

[www@myhost:/usr/local/apache2/etc]> ps -ef|grep apache
www 28676 28652 0 19:14:49 pts/3 0:00 grep apache

[www@myhost:/usr/local/apache2/etc]> ls -l ../modules/libphp5.so
-r-xr-xr-x 1 www www 19069800 Mar 29 17:11 ../modules/libphp5.so

[www@myhost:/usr/local/apache2/etc]> ls -l ../lib/modules/libphp5.so
-r-xr-xr-x 1 www www 19069800 Mar 11 13:40 ../lib/modules/libphp5.so

[www@myhost:/usr/local/apache2/etc]> start
httpd: Syntax error on line 101 of /usr/local/apache2/etc/httpd.conf: Cannot load /usr/local/apache2/lib/modules/libphp5.so into server: No such file or directory

Highlighted
Shabu Khan-2
Frequent Advisor

Re: problems starting apache with php


Any thoughts?
Shabu Khan-2
Frequent Advisor

Re: problems starting apache with php

I was able to resolve this by downloading HP Webserver suite (Apache and php), installing, configuring.

From the logs:

[Wed Mar 31 14:25:51 2010] [notice] Apache/2.2.8 HP-UX_Apache-based_Web_Server (Unix) DAV/2 PHP/5.2.6 configured -- resuming normal operations.

Closing this thread.

Thanks,
Shabu Khan-2
Frequent Advisor

Re: problems starting apache with php

See earlier note.

Closing.

Thanks,