The interpreter php.exe is searchable, so the 403 issue is fixed. So double check php is available in the %PATH%:Ĭonrol Panel -> Advanced System settings -> Advanced -> Environment Variables -> System variables-> path: Instead of above settings globally, the following just setup the privilege for ‘/test’: Į.g., in Windows, if php.exe is not at the %PATH% env variables, the 403 error occurs. Options Indexes FollowSymLinks Includes ExecCGI The DOCUMENTROOT default can’t be access, in the local machine, we’d better to change the previlege like this: There are 2 level of previlege assignment in nf: However make sure to configure it correctly. This kind of configuration is easy and convenient. This maybe the simplest way to locate a web application in nf: Usually for easy setup and access web application, I use a lot of aliases in nf, e.g.:Īlias /test “c:\…\desktop\william\projects\test\” When executing, this command line forks a process to execute itself – the cgi process. Perl cgi is running by itself: in the first line of the perl cgi, is its shabang: Make sure the perl script is executable: normally the directory (which hold php scripts) should have the privilege ‘775’ and the php script file itself is ‘775’. Normally the directory (which hold php scripts) should have the privilege ‘775’ and the php script file itself is ‘664’. Php interpreter (/usr/bin/php) needs the privilege to access and parse it, so make sure the php script is accessible and readable If found this error, there are several ways to do quick fix.įor the web scripts (php or perl or whatever) in Linux: It means the permissions on the server do not allow what was being asked. Recommended Troubleshooting Step: It is important to check Apache version because in Apache version 2.4 or later has new parameters.The Apache 403 Forbidden Error is quite normal: A 403 status code indicates that the client cannot access the requested resource. See below given ~]# /opt/lampp/bin/apachectl -v Hence,we will use Apache 2.4.x parameters in related configuration files. IMPORTANT NOTE : In XAMPP Linux version 1.8.3-3, apache version is 2.4.7 is included. Now check the issue once again and open the XAMPP server URL in Web browser. Step 3: Open the XAMPP server URL in Web browser XAMPP: Stopping ~]# /opt/lampp/lampp startapache See below given reference from my ~]# /opt/lampp/lampp stopapache See below given reference from my ~]# /opt/lampp/lampp reloadapacheĪlternatively, you can also use stopapache startapache option with lampp command Now reload or restart the lampp’s apache service. Step 2: Reload the lampp’s apache service Add new line Require all granted and Comment the line Require local by using # sign.ĮrrorDocument 403 /error/XAMPP_ To solve the issue,follow the given below stepsĮdit he nf file.In this file we will allow ALL to access the XAMPP.Īt the end of file nf, you will see below given section(Inside LocationMatch). See below reference from my ~]# find /opt/lampp -name ~]# The output came up with file path as /opt/lampp/etc/extra/nf Hence,I searched the file nf inside /opt/lampp The XAMPP was installed in default path i.e /opt/lampp. The Error page was self explanatory with this statement – This setting can be configured in the file “nf” This setting can be configured in the file “nf”. Below given is the description of Error and screenshot.Īccess to the requested object is only available from the local network. After installation of XAMPP, I opened the URL address in web browser.By-default the URL redirected to Alias /xampp and It shown a apache “Error Page”. After installing XAMPP, I saw apache Error page “ Access to the requested object is only available from the local network.”I have installed XAMPP for Linux version 1.8.3-3 on CentOS 6.5.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |