How to set write permission for Bitnami Lamp Stack -


i have installed bitnami lamp stack on aws. installation quick , smooth , able bitnami welcome page. php hello world successful , uploading files filezilla on folder /opt/bitnami/apache2/htdocs ok. php couldn't write file on folder following php:

<?php echo "hello world<br>"; $data_table="this file write test"; $file = 'test.txt'; $handle = fopen($file, "w") or die("unable open file!"); echo "the file {$file} can written"; fwrite($handle, $data_table); fclose($handle); ?> 

in fact got error message unable open file! apparently web server cannot write folder while filezilla can it.

i spent several hours trying understand wrong. tried add complete path, changed temporarily chmod 777, chown group/user no success. tried other php applications need create files , them did not work. quite frustrated. highly appreciated.

roberto


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -