Php can not start ошибка

I ran the following command:

/usr/local/php/sbin/php-fpm start

but the output is:

Usage: php-fpm [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix> ] [-c <file>] [-d foo[=bar]] [-y <file>]
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -h               This help
  -i               PHP information
  -m               Show compiled in modules
  -v               Version number
  -p, --prefix <dir>
                   Specify alternative prefix path to FastCGI process manager (default: /usr/local/webserver/php).
  -y, --fpm-config <file>
                   Specify alternative path to FastCGI process manager config file.
  -t, --test       Test FPM configuration and exit

Is there anyone who has knowledge about this problem? Any advice appreciated!

Updated:

OS : CentOS 5.6
PHP: 5.3.6

I tried /usr/local/php/sbin/php-fpm and it works! Why?

I installed PHP with its source code.

Community's user avatar

asked Aug 13, 2011 at 10:04

Foredoomed's user avatar

10

The problem you have is with the command you called:

/usr/local/php/sbin/php-fpm start

The start part of it is not part of it’s switches/parameters, so php-fpm gives you the usage information so you can actually look for what you tried to do, to correct your command call.

What do you wanted to do?

Are you looking how to configure your webserver to use the PHP-FPM implementation instead of FASTCGI?

answered Aug 13, 2011 at 10:28

hakre's user avatar

hakrehakre

1561 silver badge13 bronze badges

17

I’m going to attempt to answer the question based on a small (but major) assumption and not commment first because it may get lost in the bickering going on in comments.

It appears as though Foredoomed may be on FreeBSD, and has installed from ports. The question is lacking this useful information. On FreeBSD, there is no init.d and ports installed using /usr/local which is a major clue based on what I’ve seen so far.

So with that said, try this:

Edit /etc/rc.conf as root and add php_fpm_enable=”YES” to it, then save and close.

When you’re ready to run php-fpm again, you start it using the rc.d scripts. As it’s an installed program, it is not in /etc/rc.d, but in /usr/local/etc/rc.d:

Run the following: /usr/local/etc/rc.d/php-fpm start

answered Aug 13, 2011 at 13:18

sandroid's user avatar

sandroidsandroid

1,72412 silver badges16 bronze badges

I have a weird problem. The sites on the server are running fine, but when I type «php» in the command line it says «Could not startup.». Obviously «php -v» doesn’t show anything either.

Your help will be much appreciated, thanks!

PS: What’s the difference between the apache2 php.ini file and the cli php.ini?

EDIT: Thank you very much for helping me diagnose the problem everyone! There was one line in the php.ini file memory_limit = 32 and didn’t have the unit specified so I changed it like so memory_limit = 32M and it fixed it for me.

Thanks!

asked May 31, 2014 at 8:54

Galanx's user avatar

GalanxGalanx

1391 silver badge12 bronze badges

8

apache2 php.ini is the php configuration loaded when you execute php program via webbrowser.

The cli php.ini is the php configuration loaded when you execute php program via console.

You can do further troubleshooting by enabling php error logging

1)Edit cli php.ini

display_errors = Off
log_errors = On
error_log = /var/log/php-errors.log

2) save & restart php handler or Apache

3) tail -f /var/log/php-errors.log

4) Take new tab & execute php command

You can see exact errors in previous tab where you are taling the log.

answered May 31, 2014 at 9:00

Harikrishnan's user avatar

HarikrishnanHarikrishnan

9,60210 gold badges84 silver badges127 bronze badges

2

«программа не может начинаться, потому что php5.dll отсутствует на вашем компьютере»

устанавливает zend studio ce альтернативу или я могу заставить ее работать с XAMPP? (с использованием работ Zend Studio CE)

если ваша версия php является Non-Thread-Safe (nts), вы должны использовать расширение php с примером формата: extension = php_cl_dbg_5_2_ nts .dll else, если ваша версия php является Thread-Safe (ts), вы должны использовать расширение php с примером формата: расширение = php_cl_dbg_5_2_ ts .dll (заметьте выделенные жирным шрифтом слова)

Так что если ошибка, как указано выше. Во-первых, проверьте, что ваша версия PHP – это nts или ts, если это nts .
Затем проверьте в php.ini, есть ли какая-либо строка, например zend_extension_ ts = «C: xammp php ext php_dbg.dll-5.2.x», выберите правую версию php_dbg.dll-5.2.x с ее домашней страницы (google для нее ). Перейдите из zend_extension_ ts в zend_extension_ nts.

Надеюсь, эта помощь.

Загрузите php5.dll ( http://windows.php.net/download/ ) и скопируйте его в папку apache / bin. Это разрешило это для меня (Win 7 64-разрядный apache 32 бит)

EDIT: Начните с версии, отличной от потоковой.

Для пользователей Wamp x86 + Phalcon (с той же ошибкой) :

Позаботьтесь о загрузке правильной версии Phalcon:

Phalcon 1.3.2 – Windows x86 для PHP 5.5.0 ( VC11 )

У меня была та же проблема, с которой я переключился с wamp на xampp, и да, PHP работал, потому что мой путь все еще указывал на мою старую установку. Я забыл изменить его, чтобы указать на мою новую установку php, какая версия php совсем не соответствует остальным.

В случае, если это может помочь кому-то, после установки потоковой безопасной версии PHP 5.5.1, все работало под apache для моих сайтов-разработчиков, но я столкнулся с той же проблемой «php5.dll отсутствует» при установке Composer с помощью Composer-Setup .exe – или, как я вскоре обнаружил, просто запускал что-то такое же простое, как php -v из командной строки. Я сделал копию php5ts.dll и назвал ее php5.dll, и все сработало. Я предполагаю, что установщик Composer специально искал «php5.dll», и я знал, что безопасный код потока будет запущен переименованной .dll. Я также предполагаю, что что-то не так с моей настройкой, чтобы испортить функциональность командной строки, но со всем, что работает, у меня есть более важные проблемы для решения проблемы, чем для поиска и поиска проблемы.

Я просто столкнулся с этой проблемой при попытке перезапустить XAMPP Apache.

Что вы можете сделать, чтобы решить эту проблему:

  1. загрузить PHP5.dll из http://originaldll.com/file/php5.dll/30704.html
  2. Скопируйте загруженный php5.dll в C: xampp php
  3. Начать APACHE и MySql с панели управления XAMPP

Надеюсь, мое решение решает вашу проблему.

Спасибо!

Мне нужно было изменить переменные среды PATH и PHPRC . Также откройте новый cmd .

Я уже установил PHP и добавил EasyPHP, когда проблема возникла. После того, как я сменил обе переменные на C:Program Files (x86)EasyPHP-DevServer-14.1VC9binariesphpphp_runningversion он работал нормально.

Когда вы открываете phpinfo (), смотрите, разрешена или не включена безопасность потока, см. Также версию php и см. MSVC. Каков номер вместо – и посмотрите на архитектуру, все это поможет вам получить подходящий php Водитель

здесь url поможет u получить php-драйвер https://s3.amazonaws.com/drivers.mongodb.org/php/index.html

YunoHost Forum

Loading

I installed WordPress, php7.0 and apache2. I also installed the php7.0 module for apache and it is enabled.

I can create a php file (named phpinfo.php) with content <?php phpinfo(); ?>, and can see the correct output when I open http://localhost/phpinfo.php.

My problem is when I try to open http://localhost/blog/wp-admin/install.php, it says:

**ERROR: PHP is not running**

and shows the whole installation page without the interpreted php.

Does somebody know what the cause of that is, or even better, how I can fix it?

Понравилась статья? Поделить с друзьями:
  • Perfect world mobile ошибка аккаунта
  • Perfect world mobile ошибка 155771
  • Perco ошибка обновления лицензии лицензионный контроллер не включен
  • Perco s20 ошибка отсутствует конфигурация считывателя иу
  • People playground ошибка при запуске