leimeisei
-
Posts
6 -
Joined
-
Last visited
Never
Posts posted by leimeisei
-
-
but why does it return non-writable, when the file is actually writable?
-
Safe Mode is not enabled for PHP. Also, file_exists, if used with the same file path, returns a true. Here is the code I am using for writability testing:
<?php
die( "Status: ".is_writable("pages/default/settings.php"));
?>
The output looks like....
Status:
-
And yes, I did a chmod 777 on all directories and files that I want writable, and confirmed my actions using ls -la (i am on linux)
-
Why is this happening? I call is_writable(file that exists and is writable) and it returns nothing. This only happens on one of my servers. Why would this happen?
-
Hi all,
I've set up quite a few linux (more specifically Fedora) PHP/MySQL/Apache servers, but never had this problem before.
Whenever I set up most PHP applications, like Joomla, Drupal, and SMF, I am prompted to make certain directories writeable. So I do an ssh into my server using the root user, and do chmod 777 [filenames/directories here]. However, it doesn't work on this particular server. On my other servers, doing the chmod 777 does the trick, but on this one, i'll just refresh, and the PHP app still complains about not having write permissions. I tried restarting httpd and everything, still doesn't work.
When I do ls -la on my smf directory, all the directories/files I want to have writeable by PHP have permissions rwxrwxrwx so those are obviously okay, and they are all owned by root, of course I don't think owner matters because the third 7 in the octet should specify that it is writeable by everyone.
Does anyone know what is causing this? If anyone needs more info, I can give it.
Is_writable returns nothing
in PHP Coding Help
Posted
PHP runs under user "apache". So I'm afraid I don't understand. I have marked the file writable by all. I even tried chown apache settings.php so that the user owned the file.
I appreciate everyones continued help.