When browsing to the installer.php file you get a 403 Forbidden message.
Solution 2If you would like to try and fix the issue yourself there are many different techniques you can try, but remember every host is setup differently sosome of these options may not properly work on your hosts and others will.
Issue B404 Not Found
When browsing to the installer.php file you get a 404 or page not found message.
Solution 2Apache Setup: When setting up the web server (typically Apache) one of the common overlooked setup parameters is the<Directory> directive. The following configuration will work on most setups but check withyour server admin to be sure on their server:<Directory />
Solution 3Troubleshoot: To troubleshoot this issue place two files called test.html and test.php in the same directory as the installer.php file. Then try to browse out to both of them via a web browser. If neither work then your site is not setup to server from the location at which they are placed. If only the test.html file works then PHP may not be properly enabled on your web server. If your not sure about how to configure your web server to server from the proper path or serve up PHP files then contact your hosting admin as these are not issues the plugin will be able to fix.
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
Allow from all
</Directory>
Issue C405 Not Allowed
When browsing to the installer.php file you get a 405 not allowed message.
The fastest way to resolve this issue is to work with the hosting companies technical support team. Typically what needs to be adjusted is how the web server excepts requests. The server error log on your hosts platform should help the system admin locate the specific request and adjust the server accordingly.
Option 2 Troubleshoot Server If you are familiar with troubleshooting web server issues you might have a look at this detailed 405 troubleshooting guide.
Issue DBlank/White or 500
If the installer is not showing up at all then there are a series of tests that you can try.
- Web Server: Check to make sure the web server is setup properly. Create a new file named test.php in the same location as the installer.php file. Inside the test.php file place the following code:
<?php phpinfo(); ?>
If this works and you see the text “PHP Version” at the top followed by other PHP settings info then continue to the other options below, if not then something is wrong with the web-server setup and you will need to contact your host or server administrator.
- Server Logs: Examine the server error log as explained here. Also you may access all server error logs by going to cPanel > Statistics > Error Logs or using your host-specific control panel. If you don’t have direct access to the server logs ask your host support to look for any errors in the logs for you.
- Permissions: Check the permissions on installer.php file and its parent directory. On most hosts it should be 755 and files should be 644. Be sure to double check with your hosting provider or server admin as to how they want permissions setup on their servers.
- Change Browsers: Open another web browser and check for the white screen. If it works in the new browser then it may be a browser cache issue. You can usually fix this by holding down ctrl+F5 or manually deleting your browser cache.
- Config Files: Backup and remove hidden configuration files such as .htaccess, web.config and .user.ini files (Apache, Microsoft IIS, WordFence). These filesunder certain circumstances have have configurations that prevent the installer from running. Simply remove them from the same directory that the installer.php fileis in and try to again. If the problem persist try and backup and remove the files from your root web directory, in most cases public_html.
- Installer.php Some hosts and security software will automatically block requests to files named “installer.php”. In this case try to rename the file to something else.Using the ‘installer.php’ file name on a public server is not recommended and users should consider using the hashed installer by going to Duplicator > Settings > Packages Tab> Installer settings > Set to [name]_[hash]_[date]_installer.php
- Reverse Proxy: When running behind a reverse proxy, the value of the original hostname called is in HTTP_X_FORWARDED_HOST. To get around this setup add the followingto the top of the installer.php and dup-installer\main-installer.php as such:
$_SERVER[‘HTTP_X_ORIGINAL_HOST’] = $_SERVER[‘HTTP_X_FORWARDED_HOST’];