You are not logged in.

#1 2007-10-18 20:42:43

Seb74
Member
Registered: 2006-10-07
Posts: 89

Strange, Apache wont start cause it cant load a file, though it exists

I've just installed Arch and Samba, NTP, Apache, PHP, MySQL.
Following a old "guide" I made a year ago when installing last time.
I've compared my httpd.conf to what I used last time, and both files are identical.
From what I remember I dont have to do anything to php, except install it, and I've done it.

So, httpd refuses to start. Its like this.

# /usr/sbin/apachectl start
httpd: Syntax error on line 114 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: libxml2.so.2: cannot open shared object file: No such file or directory

ls /etc/httpd/modules/ -l
total 7496
-rw-r--r-- 1 root root    8951 Sep 29 13:54 httpd.exp
-rw-r--r-- 1 root root 5998282 Oct 12 14:44 libphp5.so
-rwxr-xr-x 1 root root   10286 Sep 29 13:56 mod_actions.so
-rwxr-xr-x 1 root root   15440 Sep 29 13:56 mod_alias.so
-rwxr-xr-x 1 root root    9133 Sep 29 13:56 mod_asis.so
-rwxr-xr-x 1 root root   11224 Sep 29 13:56 mod_auth_basic.so

So, the file is there. It has other permits than the other files, but I'm 100% sure I've never had to alter that before.

What could be wrong, please?  smile

Last edited by Seb74 (2007-10-18 20:44:10)

Offline

#2 2007-10-18 20:52:26

Seb74
Member
Registered: 2006-10-07
Posts: 89

Re: Strange, Apache wont start cause it cant load a file, though it exists

Just found, from the LAMP wiki for Arch, that you also should put a comment before this line in httpd.conf.
Did it, but no luck.

LoadModule unique_id_module        modules/mod_unique_id.so

I mean, it should be so straightforward, almost no steps at all to follow, and I've did as I did last time, and also what it says in that wiki.

sad

Offline

#3 2007-10-18 20:55:46

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Strange, Apache wont start cause it cant load a file, though it exists

It is libxml2.so.2 that cannot be found, not libphp5.so wink

Offline

#4 2007-10-18 20:58:13

Seb74
Member
Registered: 2006-10-07
Posts: 89

Re: Strange, Apache wont start cause it cant load a file, though it exists

Ok, I thought it said "Cannot load /etc/httpd/modules/libphp5.so"?

Anyway, I've done as it says, and it wont work. Never had issues like this before, no idea what it could be sad

Offline

#5 2007-10-18 21:48:26

Seb74
Member
Registered: 2006-10-07
Posts: 89

Re: Strange, Apache wont start cause it cant load a file, though it exists

Googling the error, but mainly find strange language sites I cant read.
One english site mentioned something about a bug, and it were some very recent posts there. Didn't get the solution though, but had something with some changed path to do or something.

I need my server back, so will start ubuntu server download now over night. In worst case I'll have  to throw Arch out, just when I was finished with almost all installation, just to try another dist sad
At least ubuntu has some LAMP option during install, and I doubdt THAT would fail or have serious bugs, since its so much part of the base installer. Would rather have a solution for this though....would mean less unneccesary work.

Oh well, good night, and thanks if anyone can help. I've followed the wiki-tutorial as I said, and used same httpd.conf as I had working yesterday in older Arch-install on same hardware.

Offline

#6 2007-10-19 06:50:09

Seb74
Member
Registered: 2006-10-07
Posts: 89

Re: Strange, Apache wont start cause it cant load a file, though it exists

If someone else gets stuck here, I did get help on another forum.
The problem was that, for some reason, libxml2 were missing.
So, a "pacman -S libxmls" was a solution to this problem.

You never know when following a guide and doing whats intuitive wont be enough in Linux.... wink

Offline

#7 2007-12-21 13:24:22

motersho
Member
Registered: 2007-04-14
Posts: 2

Re: Strange, Apache wont start cause it cant load a file, though it exists

FYI
That is libxml2 not libxmls

Offline

Board footer

Powered by FluxBB