Author Topic: command not found php and mysql  (Read 2863 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
command not found php and mysql
« on: October 17, 2020, 12:05:04 PM »
Hello,

I am trying to give some PHP and MySQL command through jailkit user but I receive the following errors

Code: [Select]
bash: mysql: command not found
Code: [Select]
bash: php: command not found
How I can solve this?

Regards,

Re: command not found php and mysql
« Reply #1 on: October 17, 2020, 12:45:24 PM »
Easy, if you know what you are doing!
Specify the full path to the command being used and/or ensure it is in allowed paths for the jailed environment.
Disabled PHP functions (eg. shell_exec) may also restrict the use of a command.
Google is your friend, if you don't have a proper sysadmin. ;)

Offline
*****
Re: command not found php and mysql
« Reply #2 on: October 18, 2020, 06:37:19 AM »
@geokat If you use the Jail make sure the binaries are copied to the required folders (something like /home/username/bin/).
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services