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 !

rm -rf /etc/apache2/sites-available

Got problems with your B2 or B3? Share and get helped!
Post Reply
nerke
Posts: 23
Joined: 29 Jul 2010, 14:33

rm -rf /etc/apache2/sites-available

Post by nerke »

Thats stupid to do, but i did it.... does anyone have any ideas what to do now? :oops:
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: rm -rf /etc/apache2/sites-available

Post by RandomUsername »

You can probably extract it from the installer image.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: rm -rf /etc/apache2/sites-available

Post by 6feet5 »

Reinstalling the packages "apache2.2-common" and "bubba-frontend" should probably do the trick as well.

/Johan
nerke
Posts: 23
Joined: 29 Jul 2010, 14:33

Re: rm -rf /etc/apache2/sites-available

Post by nerke »

clever. ill try that...
nerke
Posts: 23
Joined: 29 Jul 2010, 14:33

Re: rm -rf /etc/apache2/sites-available

Post by nerke »

did a;

Code: Select all

apt-get install --reinstall apache2.2-common

Code: Select all

apt-get install --reinstall bubba-frontend
which gave me
Restarting web server: apache2apache2: Syntax error on line 186 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/proxy_html.conf: No such file or directory
failed!
invoke-rc.d: initscript apache2, action "restart" failed.dpkg: fel vid hantering av bubba-frontend (--configure):
underprocess post-installation script gav felkod 1
Ställer in apache2 (2.2.9-10+lenny4) ...
Fel uppstod vid hantering:
bubba-frontend
E: Sub-process /usr/bin/dpkg returned an error code (1)
so i did

Code: Select all

/usr/bin/dpkg --configure bubba-frontend
and that gave me
Ställer in bubba-frontend (2.0.0.9) ...
Restarting web server: apache2apache2: Syntax error on line 186 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/proxy_html.conf: No such file or directory
failed!
invoke-rc.d: initscript apache2, action "restart" failed.
dpkg: fel vid hantering av bubba-frontend (--configure):
underprocess post-installation script gav felkod 1
Fel uppstod vid hantering:
bubba-frontend
Seems that bubba-frontend fails to configure...
nerke
Posts: 23
Joined: 29 Jul 2010, 14:33

Re: rm -rf /etc/apache2/sites-available

Post by nerke »

or more likely that apache2 dont install correct? that apache is missing proxy_html.conf... but if i turn that off wont my slimserver go down?
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: rm -rf /etc/apache2/sites-available

Post by ryz »

In my /etc/apache2/apache2.conf line 186 I have the following line

Code: Select all

Include /etc/apache2/mods-enabled/*.conf
Which says that apache should include all files under /etc/apache2/mods-enabled that ends with .conf. So how that can generate an error that a file does not exist I do not understand. Either the file does not exist and will then not be included since it does not match *.conf or it does exist. I suggest you do an ls in the directory /etc/apache2/mods-enabled to see if you have any strange files there. I do not have any proxy_html.conf file on my Bubba 2 install.
Kiff
Posts: 48
Joined: 08 Feb 2010, 04:09
Location: Norway
Contact:

Re: rm -rf /etc/apache2/sites-available

Post by Kiff »

the bubba entry in sites-available is just a symlink to /usr/share/bubba-frontend/apache.site, recreating it (ln -s <target> <link>) should have been enough.

The line above, 185, includes the load files. Check for those as well in /etc/apache2/mods-enabled

I would try to start apache (apache2ctl start) and look in the logfile /var/log/apache2/error.log for additional errors.
nerke
Posts: 23
Joined: 29 Jul 2010, 14:33

Re: rm -rf /etc/apache2/sites-available

Post by nerke »

i did

Code: Select all

mv /etc/apache2/mods-enabled/proxy_html.conf /etc/apache2/mods-enabled/proxy_html.conf.backup
and removed the corresponding line in apache2.conf and then

Code: Select all

/etc/init.d/apache2 restart
which gave me
Restarting web server: apache2apache2: apr_sockaddr_info_get() failed for bubba
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Oct 29 06:34:57 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
apache2: apr_sockaddr_info_get() failed for bubba
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Oct 29 06:34:58 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
and that solved my problem with apache refused to start.

in my error log i see many entries like this
ri Oct 29 12:40:32 2010] [error] [client 127.0.0.1] File does not exist: /htdocs
[Fri Oct 29 12:49:47 2010] [error] [client 127.0.0.1] File does not exist: /htdocs
[Fri Oct 29 13:11:00 2010] [error] [client 127.0.0.1] File does not exist: /htdocs
[Fri Oct 29 13:19:53 2010] [error] [client 127.0.0.1] File does not exist: /htdocs
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: rm -rf /etc/apache2/sites-available

Post by Ubi »

what is your output of

Code: Select all

apache2ctl -St
nerke
Posts: 23
Joined: 29 Jul 2010, 14:33

Re: rm -rf /etc/apache2/sites-available

Post by nerke »

Ubi wrote:what is your output of

Code: Select all

apache2ctl -St
I get a command not found. strange.... wtf. i will do a reinstall of the system and my sunday is saved... tanks for all the advices!
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: rm -rf /etc/apache2/sites-available

Post by ryz »

You need to be root to find the command apache2ctl since it is in the /usr/sbin directory which normally only root has in its path.
Post Reply