• I’m having problems uploading pictures. I’ve tried all the suggestions I’ve found on these forums. Nothing has resolved the “failed to write to disk” error.
    I asked my host, Verio, were I could find and edit the php.ini. They replied by creating a new php.ini file in my root directory. I changed the upload directory in that file to /tmp as suggested. However, I’m thinking the new php.ini file isn’t what I needed to edit. Should there be another php.ini file I should be editing? If no, is there somewhere else the php.ini file should besides the root directory?
    Thanks in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Should there be another php.ini file I should be editing?

    No.

    is there somewhere else the php.ini file should besides the root directory?

    To be clear, in this case, the root directory is where your web-accessible files are.

    For instance, upon using an FTP client to access their files, some people are “logged into” a directory that has logs/ public_html/ and other stuff. In that example, your custom php.ini goes inside the public_html directory.

    Here’s another way of explaining that, if WordPress is installed at the root of your domain, put the php.ini in the same directory as your wp-blog-header.php

    What I am trying to emphasize is the difference between root directory as in /home/username/ and root directory as in /home/username/www or /home/username/public_html

    Thread Starter ironcx

    (@ironcx)

    The php.ini file was in the “/www” directory. I moved it to the “/htdocs” directory which has my WordPress folders/files (wp-blog-header.php, etc). I tried clearing the js_cache and browser cache and am still not able to upload.

    Any other thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php.ini question’ is closed to new replies.