LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-16-2004, 12:41 AM   #1
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
php installed but no sign of libphp4.so (apache needs it)


Im following a php4 tutorial. I have to set up my apache server so a file called
'libphp4.so' is registered in some config file (httpd.conf I think).

The problem is, I've installed php 4.3.3, and the file libphp4.so does not exist on my system.


I found a similar thread here
http://www.linuxquestions.org/questi...ght=libphp4.so


But using the ./configure --enable-so didnt make a difference.e

I have noticed that php looks in /usr/local/apache by default, and I have /usr/local/apache2. But when I use --with-apache=/usr/local/apache2, configure complains that it cant find httpd.h.

I found this in /usr/local/apache2/include. So I used that path for --with-apache, and it STILL says it cant find httpd.h.

So I omit the --with-apache, and it configures fine. I'm boggled completely. Its six a.m. now so I'm going to go to be (and probably dream about configuring apache and php).

Can anyone help? I think if I get to the stage where I have the .so file, I'll be ok (famous last words).

Thanks in advance,
unholy
 
Old 01-16-2004, 08:33 AM   #2
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Did you install all the packages required by apache?

Try installing all packages one by one related to php...

for example

php-<version>

php-devel-<version>



The php-devel package may contain the library file that u want...so my advice would be to install all packages having php in their filename...

In case you still dont get the above file, download it from here:

http://www.megaloman.com/~hany/RPM/libphp4.so.html

Regards,

amit
 
Old 01-16-2004, 12:35 PM   #3
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Thanks amit,

I didnt install the devel packages for php (because the howto didint mention it). I'll give that a shot.

Cheers,

unholy
 
Old 01-18-2004, 07:04 AM   #4
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
I cant find any devel packages, but I did install the rpm you pointed me to, and theres still no libphp4.so on my machine.

The nearest thing is libphp4.module.in.
 
Old 01-18-2004, 07:43 AM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
If you have gcc and libs, get the latest source bundle from php.net . Configure it ( sample conf below ) Compile it. ( assuming you use Apache 2.0.* )

Code:
./configure                     \
--prefix=/usr                   \
--exec-prefix=/usr              \
--bindir=/usr/bin               \
--sbindir=/usr/sbin             \
--sysconfdir=/etc               \
--datadir=/usr/share            \
--includedir=/usr/include       \
--libdir=/usr/lib               \
--libexecdir=/usr/libexec       \
--localstatedir=/var            \
--sharedstatedir=/usr/com       \
--sysconfdir=/etc               \
--mandir=/usr/share/man         \
--infodir=/usr/share/info       \
--with-apxs2                    \
--enable-so                     \
--enable-discard-path           \
--enable-force-cgi-redirect     \
--with-config-file-path=/etc/   \
--enable-libgcc                 \
--with-zlib                     \
--with-bz2                      \
--with-dom=/usr/lib             \
--with-dom-xslt=/usr/lib        \
--with-dom-exslt=/usr/lib       \
--enable-ftp                    \
--with-mysql=/usr               \
--with-gettext=/usr             \
--enable-sysvsem                \
--enable-sysvshm                \
--enable-wddx                   \
--enable-share                  \
--enable-openssl                \
--enable-trans-sid
 
Old 01-18-2004, 10:50 AM   #6
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Thanks, I'm downloading 4.3.4 now (or should I be going for version 5?).
 
Old 01-18-2004, 05:15 PM   #7
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
I would stick with 4.3.4 unless there's something to die for on 5 .
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make php does not create libphp4.so dlublink Linux - Software 3 02-07-2005 10:28 PM
PHP - Apache - libphp4.so TBomb Linux - Software 10 12-24-2004 03:33 PM
installed apache, mysql -- help with php machiner Linux - Software 2 07-28-2004 01:36 PM
RH8/Apache - PHP installed but not enabled(?) bkeating Linux - Software 3 12-05-2002 12:10 PM
Apache & PHP error - libphp4.so.... ReSync Linux - General 7 08-06-2002 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:56 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