Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

apache run script on startup

sudo nano /etc/init.d/apache
or
sudo nano /etc/init.d/apache2

Search for the start / restart section and add your cli call for your PHP script

restart)
            [..]
            php -q /tmp/myscript.php &
            ;;
 
PREVIOUS NEXT
Tagged: #apache #run #script #startup
ADD COMMENT
Topic
Name
3+3 =