0
votes
1answer
76 views

What are the affects of disabling CGI on my server to enable PHP CLI

I have a DS WHM - cpanel running apache / with litespeed I have a number of websites running on this server I need to run CLI on one of the sites the CGI module is enabled in the apache build. The ...
2
votes
1answer
511 views

PHP CLI: Call to undefined function mysql_connect() even with mysql module enabled

I try to run a PHP script from the command line, but get the following error: Call to undefined function mysql_connect() However, the mysql module is loaded: root /var/www/scripts # php -m | grep ...
3
votes
3answers
6k views

Apache executes HTML, but not PHP; PHP CLI works

I am running php 5.3.3 on rhel 6.2 with Apache 2.2.15 and am failing to get PHP code interpreted by Apache. There are no errors (in the system log, httpd/error_log, or php_errors.log) - I have ...
-1
votes
1answer
424 views

PHP CLI error: Could not startup

[ANSWER AT THE END OF THIS POST] I just installed the php5-cli package in Ubuntu 11.04. If I run: /usr/bin/php5 -a # The -a is for interactive mode I get the output: Could not startup.. ...
2
votes
2answers
3k views

PHP Warning: PHP Startup: apc.shm_segments setting ignored in MMAP mode

Any ideas on how i can fix this warning? Getting this while executing it from shell, on FreeBSD 8.x # /usr/local/bin/php --run 'echo "test";' PHP Warning: PHP Startup: apc.shm_segments setting ...
1
vote
4answers
954 views

Do PHP files need read permission to be executed in CLI?

I have a php file test.php #!/bin/php <?php echo "test"; ?> This file owned by root and its permissions are these -rwxr-x--x so 'others' can execute, but cannot read. When logged in ...
-2
votes
2answers
119 views

enabling php-cli in php5

i wanted to install php-cli in php5.2.11..does it come built-in or should i install it?