7 Replies - 396 Views - Last Post: 09 May 2019 - 11:39 AM

#1 Alhazred   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 208
  • Joined: 25-July 07

Apache doesn't start with PHP 7.2.17

Posted 08 May 2019 - 12:28 PM

On a local machine (Win 10) I have XAMPP installed.
To test an application with different PHP versions I have taken the php folder from the various XAMPP portable packages, then I place the appropriate folder into the intalled XAMPP and I restart Apache.
This works for any php version I need (7.0.31, 7.1.25, 7.2.14 and 7.3.4) except for the 7.2.17, with this version Apache doesn't start, the message is "Attempting to start Apache service...".

This shouldn't be a port issue because it happens only with that specific PHP version, the others work fine.
What could I try to check?

Is This A Good Question/Topic? 0
  • +

Replies To: Apache doesn't start with PHP 7.2.17

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 15108
  • View blog
  • Posts: 60,429
  • Joined: 12-June 08

Re: Apache doesn't start with PHP 7.2.17

Posted 08 May 2019 - 12:38 PM

You are super certain what ever installed version of 7.2.17 was done _exactly_ as the rest?

Personally I would start there and reinstall the instance and verify.
Was This Post Helpful? 0
  • +
  • -

#3 Alhazred   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 208
  • Joined: 25-July 07

Re: Apache doesn't start with PHP 7.2.17

Posted 08 May 2019 - 01:08 PM

I explain what I do.
- I have installed one version of XAMPP, the one with php 7.0.31
- I have downloaded the package of XAMPP with php 7.1.25, from this one, once unpacked, I have renamed the php folder in php_7.1.25 and copied into the installed XAMPP folder
- I repeated the previous step form XAMPP having php 7.2.14, the one having php 7.2.17 etc...
So, inside the XAMP folder I have several php folders, one named php, the others php_7.x.x
I rename the folder to have the one of the wanted version named php and the others with the version appended, then I restart Apache.

In this way I can easily change the php version in use.
All the versions work but the 7.2.17
I've also tried downloading different XAMPP packages (.7z, .zip) both for portable and the installable versions, none of them works.

This post has been edited by Alhazred: 08 May 2019 - 01:09 PM

Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2334
  • View blog
  • Posts: 7,110
  • Joined: 15-January 14

Re: Apache doesn't start with PHP 7.2.17

Posted 08 May 2019 - 01:23 PM

Quote

What could I try to check?

The Apache logs should tell you what the problem is. Usually. Hopefully.
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6794
  • View blog
  • Posts: 31,349
  • Joined: 10-May 07

Re: Apache doesn't start with PHP 7.2.17

Posted 08 May 2019 - 01:46 PM

Do you have Skype running? It sometimes will bind port 80 & this causes issues for Apache on Windows servers.

Also, I would remove the PHP line from the Apache configs & restart. If it still has an issue, then it eliminates PHP as the problem.
Was This Post Helpful? 0
  • +
  • -

#6 Alhazred   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 208
  • Joined: 25-July 07

Re: Apache doesn't start with PHP 7.2.17

Posted 09 May 2019 - 12:19 AM

View PostArtificialSoldier, on 08 May 2019 - 10:23 PM, said:

Quote

What could I try to check?

The Apache logs should tell you what the problem is. Usually. Hopefully.

Error log file doesn't say anything, I've deleted its content, restarted the server to reproduce the problem, but nothing is written inside the log file.

View Postno2pencil, on 08 May 2019 - 10:46 PM, said:

Do you have Skype running? It sometimes will bind port 80 & this causes issues for Apache on Windows servers.

Also, I would remove the PHP line from the Apache configs & restart. If it still has an issue, then it eliminates PHP as the problem.

Skype is not the problem, or no version would work, instead 7.0.31, 7.1.25, 7.2.14 and 7.3.4 are all working.
By the way I have tried to stop Skype with no positive result.

Which is the line to remove to prevent Apache to load the PHP modules? Inside the httpd.conf file I could't find or understand which one to comment out.
Was This Post Helpful? 0
  • +
  • -

#7 Alhazred   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 208
  • Joined: 25-July 07

Re: Apache doesn't start with PHP 7.2.17

Posted 09 May 2019 - 12:42 AM

I've figured out what to comment to disable php.
Into the file httpd-xampp.conf I have commented these lines

LoadFile "C:/xampp/php/php7ts.dll"
LoadFile "C:/xampp/php/libpq.dll"
LoadModule php7_module "C:/xampp/php/php7apache2_4.dll"

and Apache starts also with the php version 7.2.17
Checking the php folder, those files are present, but there should be any other kind of problem with them, what could be?

This post has been edited by Alhazred: 09 May 2019 - 12:43 AM

Was This Post Helpful? 0
  • +
  • -

#8 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2334
  • View blog
  • Posts: 7,110
  • Joined: 15-January 14

Re: Apache doesn't start with PHP 7.2.17

Posted 09 May 2019 - 11:39 AM

If you followed the exact same process as with the other versions but it's not working, it's hard to guess why. Maybe try to do the setup again with that version and see if it works.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1