LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2004, 05:13 PM   #1
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Rep: Reputation: 30
Apache / Php4 / Trustix problem.


Just installed the trustix 2.0 distro. Apache and PHP4 were 'ticked' to be installed. Apache now wont run :

Code:
 $ apachectl start
Syntax error on line 2 of /etc/httpd/conf.d/httpd-mod_php4.conf: Cannot load /usr/lib/apache/libphp4.so into server: /lib/libbz2.so.1.0: no such file or directory
So I copy libbz2.so.1.0 from another distro into /lib/, and restart apache, to get this;

Code:
 $ apachectl start
Syntax error on line 2 of /etc/httpd/conf.d/httpd-mod_php4.conf: Cannot load /usr/lib/apache/libphp4.so into server: /lib/libbz2.so.1.0: invalid ELF header
What now?
 
Old 06-20-2004, 05:24 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi there technowax!

Hmmm, try editing the httpd.conf, located at /etc/apache. It's a line similar with a lot of "LoadModule". One of them is for php3, another for php4 module. Make sure they are uncommented.
In my new fresh install of Libranet, I had to type "php4" at the console to start php, then apache (apachectl start) to get php running :S.

Good luck!
 
Old 06-20-2004, 05:36 PM   #3
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
I type 'php' at the console, and hit tab, and have 3 executables; php-config, phpextdist and phpize. There is no 'php4' that I can get running.

Code:
LoadModule php4_module modules/libphp4.so
That is commented in httpd.conf.

Do I need to edit php.ini ?
 
Old 06-21-2004, 01:27 AM   #4
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Re: Apache / Php4 / Trustix problem.

Quote:
Originally posted by xconspirisist
So I copy libbz2.so.1.0 from another distro into /lib/, and restart apache, to get this;
Sounds like you need to install bz2 from the Trustix distro, not just copy that file from another. Apparently, the file from the other distro was compiled with different headers.

Enjoy!
--- Cerbere
 
Old 06-21-2004, 06:29 AM   #5
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
Do you know where I can obtain this file from?
 
Old 06-21-2004, 11:05 AM   #6
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
You can start at http://www.trustix.net. One of the mirrors is http://www.ibiblio.org/pub/linux/dis...2-12tr.src.rpm

Enjoy!
--- Cerbere

[edit] Whoops! That was the source package for 2.1. Try this one instead:

http://www.ibiblio.org/pub/linux/dis...2-9tr.i586.rpm

You may only need the libraries here:

http://www.ibiblio.org/pub/linux/dis...2-9tr.i586.rpm

or the devel package here:

http://www.ibiblio.org/pub/linux/dis...2-9tr.i586.rpm

or all maybe three. Be sure to let us know how it turns out. [/edit]

Last edited by Cerbere; 06-21-2004 at 11:16 AM.
 
Old 06-23-2004, 11:39 AM   #7
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
I cant install those rpms on my server, because libbz2.so.1.0 is needed for rpm to work...
 
Old 06-23-2004, 05:49 PM   #8
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Well, I don't know too much about Trustix, but on their site they mention a feature called swup, a software updater. Maybe that'll help.

Enjoy!
--- Cerbere
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache with php4 question Kevnathan Linux - Software 2 03-08-2005 07:13 AM
MySQL Socket problem from Apache 1.3 and Php4 stardotstar Linux - Software 10 09-27-2004 08:14 PM
Installed trustix apache doesn't respond regularguy123 Linux - Newbie 3 07-15-2004 01:13 PM
Apache / PHP4 includes problem? DevlshOne Red Hat 0 01-06-2004 09:18 PM
Strange PHP4/Apache/Opera problem corwax Linux - Software 2 09-23-2003 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration