firmis132
September 5th, 2008, 12:14 PM
hello,
i have a headless ubuntu lan server which runs apache2 and at start up mounts a lan hdd with fstab.
the root directory is set to the lan hdd and works fine, but when it tries to write a new file with fopen - permission denied.
i check chown and chmod and owner is root and 664, so it can be opened by php...
the folder containing the new file belongs to apache and is 777
fstab------------
//10.0.0.3/folder /media/folder cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77 0 0
------------------
etc/apache2/sites-enabled/server.site.conf------
<VirtualHost 10.0.0.101>
DocumentRoot /media/folder
ServerName server.site
<Directory "/media/folder">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
---------------------------------------------------
any suggestions what might be wrong?
thanks
i have a headless ubuntu lan server which runs apache2 and at start up mounts a lan hdd with fstab.
the root directory is set to the lan hdd and works fine, but when it tries to write a new file with fopen - permission denied.
i check chown and chmod and owner is root and 664, so it can be opened by php...
the folder containing the new file belongs to apache and is 777
fstab------------
//10.0.0.3/folder /media/folder cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77 0 0
------------------
etc/apache2/sites-enabled/server.site.conf------
<VirtualHost 10.0.0.101>
DocumentRoot /media/folder
ServerName server.site
<Directory "/media/folder">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
---------------------------------------------------
any suggestions what might be wrong?
thanks