Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My apache server just don't start! I get the following error:

apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2/modules/mod_alias.so: cannot open shared object file: No such file or directory Action 'start' failed. The Apache error log may have more information.

And my error logs at /var/log/apache2 is empty! I also checked the /usr/lib/apache2 folder and I don't see any folder named modules. I have three folders in /usr/lib/apache2.. namely:

  1. mpm-event
  2. mpm-prefork
  3. mpm-worker

Each of these folder seems to have a shared library name apache2 !! Where did my modules folder go?

Tried Solution: I tried removing the apache2 package and installing it back.. and I get a strange warning from apt-get command:

$ sudo apt-get remove apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:
libsm-dev libice-dev x11proto-kb-dev ttf-dejavu-extra libxdmcp-dev xtrans-dev x11proto-core-dev xorg-sgml-doctools libxt-dev
x11proto-input-dev libpthread-stubs0-dev libxau-dev libpthread-stubs0 libx11-dev ca-certificates-java libxcb1-dev Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: apache2 0 upgraded, 0 newly installed, 1 to remove and 94 not upgraded. After this operation, 36.9 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... dpkg: warning: files list file for package `mysql-server-5.1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-central' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libmono-zeroconf1.0-cil' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `apache2-utils' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-glade2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libaprutil1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `patch' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `meld' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libaprutil1-dbd-sqlite3' missing, assuming package has no files currently installed. (Reading database ... 302380 files and directories currently installed.) Removing apache2 ...

Anybody know what's causing this and how to resolve this?

share|improve this question
    
The error log would be at /var/log/apache2/error.log. –  user2817 Mar 30 '12 at 9:13
add comment

1 Answer

sudo apt-get update

sudo apt-get -y install apache2

Paste the error and also cat /etc/lsb-release

Apache2 error log would be in /var/log/apache2/error.log

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.