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