Support » Fixing WordPress » Filezilla and php.ini

  • Hello everyone,

    I hope this is not a duplicate and/or I am posting in the wrong place.

    I hope someone will be able to help me with this, I am using Filezilla and am trying to download my whole site into my hard drive for backup.

    Everything goes smoothly except for one file: php.ini, which in filezilla looks like a folder with an arrow on it. If I click on it to explore it I get the following error message:
    “Error: Failed to open “\php.ini” for writing
    Error: File transfer failed”

    When I try to import it from the remote folder the error is “Could not start transfer”.

    I am using version

    I read somewhere that Filezilla3 has issues recognizing certain files and sees them a forlders.

    Any thoughts anyone?


Viewing 7 replies - 1 through 7 (of 7 total)
  • I recently had trouble with FileZilla updating itself and then still being an older version, but I have never had the kind of problem you have described. To see what happens, I would first take a look a file permissions, then possibly change the file’s extension temporarily.

    Thank you leejosepho,

    Changing the name didn’t solve the problem.

    I checked the permissions and it looks like it’s all good there.

    Changing the name was ok, however, while the file had a different name it still showed as a folder and I could not explore it. Then I named it back to php.ini and got an error message “
    Command: CWD php.ini
    Response: 550 Can’t change directory to php.ini: No such file or directory
    Error: Failed to retrieve directory listing”

    Please note that this is the only file to give me such issues.

    Any other thoughts?

    This could be dangerous if you cannot change it back, but did you try changing the file extension from .ini to .txt or whatever? My hope there would be to change it and download it, then change both copies back. However, you might be better off just leaving that file alone and getting a copy elsewhere or whatever until you get this matter figured out.

    Just updated my FileZilla to 3.7.3 and it shows the php.ini in the root of my hosting account as a single file, which it can download.

    Unfortunately neither changing the name or updating Filezilla has fixed the problem.

    Does anybody else have any thoughts?

    Turns out that PHP.INI is not a file that can be backed up or downloaded this way. According to my Hosting company the file that I see is only an image created by the server.

    That could be a good thing to help protect your account at the server. If you have not already done so, maybe take a look in your server CP where you might be able to see what PHP version is running in your account. I recently changed from 5.2 to 5.3, and a temporary switch to 5.4 seemed to indicate possible problems with one of my favorite plugins later on!

    Here is the beginning portion of my own php.ini with a link to more info:

    ; About php.ini   ;
    ; PHP's initialization file, generally called php.ini, is responsible for
    ; configuring many of the aspects of PHP's behavior. 
    ; PHP attempts to find and load this configuration from a number of locations.
    ; The following is a summary of its search order:
    ; 1. SAPI module specific location.
    ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
    ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
    ; 4. Current working directory (except CLI)
    ; 5. The web server's directory (for SAPI modules), or directory of PHP
    ; (otherwise in Windows)
    ; 6. The directory from the --with-config-file-path compile time option, or the
    ; Windows directory (C:\windows or C:\winnt)
    ; See the PHP docs for more specific information.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Filezilla and php.ini’ is closed to new replies.