• My blog was getting this error:

    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
    Fatal error: Unknown: Failed opening required ‘/home/….etc.

    It seemed to be stemming from php.ini. The contents of the php.ini file was one line starting with:
    auto_prepend_file = /home/….etc

    I deleted php.ini and now my blog works. Should I leave as is or put the file back but empty?

    Thanks!

Viewing 1 replies (of 1 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    You can safely leave the php.ini file out, it is very rare that you will need that file (and it is not part of WordPress, it has to be put there by the user or host in that case).

    As long as your site works without it (and it sounds like it does, yay!), just leave it at that 🙂

Viewing 1 replies (of 1 total)

The topic ‘moved host – fail to open error – php.ini’ is closed to new replies.