Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: geokat on October 17, 2020, 12:05:04 PM

Title: command not found php and mysql
Post by: geokat 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,
Title: Re: command not found php and mysql
Post by: cinique 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. ;)
Title: Re: command not found php and mysql
Post by: Igor S. 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/).