Apache not working in Local 5.5.2

Just installed Local 5.5.2, and when I create a new site on Apache or switch existing to Apache when I open the website in browser, there is only a message:

No input file specified.

Hey @dev4press ā€“

This is a known issue with Apache and PHP 5.6:

Known issue: Apache and PHP 5.6 will result in the site showing ā€œNo input file specified.ā€ While this limitation may be frustrating, we did not want to hold up the release. In the meantime, you can continue to use PHP 5.6 with NGINX. We hope to have a fix for this soon!

Can you try using a different version of PHP, or switching to NGINX?

It doesnā€™t work with any PHP. Always the same message. And I donā€™t use PHP 5.6 anyway, all my sites use PHP 7 with Lightning

Milan

Thatā€™s interesting @dev4press ā€“

Can you please provide your Local Log? See this Community Forum post for instructions on how to do so:

Similar issue here Uh-oh Unable to swap services. Windows 10

During the initial setup, I go with prefered setting for creating site and during the Web server Swap it throws error and hangs up.

Similarly if we multi-select site and choose restart immediately after starting them, then there also exist mysql related issue which might also be related to this issue MYSQLD error

Hey @shivapoudel ā€“

Are you experiencing the same issue? Can you provide your Local log for us to review?

If you are able, can you also provide a screencast to show the behavior you are experiencing?

Also got ā€œno input file specifiedā€ error on PHP 7.3, Windows 10, and multisite subdirectory installation

The error code is a loop of this:

{"thread":"main","level":"error","stack":"TypeError: Cannot read property 'pid' of undefined\n    at exports.default.closeListener (%%appPath%%\\main\\sites\\processes\\Process.js:1:1693)\n    at ChildProcess.<anonymous> (%%appPath%%\\main\\sites\\processes\\Process.js:1:1978)\n    at ChildProcess.emit (events.js:208:15)\n    at ChildProcess.cp.emit (%%appPath%%\\node_modules\\cross-spawn-with-kill\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)","message":"Cannot read property 'pid' of undefined","timestamp":"2020-06-04T09:14:11.178Z"}
{"thread":"main","level":"error","stack":"TypeError: Cannot read property 'pid' of undefined\n    at exports.default.closeListener (%%appPath%%\\main\\sites\\processes\\Process.js:1:1693)\n    at ChildProcess.<anonymous> (%%appPath%%\\main\\sites\\processes\\Process.js:1:1978)\n    at ChildProcess.emit (events.js:208:15)\n    at ChildProcess.cp.emit (%%appPath%%\\node_modules\\cross-spawn-with-kill\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)","message":"Cannot read property 'pid' of undefined","timestamp":"2020-06-04T09:14:11.192Z"}
{"thread":"main","level":"error","stack":"TypeError: Cannot read property 'pid' of undefined\n    at exports.default.closeListener (%%appPath%%\\main\\sites\\processes\\Process.js:1:1693)\n    at ChildProcess.<anonymous> (%%appPath%%\\main\\sites\\processes\\Process.js:1:1978)\n    at ChildProcess.emit (events.js:208:15)\n    at ChildProcess.cp.emit (%%appPath%%\\node_modules\\cross-spawn-with-kill\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)","message":"Cannot read property 'pid' of undefined","timestamp":"2020-06-04T09:14:11.235Z"}
{"thread":"main","level":"error","stack":"TypeError: Cannot read property 'pid' of undefined\n    at exports.default.closeListener (%%appPath%%\\main\\sites\\processes\\Process.js:1:1693)\n    at ChildProcess.<anonymous> (%%appPath%%\\main\\sites\\processes\\Process.js:1:1978)\n    at ChildProcess.emit (events.js:208:15)\n    at ChildProcess.cp.emit (%%appPath%%\\node_modules\\cross-spawn-with-kill\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)","message":"Cannot read property 'pid' of undefined","timestamp":"2020-06-04T09:14:11.242Z"}
{"thread":"main","level":"error","stack":"TypeError: Cannot read property 'pid' of undefined\n    at exports.default.closeListener (%%appPath%%\\main\\sites\\processes\\Process.js:1:1693)\n    at ChildProcess.<anonymous> (%%appPath%%\\main\\sites\\processes\\Process.js:1:1978)\n    at ChildProcess.emit (events.js:208:15)\n    at ChildProcess.cp.emit (%%appPath%%\\node_modules\\cross-spawn-with-kill\\node_modules\\cross-spawn\\lib\\enoent.js:40:29)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)","message":"Cannot read property 'pid' of undefined","timestamp":"2020-06-04T09:14:11.258Z"}
{"thread":"main","class":"","message":"Compiling service configs...","level":"info","timestamp":"2020-06-04T09:14:13.175Z"}
{"thread":"main","class":"Process","process":"nginx","pid":13744,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:14:13.481Z"}
{"thread":"main","class":"Process","process":"httpd","level":"warn","message":"AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::e5cd:b36d:ca:1f42. Set the 'ServerName' directive globally to suppress this message","timestamp":"2020-06-04T09:14:14.958Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:14:13.418749Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+3\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 10256","timestamp":"2020-06-04T09:14:16.601Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:14:13.420490Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2020-06-04T09:14:16.601Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:14:15.481398Z 0 [System] [MY-010229] [Server] Starting crash recovery...","timestamp":"2020-06-04T09:14:16.602Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:14:15.493238Z 0 [System] [MY-010232] [Server] Crash recovery finished.","timestamp":"2020-06-04T09:14:16.602Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:14:16.545052Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2020-06-04T09:14:16.602Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:14:16.602311Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+3\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10029  MySQL Community Server - GPL.","timestamp":"2020-06-04T09:14:16.603Z"}
{"thread":"main","class":"Process","process":"httpd","pid":15672,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:16:36.832Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":15164,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:16:36.853Z"}
{"thread":"main","class":"Process","process":"mysql","pid":7120,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:16:36.873Z"}
{"thread":"main","class":"Process","process":"phpCgi","pid":10204,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:16:36.897Z"}
{"thread":"main","class":"Process","process":"phpCgi","pid":4044,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:16:36.922Z"}
{"thread":"main","class":"","message":"Compiling service configs...","level":"info","timestamp":"2020-06-04T09:16:37.349Z"}
{"thread":"main","class":"Process","process":"nginx","pid":15588,"level":"info","message":"Killing process","timestamp":"2020-06-04T09:16:37.714Z"}
{"thread":"main","class":"Process","process":"httpd","level":"warn","message":"AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::e5cd:b36d:ca:1f42. Set the 'ServerName' directive globally to suppress this message","timestamp":"2020-06-04T09:16:39.339Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:16:37.609987Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+3\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 13240","timestamp":"2020-06-04T09:16:41.532Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:16:37.611978Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2020-06-04T09:16:41.533Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:16:40.364277Z 0 [System] [MY-010229] [Server] Starting crash recovery...","timestamp":"2020-06-04T09:16:41.533Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:16:40.376839Z 0 [System] [MY-010232] [Server] Crash recovery finished.","timestamp":"2020-06-04T09:16:41.533Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:16:41.480774Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2020-06-04T09:16:41.534Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-04T09:16:41.534169Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+3\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10029  MySQL Community Server - GPL.","timestamp":"2020-06-04T09:16:41.534Z"}

This is the screencast for the issue ā€œNo input file specifiedā€ while swapping the webserver. See screencast here https://cldup.com/1gNvze7Ryi.webm

And this my fresh log while the apache server swaps.

{"thread":"main","class":"","message":"Creating site folders...","level":"info","timestamp":"2020-06-05T09:48:59.481Z"}
{"thread":"main","class":"","message":"Copying service config templates...","level":"info","timestamp":"2020-06-05T09:48:59.491Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":16120,"level":"info","message":"Killing process","timestamp":"2020-06-05T09:48:59.525Z"}
{"thread":"main","class":"Process","process":"mysql","pid":11956,"level":"info","message":"Killing process","timestamp":"2020-06-05T09:48:59.533Z"}
{"thread":"main","class":"Process","process":"phpCgi","pid":12404,"level":"info","message":"Killing process","timestamp":"2020-06-05T09:48:59.543Z"}
{"thread":"main","class":"Process","process":"phpCgi","pid":9528,"level":"info","message":"Killing process","timestamp":"2020-06-05T09:48:59.556Z"}
{"thread":"main","class":"Process","process":"nginx","pid":5860,"level":"info","message":"Killing process","timestamp":"2020-06-05T09:48:59.568Z"}
{"thread":"main","class":"","message":"Compiling service configs...","level":"info","timestamp":"2020-06-05T09:48:59.875Z"}
{"thread":"main","class":"","message":"Compiling service configs...","level":"info","timestamp":"2020-06-05T09:48:59.994Z"}
{"thread":"main","class":"Process","process":"nginx","pid":11348,"level":"info","message":"Killing process","timestamp":"2020-06-05T09:49:00.324Z"}
{"thread":"main","class":"WordPressInstaller","message":"Init WordPressInstaller","level":"info","timestamp":"2020-06-05T09:49:00.512Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-05T09:49:00.195005Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+3\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 12176","timestamp":"2020-06-05T09:49:02.650Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-05T09:49:00.196451Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2020-06-05T09:49:02.650Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-05T09:49:01.477123Z 0 [System] [MY-010229] [Server] Starting crash recovery...","timestamp":"2020-06-05T09:49:02.650Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-05T09:49:01.482345Z 0 [System] [MY-010232] [Server] Crash recovery finished.","timestamp":"2020-06-05T09:49:02.650Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-05T09:49:02.596436Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2020-06-05T09:49:02.651Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-06-05T09:49:02.650797Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+3\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10023  MySQL Community Server - GPL.","timestamp":"2020-06-05T09:49:02.652Z"}

Thats true, local still caries lot of bug in 5.5.3 for Windows 10 machine, my friend:

Iā€™m getting the same issue upon a fresh site creation using Apache and PHP 7.4.1 (and PHP 7.3.5) in Local v 5.5.3+3667. Windows 10

Screencast of setup failure for Apache and success for Nginx at https://www.youtube.com/watch?v=O2H6WIRi0Bc

Hey @shivapoudel and @tommcmanus ā€“

Thanks for your patience with all of this! This was a bug that should be fixed in the latest versions of Local:

Fixed issue for Windows users where PHP 5.6 + Apache as a webserver would result in a ā€˜no file specifiedā€™ error.

1 Like

Hello @ben.turner! So, Iā€™m using Local v5.6.3+4270 for Windows 10 and this error ā€œNo input file specifiedā€ persists, with any version of PHP or MySQL and using the Apache server.

Could you help me, please?

Version 5.6.8, still broken: new site with Apache and any PHP version.

Hey @dev4press ā€“ I wonder if thereā€™s an issue with the actual PHP/Apache services and you might need to re-download them. Weā€™ve seen a similar issue with users that where having issues with missing PHP configuration (in their case, missing PHP extensions).

Try the steps outlined in this forum post to re-download those services:

Let us know how that goes for you!

I installed Local on a machine that never had any Local installed, and same thing happens.

Hey @dev4press ā€“

You mention this is a machine that never had Local installed ā€“ can you describe the OS and OS versions of the things that arenā€™t working?

For example, is this happening only under Windows, or only under a certain version of Windows (7,10?)

Windows 10 Pro x64 (version 1909), with all the updates. Both my machines use the same OS and both fully updated. I have tried all possible scenarios; Apache doesnā€™t work: new site with Apache, new site with Nginx then switch to Apache (this can also kill the site in some cases - it canā€™t be started at all after switching to Apache, I reported this in a separate topic, still not fixed), no matter which PHP and MySQL I select.

Many other users reported this, yet, you seem unable to find the problem and fix it. Old Local 3.x was almost perfect; it only needed more regular updates for PHP and MySQL. Still, you stopped that in favor of Local 5.x, but from my perspective, that has been a disaster, and I am afraid to use it, or I can end up losing a lot of time when site breaks to restore it somewhere else. Most of my Local sites run under Local 3.x still without any issues (yes, it is limited to PHP 7.3, but better that then unstable Local 5), or under some other environment.

When PHP 8.0 is released, I will need to find some other dev environment that can be used without endless hassle Local 5.x is.

Hey @dev4press ā€“ Thanks for that feedback!

Iā€™m having trouble recreating this on my end. Since this seems like an apache thing, Iā€™m guessing that thereā€™s likely more info within the site logs. Can you provide a zip of the logs folder under the siteā€™s folder? You should see logs next to app.

Sorry, I have moved all my projects from Local. I am tired on having all the same issues, fighting with Local each day. Maybe when you make it stable enough to use it, I will try it again.

I switched to Laragon, and to my surprise, the page loading of the same website moved from Local 5 to Laragon, is much faster. On my machine, typical page load via Local was around 2 seconds, with Laragon, it is under 0.4 seconds.

Bye,
Milan