The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
3answers
815 views

PHP cli uses different php.ini file when run by cron

My CakePHP console script is having problems executing under cron. It complains about missing Mysql connections and such. After a little investigating I found that php run by cron uses a different ...
0
votes
1answer
113 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
741 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 ...
1
vote
1answer
515 views

Enable coloured PHP CLI messages on console

How to enable coloured messages for PHP CLI on console (Mac OS X, latest PHP/Apache from MacPorts)? export CLICOLOR=1 export LSCOLORS=gxfxcxdxbxegedabagacad doesn't seem to be enough, all PHP CLI ...
3
votes
3answers
7k 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 ...
2
votes
3answers
497 views

PHP-CLI cannot execute scripts on Samba Share (using cifs) inside a guest VM (Centos 6)

I have a centos 6 VM running as a guest within Virtualbox. I've set up a LAMP stack which I am able to access from the host (Windows) environment. I've mounted a SMB share using 'mount -t cifs' and ...
-1
votes
2answers
459 views

PHP CLI error: Could not startup

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.. However, if I add the -n option, which ...
1
vote
2answers
2k views

Changes made to cli's php.ini not taking effect

I have two php.ini files - /etc/php.ini which loads in case of cli /opt/lampp/etc/php.ini which loads in case of browser. I am able to use PHP's Mailparse extension after adding the line ...
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
1k 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
1answer
227 views

What are the issues when installing PEAR on Windows XP?

I have a problem using the CLI with PEAR in a WAMP environment, I have tried different ways of getting pear to run in CLI but it doesn't want to go, I even have tried making a pear.bat file that ...
-2
votes
2answers
121 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?