Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Dreaded Error 403 on XAMPP/WAMP from non localhost. Tried all the google fixes, no luck
New Posts  All Forums:Forum Nav:

Dreaded Error 403 on XAMPP/WAMP from non localhost. Tried all the google fixes, no luck

post #1 of 19
Thread Starter 
I just installed WAMP, ran into the 403 issue, uninstalled, and tried XAMPP. Both are giving me the same issue after trying all the google fixes i could find for each. Currently XAMPP is installed. I can get to the pages via localhost, but as soon as I use an IP address from within my LAN, I get a 403 error.

All the solutions I find on google are to edit the httpd-xampp.conf file (adding things like Allow from all and Require all granted). I've tried those and no luck. The xampp security screen even shows "These XAMPP pages are accessible by network for everyone". So what gives? Any ideas what the issue is?

This is running on a windows 8 machine.
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
post #2 of 19
403 is forbidden (https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error).

The problem isn't WAMP / XAMPP, it's either the permissions on your docs directory or the lack of an index document (eg index.html).
post #3 of 19
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

403 is forbidden (https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error).

The problem isn't WAMP / XAMPP, it's either the permissions on your docs directory or the lack of an index document (eg index.html).

there are files, including an index.html. I can access them from the computer using localhost/index.html. But if I sub out localhost for the actual local ip or try to access using that same local ip from another machine on my network, i get that error. The www directory is created when the program installs, so the permissions should be fine, especially since i can get to it via localhost.
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
post #4 of 19
have you allowed your lan to access it? (IE done nay config apart from install)
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
post #5 of 19
Thread Starter 
Quote:
Originally Posted by Ulquiorra View Post

have you allowed your lan to access it? (IE done nay config apart from install)

how would i check this?
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
post #6 of 19
a quick google suggested
"""
Comment out the line Require local in httpd-xampp.conf.
Restart Apache.
Worked for me connecting my mobile phone to my test web-site on my PC. No idea of the security implications.
"""

http://stackoverflow.com/questions/21161908/new-xampp-security-concept-access-forbidden-error-403-windows-7-phpmyadmin
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
post #7 of 19
Thread Starter 
Quote:
Originally Posted by Ulquiorra View Post

a quick google suggested
"""
Comment out the line Require local in httpd-xampp.conf.
Restart Apache.
Worked for me connecting my mobile phone to my test web-site on my PC. No idea of the security implications.
"""

http://stackoverflow.com/questions/21161908/new-xampp-security-concept-access-forbidden-error-403-windows-7-phpmyadmin

yep, tried all that. no luck.
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
post #8 of 19
Whats in the error log about it?
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
post #9 of 19
Quote:
Originally Posted by clawlan View Post

there are files, including an index.html. I can access them from the computer using localhost/index.html. But if I sub out localhost for the actual local ip or try to access using that same local ip from another machine on my network, i get that error. The www directory is created when the program installs, so the permissions should be fine, especially since i can get to it via localhost.

Ahhh, that would likely be a problem with your virtual hosts then.

Can you post your config files (inside [code] and [spoiler] tags too please)
post #10 of 19
Thread Starter 
Here are the config files:

Fresh error log, just after starting apache, going to localhost/xampp (Click to show)
Code:
[Sun Jan 11 20:46:31.361869 2015] [ssl:warn] [pid 1164:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 20:46:31.382653 2015] [core:warn] [pid 1164:tid 380] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 11 20:46:31.448671 2015] [ssl:warn] [pid 1164:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 20:46:31.662620 2015] [mpm_winnt:notice] [pid 1164:tid 380] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 configured -- resuming normal operations
[Sun Jan 11 20:46:31.662620 2015] [mpm_winnt:notice] [pid 1164:tid 380] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Sun Jan 11 20:46:31.662620 2015] [core:notice] [pid 1164:tid 380] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Jan 11 20:46:31.663622 2015] [mpm_winnt:notice] [pid 1164:tid 380] AH00418: Parent: Created child process 4828
[Sun Jan 11 20:46:31.900500 2015] [ssl:warn] [pid 4828:tid 400] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 20:46:32.010893 2015] [ssl:warn] [pid 4828:tid 400] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 20:46:32.034923 2015] [mpm_winnt:notice] [pid 4828:tid 400] AH00354: Child: Starting 150 worker threads.
httpd-xampp.conf (Click to show)
Code:
#
# XAMPP settings
#

<IfModule env_module>
    SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
    SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
    SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
    SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
    SetEnv PHPRC "\\xampp\\php"
    SetEnv TMP "\\xampp\\tmp"
</IfModule>

#
# PHP-Module setup
#
LoadFile "C:/xampp/php/php5ts.dll"
LoadFile "C:/xampp/php/libpq.dll"
LoadModule php5_module "C:/xampp/php/php5apache2_4.dll"

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>

#
# PHP-CGI setup
#
#<FilesMatch "\.php$">
#    SetHandler application/x-httpd-php-cgi
#</FilesMatch>
#<IfModule actions_module>
#    Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
#</IfModule>


<IfModule php5_module>
    PHPINIDir "C:/xampp/php"
</IfModule>

<IfModule mime_module>
    AddType text/html .php .phps
</IfModule>

ScriptAlias /php-cgi/ "C:/xampp/php/"
<Directory "C:/xampp/php">
    AllowOverride None
    Options None
    Require all denied
    <Files "php-cgi.exe">
          Require all granted
    </Files>
</Directory>

<Directory "C:/xampp/cgi-bin">
    <FilesMatch "\.php$">
        SetHandler cgi-script
    </FilesMatch>
    <FilesMatch "\.phps$">
        SetHandler None
    </FilesMatch>
</Directory>

<Directory "C:/xampp/htdocs/xampp">
    <IfModule php5_module>
        <Files "status.php">
                php_admin_flag safe_mode off
        </Files>
    </IfModule>
    AllowOverride AuthConfig
</Directory>

<IfModule alias_module>
    Alias /security "C:/xampp/security/htdocs/"
    <Directory "C:/xampp/security/htdocs">
        <IfModule php5_module>
                <Files "xamppsecurity.php">
                        php_admin_flag safe_mode off
                </Files>
        </IfModule>
        AllowOverride AuthConfig
        Require all granted
   </Directory>

    Alias /licenses "C:/xampp/licenses/"
    <Directory "C:/xampp/licenses">
        Options +Indexes
        <IfModule autoindex_color_module>
            DirectoryIndexTextColor  "#000000"
            DirectoryIndexBGColor "#f8e8a0"
            DirectoryIndexLinkColor "#bb3902"
            DirectoryIndexVLinkColor "#bb3902"
            DirectoryIndexALinkColor "#bb3902"
        </IfModule>
        Require all granted
   </Directory>

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    <Directory "C:/xampp/phpMyAdmin">
        AllowOverride AuthConfig
        Require all granted
    </Directory>

    Alias /webalizer "C:/xampp/webalizer/"
    <Directory "C:/xampp/webalizer">
        <IfModule php5_module>
                <Files "webalizer.php">
                        php_admin_flag safe_mode off
                </Files>
        </IfModule>
        AllowOverride AuthConfig
        Require all granted
    </Directory>
</IfModule>

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Allow from all
   Require all granted
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

httpd-vhosts.conf (Click to show)
Code:
# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ##ServerName or ##ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
    ##ServerAdmin webmaster@dummy-host.example.com
    ##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"
    ##ServerName dummy-host.example.com
    ##ServerAlias www.dummy-host.example.com
    ##ErrorLog "logs/dummy-host.example.com-error.log"
    ##CustomLog "logs/dummy-host.example.com-access.log" common
##</VirtualHost>

##<VirtualHost *:80>
    ##ServerAdmin webmaster@dummy-host2.example.com
    ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
    ##ServerName dummy-host2.example.com
    ##ErrorLog "logs/dummy-host2.example.com-error.log"
    ##CustomLog "logs/dummy-host2.example.com-access.log" common
##</VirtualHost>




Edited by clawlan - 1/11/15 at 5:51pm
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
Dagobah
(11 items)
 
Coruscant
(8 items)
 
Endor (retired)
(14 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 7700k Asus Strix Z270F Gaming EVGA GTX 1070 SC 16GB G.Skill Trident Z DDR4-3200 
Hard DriveCoolingOSKeyboard
500GB Samsung 960 Evo M.2 Cryorig H5 Universal Windows 10 x64 Microsoft Sidewinder X4 
PowerCaseMouse
EVGA SuperNOVA G3 650w Phanteks Enthoo Evolv ATX  Mionix Avior 7000 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Dreaded Error 403 on XAMPP/WAMP from non localhost. Tried all the google fixes, no luck