• Doodlebee

    (@doodlebee)


    I just wanted to post something here – it’s not a question. I just installed WordPress for a client (yeah, a paying one), and I was having a *severe* issue getting the blog to show up. I installed/uninstalled 4 times, dropped the database each time, blah blah, fresh installs on a Linux server. Every time, I would get the “No input file specified.” error when trying to view the site.

    No, I didn’t mess with permalinks, and nothing was showing up in the error logs – this is brand-spankin’ new…don’t even have the plugins installed yet.

    I’m working on the site “incognito”, meaning there’s already a static site at “index.html”, but I’m working from “index.php”, so I changed the Blog URI to “https://bloghere.index.php” so I could work until the time came to make it live.

    The problem was, when I viewed the page, WordPress would instert a trailing slash after the url…so instead of “https://www.sitename.com/index.php” I was getting “https://www.sitename.com/index.php/”. The former, I could see the site just fine, but the latter would result in the error. So for some reason, that trailing slash was royally screwing things up.

    Well, I fixed it, and I’ve seen a couple of others who’ve noticed this issue as well, but no solutions. So I’m going to share mine.

    In the .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteCond %{REQUEST_URI} !/$
    RewriteRule (.*) $1\.php [L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ /$1 [R=301,L]
    </IfModule>

    That removes the trailing slash at the end. This is for the default permalinks only – not any custom format. If you want a custom format, you can take the above and run with it to try and figure out how to fix. But I only needed the default (for now), and the client’s paying me by the hour, so I don’t have time to mess with it and see how to make it work with custom configurations.

    But there, hope it helps someone else with this issue.

Viewing 1 replies (of 1 total)
  • hi, i have a website named https://www.mizar5.net (now directed to its guestbook) and it runs on WordPress since 2005. since yesterday, the ‘no input file specified’ message shows up and nobody’s done anything to cause that. all i did was post an entry, as usual. that was it.
    i can’t fix codes, can only reproduce and copy/paste, but have no clue what’s what, where and why.

    so, i am looking for a solution to get it fixed.
    also, when i try to download the folder that has this whole wordpress mizar5 module, (as a back-up), it says access denied, i have no permission of the server to download the index.php.

    but there is no index.php.
    if i look via my FTP/Fetch, i see nothing. if i look via Presentations and editor via the dashboard (i still have access to that area and see every post as in how to edit), i can see the code to the index.php page. but it doesn’t show in the folder in the FTP….

    every solution i see in here, is for problems that occurred when people changed stuuf, or renewed and such. i haven’t changed or updated anything. i still intend to, but Mizar5 worked fine the way it was. until yesterday.

    i hope someone can help me,
    cheers,
    Gina/Mizar5

Viewing 1 replies (of 1 total)
  • The topic ‘“No input file specified” solution’ is closed to new replies.