Questions tagged [php-cli]

12 questions
6
votes
3 answers

How Do I Install PHP CLI on Mac OS X?

I'm running Mac OSX 10.8.2. I'm also quite new to Mac OSX -- previously the only Mac I understood was the Classic Mac. My other workstations are Windows and Linux. What's the technique to install PHP CLI on Mac OSX? See, I use gedit for Mac and…
Volomike
  • 751
5
votes
2 answers

PHP output piped to 'less' is requiring after every command

Piping PHP output to the linux 'less' command causes 'less' to really act up. (CentOS 6.2, didn't happen with CentOS 5.) When I pipe output from php into 'less', it requires the enter key be pressed after every command, even after the 'j' command…
Eddified
  • 1,844
5
votes
1 answer

Supervisorctl stop all = stalled processes?

I'm running several PHP CLI scripts and monitoring them via Supervisor. When I use supervisorctl to monitor them, the scripts show like this: cleanup RUNNING pid 1805, uptime 0:00:41 postsales RUNNING pid 1825, uptime 0:00:10 rebills …
Lee Benson
  • 153
  • 1
  • 4
4
votes
3 answers

PHP CLI not respecting memory limit in php.ini

I am using drush, which is a command-line php app to manage a drupal website. I am running a command to import a lot of data, which is causing me to hit php's memory limit. PHP Fatal error: Allowed memory size of 536870912 bytes exhausted…
user13743
  • 1,751
4
votes
1 answer

Is PHP actually ported to AmigaOS?

I have long had the thought about what it would be like to have PHP running on an Amiga (I mean a real one), and have tried to search and ask about this. It's ambiguous as to whether or not it really exists. I have found this:…
Stan
  • 135
  • 1
  • 9
1
vote
1 answer

How to I configure Eclipse PDT 2.1 to display PHP CLI output in the console?

Starting with a recent version of Eclipse PDT, the standard out and standard error from executed PHP CLI code doesn't appear in the console anymore. (It still shows up in the Debug-perspective in the Debug Output-view). How can I change this back so…
1
vote
1 answer

launching php script as root from command line

How can I execute php script as root user? I tried: sudo ./script.php and in my script I've got at 1 line: #!/usr/bin/php
Krystian
  • 157
1
vote
0 answers

mod_security 2.6 + mod_fcgid not working

I have installed: Apache 2.2 + suexec (libxml2, etc.) Mod_security 2.6 Mod_fcgid I am using APACHE with newest hybrid EVENT MPM. I think it can be related to the problem. Here is the problem: Mod_security detects a threat, but do not blocks. Here…
obuolys
  • 11
1
vote
3 answers

Running php scripts via command line mode gives warnings

Whenever I run my php command line script, before the script actually outputs to the screen, php always returns a bunch of error messages as follows: PHP Warning: PHP Startup: Unable to load dynamic library…
Jeffrey04
  • 565
0
votes
1 answer

Change the mysql.sock that the system PHP uses

In the past I had installed MySQL as part of XAMPP in /Applications/XAMPP/ and the PHP that the system used (e.g. from command line) used /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock to connect with MySQL. Now I have installed MySQL 5 with…
Mark P.
  • 41
  • 2
0
votes
0 answers

php configuration is different with symlink

php configuration doesn't have the same timezone when i use symlink! xxxx:/usr/bin $ php -i | grep timezone …
Harold
  • 101
-1
votes
1 answer

How should I detect whether the network connection (VPN) has unexpectedly died from PHP CLI?

Situation: I have a perpetual PHP CLI script running whenever my computer is powered on. Every minute, it launches a bunch of sub-processes which each do some work in parallel. (I do it like this because if I just run the routines one by one in the…
greg03
  • 1