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:
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
5 freelancers están ofertando el promedio de €44 para este trabajo
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