WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] installer (setup-config.php) chmod to 0604 so I can't change wp-config (4 posts)

  1. timtak
    Member
    Posted 7 years ago #

    The wordpress installer uses setup-config.php to create and change the wp-config.php file.

    After making all the changes it chmods the file to
    chmod('../wp-config.php', 0604);
    However since it is running as apache this means that I as a user can not download, view, edit or chmod my wp-config.

    I get
    SITE CHMOD 777 /path/wp-config.php
    Response: 550 /path/wp-config.php: Operation not permitted

    My server adminstrators do not bend over backwards (to say the least) to help so I need to work out a way to write a php script to chmod or chown the file to something that I can access.

    If I just write a php file with
    chmod('../wp-config.php', 0777);
    and other one to put it back will that work?

    I think that perhaps chmod is a wordpress php function maybe...

    Tim

  2. timtak
    Member
    Posted 7 years ago #

    Is no one else having this problem?

  3. moshu
    Member
    Posted 7 years ago #

    We edit the config file manually before the installation process starts. So, we don't have this problem.

  4. timtak
    Member
    Posted 7 years ago #

    Thank you for your response. I did not seem to get a notification, so it is a good thing I noticed. I think would have done it manually too if I had know what the installer was going to do to me.

    Fortunately I have found the following file manipulation softwaret that includes a chmod function.
    http://www.solitude.dk/filethingie/contact.php
    which seems to be able to chmod wp-config.

    Tim

Topic Closed

This topic has been closed to new replies.

About this Topic