Configuring LAMP - Getting 403 Forbidden Error in localhost

Discussion in 'Apache' started by Larry78723, Dec 13, 2021.

  1. #1
    I installed a LAMP stack today and I believe I have it properly configured but I'm getting 403 Forbidden error when I enter either 127.0.0.1 or localhost in a browsers address bar. Files for website are located in /var/www/foxclone. All files are php.

    foxclone.conf follows:
    
    
    <VirtualHost *:80>
    
        ServerName foxclone
    
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/foxclone/public_html
    
    
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    
    
    </VirtualHost>
    Code (markup):
    hosts file follows:
    
    127.0.0.1    localhost
    127.0.1.1    larry-ThinkPad-T550
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    
    127.0.0.1    foxclone
    Code (markup):
    Can anyone suggest what the problem might be? TIA
     
    Solved! View solution.
    Larry78723, Dec 13, 2021 IP
  2. #2
    Documentroot is
    /var/www/foxclone/public_html
     
    pavv, Dec 13, 2021 IP