Lukket

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

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

Se mere: 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

Om arbejdsgiveren:
( 6 bedømmelser ) salerno, Italy

Projekt ID: #17865854

5 freelancere byder i gennemsnit €44 på dette job

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 in 0 dage
(21 bedømmelser)
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 Flere

€25 EUR på 1 dag
(13 bedømmelser)
3.2
kselax

I can do it .111

€23 EUR på 1 dag
(4 bedømmelser)
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 Flere

€155 EUR in 4 dage
(0 bedømmelser)
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 Flere

€8 EUR på 1 dag
(0 bedømmelser)
0.0