Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: /etc/apache2

  1. #1
    Join Date
    Feb 2012
    Beans
    7

    /etc/apache2

    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.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    --resinstall

    If you're using Apache 2.2, then you could try the following:

    Code:
    sudo apt-get --reinstall install apache2.2-common
    That should replace any missing configuration files.

  3. #3
    Join Date
    Feb 2012
    Beans
    7

    Re: --resinstall

    sudo /etc/init.d/apache2 start
    .: 51: Can't open /etc/apache2/envvars

    another error...

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: /etc/apache2

    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.

  5. #5
    Join Date
    Feb 2012
    Beans
    7

    Re: /etc/apache2

    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
    Code:
    cd /etc/apache2/mods-enabled
    sudo ln -s ../mods-available/userdir.load
    sudo ln -s ../mods-available/userdir.conf
    but it's still give me

    Forbidden

    You don't have permission to access /~sublime on this server.

    This apache will kill me!

  6. #6
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: /etc/apache2

    Try enabling the module using a2enmod:

    Code:
    sudo a2enmod userdir
    Also make sure to reload your server configuration after doing so.

  7. #7
    Join Date
    Feb 2012
    Beans
    7

    Re: /etc/apache2

    its says that module is already enabled... maybe something with permissions can be done

  8. #8
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: /etc/apache2

    You can open up a terminal and have the error messages running realtime. It might give more details.

    Code:
    tail -f /var/log/apache2/error.log
    But mod_userdir should work out of the box. Are your home directory and public_html set to 755 or 775?

  9. #9
    Join Date
    Feb 2012
    Beans
    7

    Re: /etc/apache2

    [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...

  10. #10
    Join Date
    Feb 2012
    Beans
    7

    Re: /etc/apache2

    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

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •