Re: problems starting apache with php (45 Views)
Reply
Frequent Advisor
Shabu Khan-2
Posts: 77
Registered: ‎04-06-2007
Message 1 of 8 (45 Views)

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?
Please use plain text.
Honored Contributor
Ivan Krastev
Posts: 2,156
Registered: ‎06-25-2006
Message 2 of 8 (45 Views)

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
Please use plain text.
Honored Contributor
Kapil Jha
Posts: 1,478
Registered: ‎01-23-2006
Message 3 of 8 (45 Views)

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......
Please use plain text.
Frequent Advisor
Shabu Khan-2
Posts: 77
Registered: ‎04-06-2007
Message 4 of 8 (45 Views)

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

Please use plain text.
Frequent Advisor
Shabu Khan-2
Posts: 77
Registered: ‎04-06-2007
Message 5 of 8 (45 Views)

Re: problems starting apache with php

searching online, I found someone had the exact same problem 3 years ago ...

http://translate.google.com/translate?hl=en&sl=fr&u=http://forum.hardware.fr/hfr/OSAlternatifs/Logic...

Unfortunately I don't know what the fix was ...
Please use plain text.
Frequent Advisor
Shabu Khan-2
Posts: 77
Registered: ‎04-06-2007
Message 6 of 8 (45 Views)

Re: problems starting apache with php


Any thoughts?
Please use plain text.
Frequent Advisor
Shabu Khan-2
Posts: 77
Registered: ‎04-06-2007
Message 7 of 8 (45 Views)

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,
Please use plain text.
Frequent Advisor
Shabu Khan-2
Posts: 77
Registered: ‎04-06-2007
Message 8 of 8 (45 Views)

Re: problems starting apache with php

See earlier note.

Closing.

Thanks,
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation