I made a simple script like:
#!/bin/bash
php /var/www/mysite/script1.php
php /var/www/mysite/script2.php
When I run it as root like this:
bash update.sh
I get following errors:
Could not open input file: /var/www/mysite/script1.php
Could not open input file: /var/www/mysite/script2.php
What is wrong ? I tried with permissions 777 on my php files and all folders to access it. When I do directly php /var/www/mysite/script1.php in my command line it works fine.