Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks for the help mate. The links in google all point to posts on forums that nobody replied to. I am a newbie at the linux thing, how can I strip absolute paths?
I just did exactly that: stripped the path out of your
error message
Cannot load /usr/local/apache/modules/libphp4.so into server: /usr/local/apache/modules/libphp4.so:
Cannot load libphp4.so into server: libphp4.so:
I didn't take the time to follow the links it came up with,
if they are only questions that problem of yours must be
very uncommon. How did you go about installing everything,
from source?
Edit: Checked out the link but im using Suse personal so it comes without any php modules and only an apache 1 module, darn should have gotten pro!
Thanks for the help again. I installed everything from tarballs. First downloaded httpd-2.0.52.tar and configured it as follows:
./configure --prefix=/www --enable-module=so
make
make install
then I got the php package and did
./configure --with-mysql --with-apxs2=/www/bin/apxs
make
make install
I'll provide any other information I can, just let me know what you want to see. Heh, I have been trying to get this working since 11 am this morning!
Note: Using php4.3.9
Originally posted by Emist Edit: Checked out the link but im using Suse personal so it comes without any php modules and only an apache 1 module, darn should have gotten pro!
Thanks for the help again. I installed everything from tarballs. First downloaded httpd-2.0.52.tar and configured it as follows:
./configure --prefix=/www --enable-module=so
make
make install
Try --enable-so vs --enable-module=so.
Also, you sure you want to install the Apache binaries and configuration files under /www? Most folks would install Apache somewhere like /usr/local/apache2 (the default) and use the /www for the web files being hosted. But either way.
Thanks for the help guys, alright I removed everything and reinstalled everything following the instructions at the page given yet I still have the same error.
On a note:The libexec/libphp4.so address doesnt work for me, for some reason I have to point towards /usr/local/apache2/modules/libphp4.so in order to get something other than "no such file or directory" and when I do that I get the same error as before. Wow, this is giving me a headache
Originally posted by Emist Thanks for the help guys, alright I removed everything and reinstalled everything following the instructions at the page given yet I still have the same error.
On a note:The libexec/libphp4.so address doesnt work for me, for some reason I have to point towards /usr/local/apache2/modules/libphp4.so in order to get something other than "no such file or directory" and when I do that I get the same error as before. Wow, this is giving me a headache
Ok, what do you have for ServerRoot in your httpd.conf? Setting that variable to where Apache is installed should fix "libexec/libphp4.so" issue. And at the same time I bet it fixes your original issue. It looks to me like you have 2 separate installations of Apache and are pointing the one your compiling to the other one's modules, or visversa. The modules at /usr/lib/apache/ were likely installed by a package included with the OS, unless you specifically configured Apache to install them there when you compiled it. By default, when you compile Apache from source, everything will be installed at /usr/local/apache2/, including the httpd.conf, modules & binaries. Also are you certain that you are editing the correct http.conf file and starting the binary that you compiled? I'd look for another installation of Apache and uninstall that so you don't get confused and go from there.
What you are saying makes a lot of sense since the config file is looking for stuff in /usr/local/apache and theres nothing there. Bah, I have a bigger problem now, I cleaned the apache files from my system and reinstalled apache 2 using ./configure --enable-so but it doesnt finish building, it tries to install files in /usr/local/apache/lib it gives me the following error:
Code:
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr-util/libaprutil-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr-util/libaprutil-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr-util/libaprutil-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr-util/libaprutil-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr-util/libaprutil-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr-util/libaprutil-0.la' has not been installed in `/usr/local/apache/lib'
libtool: install: warning: `/usr/local/httpd-2.0.52/srclib/apr/libapr-0.la' has not been installed in `/usr/local/apache/lib'
Wow man, cant believe im taking all this time to install a prog!! Does anyone have any idea why my system is bent on installing some apache 2 files under /usr/local/apache?
I'm having the same problem on Fedora Core 3 with apache 1.3.33 and php 4.3.10. I installed apache from the binary tar provided on apache.org, and apache runs fine with out libphp4.so loaded in httpd.conf. I have obtained ALL the latest php4 rpm's from redhat's Fedora Core 3 site and installed them correctly (php -v gives 4.3.10 ) but when i try to load the module:
LoadModule php4_module libexec/libphp4.so
and
AddModule mod_php4.c
apache yeilds:
# apachectl start
Syntax error on line 239 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: unixd_config
/usr/bin/apachectl start: httpd could not be started
i've been working on this for many hours and am quite confused. The libphp4.so IS in my libexec folder under apache:
# pwd
/usr/local/apache/libexec
# ls -l libphp4.so
-rwxr-xr-x 1 root root 1554964 Feb 2 12:30 libphp4.so
I get the same error. After instaling with --enable-so the phplib5.so file was placed in the libexec folder (it wasn't when I forgot the --enable-so)
So now it is installed and apache is running happily, other than the fact that I cannot restart my server since unixd_config is undefined.
This is very frustrating, and this appears to be the only site that actually has a response to this topic. Unfortunately I have yet to find the solution.
If anyone has solved this, or has a suggestion, please continue this thread.
It's been a while since I had this problem but I saw someone else posted here so I thought I'd post my experiences with it. Basically my problem was I was trying to use a .so form a pre-build lib, so I downloaded the php source and recompiled the .so myself and that solved my undefined symbol issue.
I know it's probably been tried by many of you but that did solve my problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.