for ubuntu server, in /etc/apache2/envvars,
for centos server, in /etc/sysconfig/httpd,
to add:
export PATH=<your php cli path>
and restart apache
More Related Contents:
- The requested URL was not found on this server.
- Allow php sessions to carry over to subdomains
- How to do URL re-writing in PHP?
- Htaccess: add/remove trailing slash from URL
- Increasing the maximum post size
- Execute PHP script in cron job
- How do I resolve a HTTP 414 “Request URI too long” error?
- Execute root commands via PHP
- The mysqli extension is missing. Please check your PHP configuration
- How to override the path of PHP to use the MAMP path?
- WAMP Cannot access on local network 403 Forbidden
- how to access the command line for xampp on windows
- Using X-Sendfile with Apache/PHP
- .htaccess issues: No input file specified
- MySQL/PHP Error:[2002] Only one usage of each socket address (protocol/network address/port) is normally permitted
- PHP emitting 500 on errors – where is this documented?
- Setup HTTP expires headers using PHP and Apache
- Preventing Caching of CSS Files
- Apache error [notice] Parent: child process exited with status 3221225477 — Restarting
- How to enable and use HTTP PUT and DELETE with Apache2 and PHP?
- Changing the root folder via .htaccess
- Intermittent PHP Abstract Class Error
- How to manage a single PHP5 session on multiple apache servers?
- Enabling ‘strict_types’ globally in PHP 7
- Using PHP/Apache to restrict access to static files (html, css, img, etc)
- Authorization header missing in PHP POST request
- Redirect all traffic to index.php using mod_rewrite
- OpenSSL not working on Windows, errors 0x02001003 0x2006D080 0x0E064002
- 500 Internal Server Error?
- .htaccess – Redirect subdomain to folder