Hi all. I did the stupidest thing ever! I rm-rf my apache2 directory and now when i try to install apache2 or lamp it says everything is okay but there is no apache2 dir. What can i do to fix it. Btw i'm with Ubuntu Server 11.10. Thank you.
Hi all. I did the stupidest thing ever! I rm-rf my apache2 directory and now when i try to install apache2 or lamp it says everything is okay but there is no apache2 dir. What can i do to fix it. Btw i'm with Ubuntu Server 11.10. Thank you.
If you're using Apache 2.2, then you could try the following:
That should replace any missing configuration files.Code:sudo apt-get --reinstall install apache2.2-common
sudo /etc/init.d/apache2 start
.: 51: Can't open /etc/apache2/envvars
another error...
I get the same thing. According to dpkg, it should belong to the package apache2.2-common, but re-installing had no effect. I'm not sure of a way around. It sure looks like a bug.
i made to reinstall apache and get it working now i cant enable my public_html folder, i do chmode to the folder with 775 and try to
but it's still give meCode:cd /etc/apache2/mods-enabled sudo ln -s ../mods-available/userdir.load sudo ln -s ../mods-available/userdir.conf
Forbidden
You don't have permission to access /~sublime on this server.
This apache will kill me!
Try enabling the module using a2enmod:
Also make sure to reload your server configuration after doing so.Code:sudo a2enmod userdir
its says that module is already enabled... maybe something with permissions can be done
You can open up a terminal and have the error messages running realtime. It might give more details.
But mod_userdir should work out of the box. Are your home directory and public_html set to 755 or 775?Code:tail -f /var/log/apache2/error.log
[Wed Feb 08 21:13:39 2012] [error] [client MY IP HERE] (13)Permission denied : access to /~sublime denied
Down errors are same, i think i must set my HOME directory to 755 or 775 but i dont know how to do that, i cant with chmod...
i tried to chmod -R 755 or just chmod 755 * but i still cant open public_html in browser.... or i just dont know how to change permission for home directory
Bookmarks