Apache Startup Fails with PHP Error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Apache Startup Fails with PHP Error
# 1  
Old 05-04-2010
Apache Startup Fails with PHP Error

Great tins massive!

Im Manqoba from Midrand, South Africa...

I have installed Apache and PHP on a solaris 9 box, using the packages below:

apache-2.2.14-sol9-sparc-local
php-5.2.13-sol9-sparc-local

After installing the packages I edited my httpd.conf file, to load the php5 module when starting up Apache, by including this line:

LoadModule php5_module modules/libphp5.so

When running apachectl start, I am presented with the following error:
root@test-lm-1 # apachectl start
httpd: Syntax error on line 114 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/local/apache2/modules/libphp5.so: symbol xmlTextReaderGetAttribute: referenced symbol not found

I have checked to see all the dependency packages are iinstalled, as well as the compatibility of the versions. I uninstalled and reinstalled the libxml package, but still no luck.

It is the fist time I use apache with php, and some assistance will be highly appreciated.
# 2  
Old 05-04-2010
Maybe you can first try manually loading the module and see if that will work?
# 3  
Old 05-04-2010
If you downloaded these packages from sunfreeware.com then please return to that site and read the list of dependencies. There is a list of 19 other packages that are required by this php package. Install them and try again.
# 4  
Old 05-05-2010
I have installed all the dependency packages, before I installed the php. On sunfreeware website the dependency packages are listes as:

Code:
Dependencies: 
libiconv,
libidn,
openssl-1.0.0,
curl,
expat,
fontconfig,
freetype,
freetds,
libssh2,
gd,
libintl,
jpeg,
openldap,
mysql,
libpng,
sasl,
libxml2,
zlib,
xpm,
gcc

Even after trying to load the module manually, it still fails with the same error. Is there perhaps a specific order that the packages need to be installed in?? Each time I comment out the line to load the php module, Apache starts up ok.

Is there any packages that I might be missing, since the ones i installed are according to the sunfreeware website

Last edited by Neo; 05-05-2010 at 09:25 AM.. Reason: code tags
# 5  
Old 05-05-2010
There is no specific order to install the packages. Maybe the runtime path is not correctly compiled into the shared object.

Does
Code:
crle -u -l /usr/local/lib

help? This command append /usr/local/lib to the path, that the dynamic linker checks to find objects (assuming libxml.so is in /usr/local/lib).
# 6  
Old 05-05-2010
I gave it a try, and it did not seem to sort anything out. I also listed the dynamic dependencies for the libphp5.so library... and it seemed to find all the dependencies...

Is there a way to use list only the missing dynamic dependencies?? Also, is anybody aware of any dependencies for the libxml2 package, because there is none listed on the sunfreeware site.

bless...
# 7  
Old 05-05-2010
Hmm, if all dependencies are fullfilled, the only other thing I can think of is a wrong version of libxml2.so

Does
Code:
/usr/ccs/bin/nm /usr/local/lib/libxml2.so | grep xmlTextReaderGetAttribute

print something like

Code:
[2885]  |    799440|     388|FUNC |GLOB |0    |12     |xmlTextReaderGetAttribute

??

---------- Post updated at 13:42 ---------- Previous update was at 13:40 ----------

Ahh, and: did you restart Apache after executing crle ?? I think, the dynamic loader only reads ld.config once at program start.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

2. Red Hat

Error while starting Apache after compiling PHP and Curl

Hello, I am facing an issue while starting the apache server after compiling php and curl. Below are the versions i am using. php-5.2.17 httpd-2.2.17 curl-7.16.0 CentOS5.5x64 Compiling above packages without curl working very fine but when trying to compile php with curl below error is... (1 Reply)
Discussion started by: sunnysthakur
1 Replies

3. Red Hat

Dummy Question, put a script on startup fails

Hi all, im pretty new to unit/redhat 6.2 I am trying to load a script upon startup of my redhat 6.2 (instance in ec2 AWS if someone cares) I want everytime when instance starts (after stop/reboot) a script i build to launch. when i run the script ./scriptname the script runs and everything is... (4 Replies)
Discussion started by: hookedatwalla
4 Replies

4. Shell Programming and Scripting

Single Startup script for Apache/jboss

Hi, I have apache ,jboss and jon instances on various linux boxes.I need to create a generic startup script to restart those instances on server reboot.The script requirement is : It should take the name of instances from one text file named active-servers and recycle those instances. 1.... (6 Replies)
Discussion started by: saurau
6 Replies

5. Solaris

Startup error

Hi, Greetings to all :), I am using Solaris 5.10 on a HP xw6600 workstation with 2 Intel Xeon processors. System works fine. But during startup the below WARNINGS occur. WARNING:CPU 1 feature mismatch WARNING:There will be no MCA support on chip 0 core 0 strand 2(cmd_hdl_create returned... (1 Reply)
Discussion started by: sachin.bedraman
1 Replies

6. Solaris

Mountall error at system startup

Hi I have SVM on my Solaris 10 5/08 SPARC with the following configuration: d1: Mirror Submirror 0: d11 State: Okay Submirror 1: d12 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size:... (2 Replies)
Discussion started by: Sapfeer
2 Replies

7. HP-UX

Auto-Port Aggregation startup fails on boot

I have a machine running HP-UX 11.23 (PARISC) and APA startup fails on boot. This is found in /etc/rc.log: Configure Auto-Port Aggregation(LAN Monitor) interfaces Output from "/sbin/rc2.d/S343hplm start": ---------------------------- get_start_dlpi_version: failed, errno is 22 ERROR: ... (1 Reply)
Discussion started by: kknigga
1 Replies

8. Shell Programming and Scripting

Solaris Startup script for Apache.

I'm running Solaris 5.9 and Apache 2.... I've created a startup script for Apache....but it doesn't work!!! it resides in /etc/init.d and has a link to /etc/rc3.d and if it run it as /etc/init.d/apache_start stop it stops the httpd services and /etc/init.d/apache_start start starts the... (3 Replies)
Discussion started by: Zak
3 Replies

9. UNIX for Dummies Questions & Answers

get error while compiling apache with php module

hi, i'm compiling apache with php module after i finish compile mysql-4.0.0-alpha. i do it as the follow steps after untar'ed them in the same directory, 1) cd apache_1.3.22 ./configure 2) cd php-4.0.6 ./configure --with-mysql=/usr/local/mysql \ --with-apache=../apache_1.3.22 \... (2 Replies)
Discussion started by: jApHEth
2 Replies
Login or Register to Ask a Question