While using PHP exec command, if it is not working , Follow these to debug
1. Check your web server error_log.
Usually in MAC, for APACHE web server, it is located at /var/log/apache2/
1.1 Case1: the web server does not have permission to read/execute a command/file.
Solution to Case1: Simple, change file permissions.
1.2 Case2: The exec command will throw sh: Command Not found
Solution to Case2: Read this
2. Append 2>&1 to your command to get std errors as well. Read this for more info
Subscribe to:
Post Comments (Atom)
Detectron2 + PyTorch CPU : Fix Install issue
Detectron2 + PyTorch CPU ❌ The error $ pip install -q --extra-index-url https://download.pytorch.org/whl/cpu torch torchvision $ pip inst...
-
I was moving my cakephp application to a new server and had this issue: Error: The requested address “/” was not found on this server. The...
-
How to fix Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' Apparently, Ma...
-
We can login into Amazon EC2 instance using Filezilla FTP client for simple transfers of local files. Following are the steps: 1. Downloa...
No comments:
Post a Comment