Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Error #30

Closed
ericleonardo opened this issue Oct 12, 2017 · 3 comments
Closed

Install Error #30

ericleonardo opened this issue Oct 12, 2017 · 3 comments
Assignees

Comments

@ericleonardo
Copy link

ericleonardo commented Oct 12, 2017

Hi! MTS returns error during install on Centos 7 x64. Installing manually with file downloaded here.
Already gave exec privileges (755) to the file but still same error:

`Warning: exec() has been disabled for security reasons in /home/hotsale/MTS/Common/Devices/Actions/Local/Base.php on line 11

Warning: implode(): Invalid arguments passed in /home/hotsale/MTS/Common/Devices/Actions/Local/Base.php on line 13

Fatal error: Uncaught Exception: MTS\Common\Devices\Actions\Local\Host\OperatingSystem::execute>> Could not determine OS distribution in /home/hotsale/MTS/Common/Devices/Actions/Local/Host/OperatingSystem.php:115 Stack trace: #0 /home/hotsale/MTS/Common/Devices/Actions/Local/Host/OperatingSystem.php(11): MTS\Common\Devices\Actions\Local\Host\OperatingSystem->execute() #1 /home/hotsale/MTS/EnableMTS.php(39): MTS\Common\Devices\Actions\Local\Host\OperatingSystem->getOsObj() #2 /home/hotsale/MTS/EnableMTS.php(34): mtsEnvironmentalSetup() #3 /home/hotsale/public_html/MtsSetup.php(80): require_once('/home/hotsale/M...') #4 {main} thrown in /home/hotsale/MTS/Common/Devices/Actions/Local/Host/OperatingSystem.php on line 115`

@itsmemattchung
Copy link
Contributor

Looks like the OperatingSystem.php fails to detect your operating system (Centos 7 x64). To see why the code fails to match the regex pattern, can you post the output of php_uname();

@ericleonardo
Copy link
Author

I just read on Stack Overflow forum:
exec is almost always disabled on shared hosting, because this function is too dangerous.
Is there any way to execute MTS script without this exec function enabled on php.ini?
I run php_uname(); but page is blank. Just put <?php php_uname(); ?> inside a file on server and accessed.

@merlinthemagic merlinthemagic self-assigned this Oct 12, 2017
@merlinthemagic
Copy link
Owner

@ericleonardo Sorry no. As stated in the install readme exec() is required for Linux based distros. Without it we cannot interact with the CLI.

MM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants