N
N
Nikita Galkin2011-12-25 04:28:14
PHP
Nikita Galkin, 2011-12-25 04:28:14

PHP does not work in CLI mode. How to determine the cause?

Installed php as apache module. Everything works great.
But if I try to use php in CLI mode, it doesn't start. It just crashes on startup.
OS: Windows 7 (32-bit)
PHP version: 5.2.17 VC6 x86 Thread Safe
Option to turn off extensions - tried it. Does not help.
UPD. The reason was that the process was running as a normal user, not an administrator. The system soaked him right there, without notifying anything.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
N
Next_Alex, 2011-12-25
@Next_Alex

does he silently take off?
And what exactly is meant by "takes off"?

B
bolnikh, 2011-12-25
@bolnikh

Agree with Alex. php -v should say something. If this is a “segmentation fault”, then some extension is not working.

A
Andrey Matsovkin, 2011-12-25
@macik_spb

Did you install PHP from scratch? Or from some assembly?
Just in case, you can put .ini:
display_startup_errors = On
log_errors = On
error_log = php_errors.log
suddenly write something to the log.

N
Nikita Galkin, 2011-12-25
@galk_in

On another operating system, it runs smoothly. On this stupidly the exe file falls out, php.ini does not even have time to be read. Moreover, this is the version of PHP

N
Next_Alex, 2011-12-26
@Next_Alex

If a person needs help, he tries to give the helpers as much information about the problem as possible.
If a person does not need help, he solves the problem on his own, without involving anyone in this process.
If telepaths act as assistants, then combinations are possible.
Attention, question!
Nikita, do you need help or are you able to solve the problem yourself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question