Upgraded apache and ubuntu, now "issues"

Discussion in 'Apache' started by cuukey, May 16, 2015.

  1. #1
    do-release-upgrade



    site 1ip: 69.90.132.94 (waiting on domain transfer)
    site2: www.tczfans.info
    site3: webmail.rotaguild.org

    I have 3 sites (2joomla and 1 squirrel webmail[works PERFECT]) and had to upgrade to a newer

    distro of ubuntu because i had an outdated version of php. After i did this, apache broke and

    wouldnt start (needed to add +- to indexes, which i fixed, however, after i got apache2 up and

    running, the main site (ip: 69.90.132.94) now tells me access is forbiddeen when i browse to it.
    4---------
    Forbidden

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

    Apache/2.4.7 (Ubuntu) Server at 69.90.132.94 Port 80
    ------------
    I Upgraded from ubuntu 12.0.4 to Ubuntu 14.04.2 LTS

    apache before upgrade
    rver version: Apache/2.2.22 (Ubuntu)
    Server built: Jul 22 2014 14:35:25

    ver after:
    Server version: Apache/2.4.7 (Ubuntu)

    I saw The default conf was getting too large, so i went ahead and broke the 2 sites into seperate

    conf files, put the actual file for the second site in (hoping i could narrow downthe isue):
    /etc/apache2/sites-available:

    000-default.conf
    000-default.conf.dpkg-new default.save tcz



    and mAade a ln -s symbolic link from:
    /etc/apache2/sites-enabled to ../sites-available for the second site called tcz (default already

    had one)
    ----------
    > ll
    total 16
    drwxr-xr-x 2 root root 4096 May 16 15:54 ./
    drwxr-xr-x 9 root root 4096 May 14 22:58 ../
    lrwxrwxrwx 1 root root 35 May 14 22:58 000-default.conf -> ../sites-available/000-default.conf
    -rw-r--r-- 1 root root 4584 Aug 13 2013 000-default.save
    lrwxrwxrwx 1 root root 23 May 16 15:54 tcz -> ../sites-available//tcz
    ryan@rota:/etc/apache2/sites-enabled$

    Now when i browse to the second site i just get a directory listing (still forbidden on the

    ffirst site)
    ----------

    Index of /

    [ICO] Name Last modified Size Description
    [DIR] html/ 2015-05-14 22:58 -
    Apache/2.4.7 (Ubuntu) Server at tczfans.info Port 80

    second site is www.tczfans.info


    FIRST SITE CONF:

    <VirtualHost 69.90.132.94:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /home/lhbc/www
    # AddDefaultCharset Off
    # </Directory>
    <Directory /home/*/public_html>
    Options +ExecCGI
    AddHandler cgi-script .cgi .pl
    </Directory>
    <Directory />
    Options +FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /home/lhbc/www>
    Options -Indexes -FollowSymLinks +MultiViews
    AllowOverride ALL
    Order allow,deny
    allow from all
    </Directory>

    <IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
    </IfModule>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog /home/lhbc/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options -Indexes +MultiViews +FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    </VirtualHost>
    <Virtualhost 76.74.170.184:80>
    Alias /squirrelmail /usr/share/squirrelmail
    #comfort
    DocumentRoot /usr/share/squirrelmail
    ServerName webmail.rotaguild.org

    <Directory /usr/share/squirrelmail>
    Options FollowSymLinks
    DirectoryIndex index.php

    # access to configtest is limited by default to prevent information leak
    <Files configtest.php>
    order deny,allow
    deny from all
    allow from 127.0.0.1
    </Files>
    </Directory>
    </Virtualhost>

    # users will prefer a simple URL like http://webmail.example.com



    SECOND:

    <VirtualHost 76.74.170.213:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /home/tcz/public_html


    AddDefaultCharset Off
    <Directory /home/tcz/public_html>
    Options +ExecCGI
    AddHandler cgi-script .cgi .pl
    </Directory>
    <Directory />
    Options FollowSymLinks

    AllowOverride None
    </Directory>
    <Directory /home/tcz/public_html>
    Options -Indexes +FollowSymLinks +MultiViews
    AllowOverride ALL
    Order allow,deny
    allow from all
    </Directory>

    <IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
    </IfModule>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog /home/tcz/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /home/tcz/access.log combined


    ------------- Ht access file is same for both sites: (found it online)


    # Uncomment the statement below if you want to make use of
    # HTTP authentication and it does not already work.
    # This could be required if you are for example using PHP via Apache CGI.
    #
    #<IfModule mod_rewrite.c>
    #RewriteEngine on
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    #</IfModule>

    <Files "config.php,configuration.php,index.php">
    Order Allow,Deny
    Deny from All
    </Files>

    <Files "common.php">
    Order Allow,Deny
    Deny from All
    </Files>


    Im lost ;(
     
    cuukey, May 16, 2015 IP
  2. cuukey

    cuukey Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    /home/lhbc/www/favicon.ico, referer: http://69.90.132.94/
    [Sat May 16 18:33:19.900118 2015] [authz_core:error] [pid 7273] [client 64.136.217.18:50483] AH01630: client denied by server configuration: /home/lhbc/www/
    [Sat May 16 18:33:20.151900 2015] [authz_core:error] [pid 7273] [client 64.136.217.18:50483] AH01630: client denied by server configuration: /home/lhbc/www/favicon.ico, referer: http://69.90.132.94/
     
    cuukey, May 16, 2015 IP
  3. cuukey

    cuukey Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    permissions look good i think

    drwxr-xr-x 20 www-data www-data 4096 May 16 21:24 www/


    folder is blue. the other site www.tczfans.info just gives me a directory listing
     
    cuukey, May 16, 2015 IP