Skip to main content

404 on any .PHP custom file

Comments

8 comments

  • Damian2Cubed
    Nvm, still not working
    0
  • Cake
    This has to due with how the wordpress redirects are handled. Adding a "ErrorDocument 401 default" to the top of your .htaccess can fix the issue sometimes. If that does not do it, you can add a rewrite condition to allow the custom files to exit the redirect rule. As for - SoftException in Application.cpp:267: File "/home/tackpackaging/public_html/phpinfo.php" is writeable by group This typically means that you're using permissions higher than 644 for the file.
    0
  • nixuser
    I am running Wordpress 5.2.2 (just like other accounts on this server) - I have some custom work to do with the site and it requires to create custom .php files. These files which I need to use across the site are returning 404 not found. I tested the same files on other accounts on this server and this is only happening on this account.

    Other accounts have wordpress installed in them?
    0
  • Damian2Cubed
    Yes, same versions etc.
    0
  • nixuser
    The php files are created in the root wordpress install directory or in a subfolder?
    0
  • Damian2Cubed
    Any where - I just created a test.php with and it does not work - 404 page where ever I put it.
    0
  • cPanelLauren
    Is anything noted in the Apache error log when you go to a custom php page?
    0
  • nixuser
    Is there a caching plugin in use?
    0

Please sign in to leave a comment.