guys i have a vmware server and trying to use PHP to write to a textfile. i'm trying to write to a textfilebut "file_put_contents(matteo.txt): failed to open stream: Permission denied"
then i checked the permissions with echo exec('whoami');
and i got
www-data
any ideas?
i assume it's something i have to change in the HTaccessfile
>>61484951
> Permission denied
su <webserver user>
ls /path/to/txt/file
Probably dir permissons.
>>61485025
>su <webserver user>
>ls /path/to/txt/file
>
>Probably dir permissons
in english please
this is my product btw if it helps
Your Active Products/Services
Las Vegas - OpenVZ - LV BuyVM-512MB
sever1
it's a virtual server i think
>>61485070
Can you get a shell open on your sever?
su chown -R www-data:www-data /path/to/parent/dir
su chmod - R 0774 /path/to/parent/dir