I am reading about how to create a sevice like:
The first link I read is. https://geekytheory.com/crear-un-servicio-en-linux
But when I type following line in prompt
$ sudo service nameservice start
Failed to start nameservice.service: Unit nameservice.service not found
I create this script
/var/www/myproject/myscript.php
I checked all the permissions
-rwxrwxrwx 1 root root 1069 feb 2 15:49 nameservice
-rwxrwxrwx 1 root root 24 feb 2 15:56 myscript.php
/var/www/myproject/myscript.php
has this content
<?php
echo "OK";
?>
Could you help me? This is the first manual script I wrote.
My intention is to add this service and then call the url http://localhost/getanswer
to show it to me in the browser.
I open the browser and go to
http://localhost/myproject/myscript.php
and I have answer expected like: browser
Then I need how to connect with post request of this url to show one answer or other.
– Iván Feb 03 '17 at 10:10