Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

apache doesn't start after B3 reboot

Got problems with your B2 or B3? Share and get helped!
Post Reply
ZoombyWoof
Posts: 8
Joined: 06 Jun 2012, 05:36

apache doesn't start after B3 reboot

Post by ZoombyWoof »

Hi,

Apache2 doesn't start after I rebooted my new B3 box. Before the reboot I disabled ftp and mail through the web interface, and now after a reboot apache doesn't start. I see no signs of it even starting in the apache log,
there is a link in /etc/rc2.d to ../init.d/apache2 so it should start and give some error somewhere but no.
I have ssh access to the box and when I try to start it manually:

/etc/init.d/apache2 start

Code: Select all

root@b3:/var/log# /etc/init.d/apache2 start 
Starting web server: apache2[Wed Jun 06 11:43:44 2012] [warn] The Alias directive in /etc/apache2/conf.d/admin.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Wed Jun 06 11:43:44 2012] [warn] The ScriptAlias directive in /etc/apache2/conf.d/admin.conf at line 12 will probably never match because it overlaps an earlier ScriptAlias.
Syntax error on line 13 of /etc/apache2/conf.d/admin.conf:
FastCgiExternalServer: redefinition of previously defined class "/usr/share/web-admin/admin/index.php"
Action 'start' failed.
The Apache error log may have more information.
 failed!
I haven't touched any of the apache config files, my admin.conf files looks like this :

Code: Select all

Alias /admin /usr/share/web-admin/admin

<Directory /usr/share/web-admin/admin >
        AllowOverride None
        Order allow,deny
        allow from all
        DirectoryIndex index.php
        AddHandler php-cgi .php
        Action php-cgi /fcgi-bin/php.cgi virtual
</Directory>

ScriptAlias /fcgi-bin/php.cgi /usr/share/web-admin/admin
FastCgiExternalServer /usr/share/web-admin/admin/index.php -socket fcgi -idle-timeout 120 -flush

<Location /admin>
        RewriteEngine on
        RewriteBase /admin
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?/$1 [L]
</Location>
Any suggestions ?

Thanx

/zw
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Re: apache doesn't start after B3 reboot

Post by DanielM »

My admin.conf looks the same and it works fine here. I think it sounds like it's called twice. What are the contents of /etc/apache2/conf.d? If there would be two links to /usr/share/bubba-frontend/apache.conf I think it could end up in something like this.

/Daniel
ZoombyWoof
Posts: 8
Joined: 06 Jun 2012, 05:36

Re: apache doesn't start after B3 reboot

Post by ZoombyWoof »

Hi,

Ha! You were right, but I'm still confused though. I had made a copy of admin.conf in /etc/apache2/conf.d and called it admin.conf-ORG. I removed that copy and now it works again :-) Thanx a lot.

I still wonder why it didn't work, does apache reads everything in that directory, not only .conf files ? Apache is not in my field of expertise....

Thanx again :-)

/zw
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: apache doesn't start after B3 reboot

Post by RandomUsername »

ZoombyWoof wrote:Hi,

Ha! You were right, but I'm still confused though. I had made a copy of admin.conf in /etc/apache2/conf.d and called it admin.conf-ORG. I removed that copy and now it works again :-) Thanx a lot.

I still wonder why it didn't work, does apache reads everything in that directory, not only .conf files ? Apache is not in my field of expertise....

Thanx again :-)

/zw
I found this out myself whilst trying to create a backup of any config files I'd edited. The only files it ignores are ones with a tilde in the file name (e.g. admin.conf~)
ZoombyWoof
Posts: 8
Joined: 06 Jun 2012, 05:36

Re: apache doesn't start after B3 reboot

Post by ZoombyWoof »

ah ok, thanx

/zw
Post Reply