Operating System - HP-UX
1833747 Members
2923 Online
110063 Solutions
New Discussion

Re: php error when start Apache

 
SOLVED
Go to solution
Kenneth_61
Frequent Advisor

php error when start Apache

Here is reference :==========================

# Bundle(s):
#

HPUXEng32RT B.11.00.01 English HP-UX 32-bit Runtime Environment
UXCoreMedia B.11.00.01 HP-UX Media Kit (Reference Only. See Description)
XSWGR1100 B.11.00.47.08 General Release Patches, November 1999 (ACE)
hpuxwsApache A.2.0.52.00 HP-UX Apache-based Web Server
hpuxwsTomcat A.4.1.29.04 HP-UX Tomcat-based Servlet Engine
hpuxwsWebmin A.1.070.02 HP-UX Webmin-based Admin
# pwd
/opt/hpws/apache
# cd bin
# ./apachectl start
/usr/lib/dld.sl: Unresolved symbol: dlsym (code) from /opt/hpws/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlerror (code) from /opt/hpws/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlopen (code) from /opt/hpws/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlclose (code) from /opt/hpws/apache/modules/libphp4.so
Syntax error on line 223 of /opt/hpws/apache/conf/httpd.conf:
Cannot load /opt/hpws/apache/modules/libphp4.so into server: Unresolved external
===============================================

I enable PHP by referencing
http://www.hp.com/products1/unix/webservers/apache/faqs/#php1

However, it display this error. I am using v11.00 OS. with latest HP-UX Web Server Suite v.2.10. I am wondering why it display this error. PHP bundled with this Suite have problem too ? Should I need to do something ? I had searched info in internet. It seems that I need to install PHP4 again after installing this Suite. But, I do not think that HP do this kind of careless thing when produce this Suite in Oct 2004. Anyone know why ?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: php error when start Apache

Check the physical presence of the files its complaining about.

If those files were deleted restore them. They are probably present.

If they are present, check these two environment varaibles in your startup script:

PATH
SHLIB_PATH

make sure SHLIB_PATH is set in the startup script, which should be in /sbin/init.d

This assumes that you installed the Integrated apache/php depot set from HP. If apache was already on the system from compile or something, I'd recommend starting over with the depot for HPWeb Suite at http://software.hp.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kenneth_61
Frequent Advisor

Re: php error when start Apache

Thanks SEP.

v11.00 is clean install. I install latest HP-UX Web Server 2.10 from HP depot file by all default setting and complete installation. Can you see the attach apachectl file. It seems to be ok with the PATH exported in the apachectl file.

Any idea ? Many thanks.
Steven E. Protter
Exalted Contributor

Re: php error when start Apache

I'm seeing some references in here to ORACLE_HOME

That is probably not the apache file associated with the hpws installation you did. It appears to be an oracle adaptation intended for the Oracle ias product.

SLIB_PATH must include the directory /usr/lib

Please take a look at the /sbin/init.d directory for another file that looks like apachectl

At this moment I can't look at my D320 box because a power failure brought it down. The UPS didn't work and I'm not turning the box back on until I figure out whats wrong with the UPS.

I think you are merely using the wrong startup script.

I'll try and get my box back up in a few hours and post back to the thread with the correct script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ermin Borovac
Honored Contributor
Solution

Re: php error when start Apache

dlsym and friends should be in /usr/lib/libdld.sl. You probably need to update your linker. Please install the following patch (or later)

PHSS_24303 s700_800 11.00 ld(1) and linker tools cumulative patch
Steven E. Protter
Exalted Contributor

Re: php error when start Apache

I have brought up my D320.

The script you should be activating to start the HPWS apache port you have installed is:

/sbin/init.d/hpws_apache

The script you posted is for oracle ias apache httpd server. It is quite similar and can co-exist with the HP version. You just need to decide who gets what port. The Oracle product does not defaul to 80.

I like that linker patch idea too.

Good Luck,

Getting some sleep.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kenneth_61
Frequent Advisor

Re: php error when start Apache

Yeah ! You are right. The patch can fix this error.

I had installed the following and the problem is gone.

ref: The latest patch newer than PHSS_24303 s700_800 11.00 ld(1) and linker tools cumulative patch : PHSS_30967 1.0 linker tools cumulative patch