WebSo I execute this command over SSH su cd /var/www sudo chown www-data:www-data -R * /etc/init.d/apache2 restart (www-data is my apache user).Still itv cant write into files. I … WebIn order for apache to access the data and owncloud to work, the owncloud/data directory has to belong to www-data:www-data. But if I try this: chown -R www-data:www-data /media/hdd/owncloud/data the ownership gets set to root:root, whatever owner the files and folders had before. This also happens for a single file:
linux - What user should apache and PHP be running as? What …
Webchown -R apache.apache /var/www/html # Assuming apache as default User chmod -R 755 /var/www/html # Making sure all users can read and execute On a separate terminal run following commands: apachectl configtest && apachectl restart tail -f /etc/httpd/logs/error_log # Assuming default error_log location WebYou may try to use the following command-line method to find out your Apache group names: WWW_GROUP=`ps axo user,group,comm egrep ' (apache httpd)' grep -v ^root cut -d\ -f 2 uniq` echo Apache group is: $WWW_GROUP To get the user, check: How to determine Apache user from the command-line? Share Improve this answer Follow the amityville horror house ghost
apache 2.2 - What permissions should my website files ... - Server Fault
WebJan 24, 2024 · The chown command in Linux allows you to change the ownership of files and directories. You can rightly guess that ‘chown’ is short for ‘change owner’. If you are not aware of these terms, I highly … WebMar 14, 2008 · Install/Configuration Install Issues (chown: `apache:apache': invalid user) gaussian Mar 14, 2008 G gaussian New Member Mar 14, 2008 #1 Hi all, I've got a Centos 4.6 2.6.9-67.0.4.ELsmp #1 SMP box running WHM 11.15.0 cPanel 11.18.3-S21703. I've run through the install procedure and I get some errors thrown up and the server won't start. … WebTo allow the apache daemon to change file ownership without being root, add the following line to /etc/system: set rstchown=0 Reboot the server. There are security concerns doing this as this modification allows any user to change ownership of their files to anyone else. up down -1 njs+php at scifi dot squawk dot com ¶ 22 years ago the amityville horror trilogy blu ray