PHP SCRIPT FOR LAUNCHING COMMANDS OCC (NEXTCLOUD) FROM SHARING HOSTING
€8-30 EUR
Cerrado
Publicado hace más de 5 años
€8-30 EUR
Pagado a la entrega
Hi all, I need to run an occ command on my nextcloud instance but it is hosted on a shared hosting so I can not use the shell. On the net I read that it is possible to bypass the shell using a php script like this:
<?php
exec("/etc/apache/php7.2/ -d memory_limit=512M occ db:add-missing-indices");
?>
The problem is that when I launch this script I realized it does not work and I get the following error in the log:
Sat, 29 Sep 2018 22:25:56 GMT [error] [client 1.10.411.7] - [login to view URL] - AH01215: sh: /etc/apache/php7.2/: Is a directory: /web/htdocs/[login to view URL]
Where am I wrong?
I use an Aruba hosting
sir the error is quite simple , you need to remove the / from the end of /etc/apache/php7.2/ but that might not solve your issue . if it doesn't then we need to go a little more in depth
Basically you need to put changes in your php scripts related proper php72 client binary location on server filesystem.
Which one exactly? there are basically couple of potential locations present - so need to play a bit to guess which one exactly.
So basically can help with short investigation on related and proper changes in script after, so all works correctly.
Tnx and Regards.