Cerrado

PHP SCRIPT FOR LAUNCHING COMMANDS OCC (NEXTCLOUD) FROM SHARING HOSTING

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

Habilidades: Apache, Linux, MySQL, PHP, Web Hosting

Ver más: nextcloud 13 occ commands, nextcloud 12 command line, nextcloud occ command not found, could not open input file: occ, nextcloud 13 occ files scan, nextcloud 13 occ, nextcloud 12 occ commands, nextcloud occ 12, commands php script, php script connect telnet run commands, use ussd commands php script, php script send commands, sms gateway commands php script, php script connect ssh run commands, gsm commands php script, php script send sms gsm mobile commands, sms php script commands, freelancer for php script, i need a php script for ecurency business, php script work for scraping 2

Información del empleador:
( 6 comentarios ) salerno, Italy

Nº del proyecto: #17865854

5 freelancers están ofertando el promedio de €44 para este trabajo

SuperWeb94

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

€9 EUR en 0 días
(21 comentarios)
4.2
Pro4Magento

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 Más

€25 EUR en 1 día
(13 comentarios)
3.2
kselax

I can do it .111

€23 EUR en 1 día
(4 comentarios)
1.7
priyasharma6725

Dear Client, We are expertise in php, core php, CMS, HTML5, CSS3, bootstrap, WordPress, OpenCart, Magento, PSD to HTML, Angular JS, Node JS photoshop, OPencart, Codeignitor, Laravel and many other technologies. We have Más

€155 EUR en 4 días
(0 comentarios)
0.0
Security2

Hi, Some shared hostings disable command execution for security reasons. But as I see in your log, the command execution is enable. So, you just need to make "occ" executable from your control panel (set permission t Más

€8 EUR en 1 día
(0 comentarios)
0.0