Hey Guys,
I am using Centos 7 on AWS on an EC2 to work on development for laravel 5. I managed to get composer installed and working and laravel working.
Everything works fine, however any time I run a composer update or any type of command from terminal the files then become owned by root instead instead of apache and my FTP access will then refuse to update files as it no longer has permisson.
In order to make the files writable again through FTP I need to use the following command:
chown -R apache:apache directoryofinstallation
Whilst this is not a major drama it just gets tedius! Is there anyway I can resolve this? Either by running the terminal commands as apache or by allowing apache to edit files created by root.
Any advice would be great.
Mark
I am using Centos 7 on AWS on an EC2 to work on development for laravel 5. I managed to get composer installed and working and laravel working.
Everything works fine, however any time I run a composer update or any type of command from terminal the files then become owned by root instead instead of apache and my FTP access will then refuse to update files as it no longer has permisson.
In order to make the files writable again through FTP I need to use the following command:
chown -R apache:apache directoryofinstallation
Whilst this is not a major drama it just gets tedius! Is there anyway I can resolve this? Either by running the terminal commands as apache or by allowing apache to edit files created by root.
Any advice would be great.
Mark