Joomla – Admin Login: “No input file specified”
First time experiencing this error message “No input file specified” when trying to access the back-end of a client’s site at https://www.website.com/administrator/index.php. In fact, the entire login form is missing from the admin login page!
Spent a hour with HostGator’s chat, but they couldn’t figure it out. Below I’m listing the resources I’ve found so far and briefly read through. I have no idea if any of them with fix this “No input file specified” issue.
- “No Input File Specified” Error on Joomla 3.3.6
- No Input File Specified in Joomla (see 2nd half of article)
- Admin login error: No input file specified
- Problem “No input file specified”
- Tutorial: how to solve “No input file specified” problem
- Joomla Troubleshooter. No input file specified (10-point list + GoDaddy options)
- Akeeba Backup may also be the issue?
UPDATE: Read the ERROR LOG from the /public_html/administrator directory. This helped me focus on open_basedir restriction in effect
[06-Mar-2019 18:40:03 America/Chicago] PHP Warning: Unknown: open_basedir restriction in effect. File(/path/path/public_html/administrator/index.php) is not within the allowed path(s): (/path/path/public_html/tmp:/path/path/public_html/logs) in Unknown on line 0
FTP’d into the /public_html/administrator directory and disabled the php.ini file by renaming it to php.ini-BAK. This allowed the login form to display on the admin page (it simply wasn’t displaying before), and I successfully logged into the back-end of the Joomla site.
I don’t yet know what went wrong with the php.ini file in the /public_html/administrator directory, but I’ll investigate. Maybe the open_basedir URL paths are incorrect – for whatever reason. I believe the open_basedir paths in /public_html/administrator need to include /administrator/ in them. It’s been too long since I set it up.
Ended up deleting any reference to open_basedir in the php.ini file that was in the /public_html/administrator directory.
We’re also running Akeeba’s Admin Tools to password-protect access to the admin login page. Admin Tools’s guidance is helpful, which I also tried (but ended up not needing):
If your administrator area becomes inaccessible, please remove the .htaccess and .htpasswd files from the administrator directory using FTP or your host’s File Manager.