nanobox-io/nanobox-engine-php

/data/var/log/apache/error.log <== httpd (pid 135) already running

k1462015 opened this issue ยท 6 comments

  • This is fairly regular issue now
  • I have to run nanobox stop multiple times (not just once), and then keep running nanobox run php-server

Bump. I have this problem as well.

(I also have this problem)

Same here.

In my case this was due to an unclean shutdown of apache... For me the quickest fix is nanobox running into the box and running php-server from inside the machine, which gives the following output and then successfully runs the server:

==> /data/var/log/apache/error.log <==
[core:warn] [pid 204:tid 139764049921920] AH00098: pid file /data/var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[mpm_worker:notice] [pid 204:tid 139764049921920] AH00292: Apache/2.4.33 (Unix) configured -- resuming normal operations
[core:notice] [pid 204:tid 139764049921920] AH00094: Command line: '/data/sbin/httpd -D NO_DETACH -c DocumentRoot /app/public -C ProxyPassMatch "^/(.\.php(/.)?)$" "unix:/data/var/tmp/php.sock|fcgi://localhost/app/public"'

I resolved with nanobox build

I ended up switching to nginx and haven't experienced any issues. I couldn't get nginx working with the options Nanobox exposes so I did need to use a custom nginx.conf file