Wampserver gibin not a valid Win32 application with php 5.4












0















I replaced my 2.1 version of WampServer with the 3.1.4 64 bit version. Everything worked after the installation. But I need to have php 5.4 and that doesn't come with this version of WS. So I downloaded that version, made the changes to the various files as mentioned here and other places. But when I switch to 5.4 it doesn't start.



I ran the "Check State of Services" tool and it said this




State of services:



The service 'wampapache64' is NOT started EXIT error code:1066 Help
message for error code 1066 is: The service has returned a
service-specific error code.



The service 'wampmysqld64' is started



The service 'wampmariadb64' is started



The service 'dnscache' is started



WampServer (Apache, PHP and MySQL) will not function properly if any
service 'wampapache64' 'wampmysqld64' 'wampmariadb64' 'dnscache' is
not started.




And the "Check http.conf" tool said




httpd.exe: Syntax error on line 195 of
C:/wamp64/bin/apache/apache2.4.35/conf/ht tpd.conf: Cannot load
c:/wamp64/bin/php/php-5.4.9/php5apache2_4.dll into server: %1 is not
a valid Win32 application.




And line 195 of that file is




LoadModule php5_module
"${INSTALL_DIR}/bin/php/php-5.4.9/php5apache2_4.dll"




Is it failing because the dll file is for the wrong version or do to something else? I've tried to locate a php5apache2_4.dll file for 32 bit but I couldn't find one.



I've spent most of the weekend on this and if I can't get it going I will need to go back to my previous version since I work on more sites using 5.4 than later versions. I hope I don't have to do that.










share|improve this question



























    0















    I replaced my 2.1 version of WampServer with the 3.1.4 64 bit version. Everything worked after the installation. But I need to have php 5.4 and that doesn't come with this version of WS. So I downloaded that version, made the changes to the various files as mentioned here and other places. But when I switch to 5.4 it doesn't start.



    I ran the "Check State of Services" tool and it said this




    State of services:



    The service 'wampapache64' is NOT started EXIT error code:1066 Help
    message for error code 1066 is: The service has returned a
    service-specific error code.



    The service 'wampmysqld64' is started



    The service 'wampmariadb64' is started



    The service 'dnscache' is started



    WampServer (Apache, PHP and MySQL) will not function properly if any
    service 'wampapache64' 'wampmysqld64' 'wampmariadb64' 'dnscache' is
    not started.




    And the "Check http.conf" tool said




    httpd.exe: Syntax error on line 195 of
    C:/wamp64/bin/apache/apache2.4.35/conf/ht tpd.conf: Cannot load
    c:/wamp64/bin/php/php-5.4.9/php5apache2_4.dll into server: %1 is not
    a valid Win32 application.




    And line 195 of that file is




    LoadModule php5_module
    "${INSTALL_DIR}/bin/php/php-5.4.9/php5apache2_4.dll"




    Is it failing because the dll file is for the wrong version or do to something else? I've tried to locate a php5apache2_4.dll file for 32 bit but I couldn't find one.



    I've spent most of the weekend on this and if I can't get it going I will need to go back to my previous version since I work on more sites using 5.4 than later versions. I hope I don't have to do that.










    share|improve this question

























      0












      0








      0








      I replaced my 2.1 version of WampServer with the 3.1.4 64 bit version. Everything worked after the installation. But I need to have php 5.4 and that doesn't come with this version of WS. So I downloaded that version, made the changes to the various files as mentioned here and other places. But when I switch to 5.4 it doesn't start.



      I ran the "Check State of Services" tool and it said this




      State of services:



      The service 'wampapache64' is NOT started EXIT error code:1066 Help
      message for error code 1066 is: The service has returned a
      service-specific error code.



      The service 'wampmysqld64' is started



      The service 'wampmariadb64' is started



      The service 'dnscache' is started



      WampServer (Apache, PHP and MySQL) will not function properly if any
      service 'wampapache64' 'wampmysqld64' 'wampmariadb64' 'dnscache' is
      not started.




      And the "Check http.conf" tool said




      httpd.exe: Syntax error on line 195 of
      C:/wamp64/bin/apache/apache2.4.35/conf/ht tpd.conf: Cannot load
      c:/wamp64/bin/php/php-5.4.9/php5apache2_4.dll into server: %1 is not
      a valid Win32 application.




      And line 195 of that file is




      LoadModule php5_module
      "${INSTALL_DIR}/bin/php/php-5.4.9/php5apache2_4.dll"




      Is it failing because the dll file is for the wrong version or do to something else? I've tried to locate a php5apache2_4.dll file for 32 bit but I couldn't find one.



      I've spent most of the weekend on this and if I can't get it going I will need to go back to my previous version since I work on more sites using 5.4 than later versions. I hope I don't have to do that.










      share|improve this question














      I replaced my 2.1 version of WampServer with the 3.1.4 64 bit version. Everything worked after the installation. But I need to have php 5.4 and that doesn't come with this version of WS. So I downloaded that version, made the changes to the various files as mentioned here and other places. But when I switch to 5.4 it doesn't start.



      I ran the "Check State of Services" tool and it said this




      State of services:



      The service 'wampapache64' is NOT started EXIT error code:1066 Help
      message for error code 1066 is: The service has returned a
      service-specific error code.



      The service 'wampmysqld64' is started



      The service 'wampmariadb64' is started



      The service 'dnscache' is started



      WampServer (Apache, PHP and MySQL) will not function properly if any
      service 'wampapache64' 'wampmysqld64' 'wampmariadb64' 'dnscache' is
      not started.




      And the "Check http.conf" tool said




      httpd.exe: Syntax error on line 195 of
      C:/wamp64/bin/apache/apache2.4.35/conf/ht tpd.conf: Cannot load
      c:/wamp64/bin/php/php-5.4.9/php5apache2_4.dll into server: %1 is not
      a valid Win32 application.




      And line 195 of that file is




      LoadModule php5_module
      "${INSTALL_DIR}/bin/php/php-5.4.9/php5apache2_4.dll"




      Is it failing because the dll file is for the wrong version or do to something else? I've tried to locate a php5apache2_4.dll file for 32 bit but I couldn't find one.



      I've spent most of the weekend on this and if I can't get it going I will need to go back to my previous version since I work on more sites using 5.4 than later versions. I hope I don't have to do that.







      php wampserver






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 25 '18 at 18:08









      user3052443user3052443

      224211




      224211
























          1 Answer
          1






          active

          oldest

          votes


















          1














          If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.



          I suggest you remove the manually installed version of PHP and use the provided downloads.



          They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo



          It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.



          You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.



          But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.



          EDIT: In answer to your comment



          If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.



          The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45



          Then using the wampmanager menu, switch to PHP5.4.45.



          The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.



          enter image description here



          It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer






          share|improve this answer


























          • Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

            – user3052443
            Nov 26 '18 at 18:08











          • I did some checking, see my edit

            – RiggsFolly
            Nov 27 '18 at 9:23











          • Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

            – user3052443
            Dec 16 '18 at 19:19











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53470390%2fwampserver-gibin-not-a-valid-win32-application-with-php-5-4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.



          I suggest you remove the manually installed version of PHP and use the provided downloads.



          They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo



          It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.



          You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.



          But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.



          EDIT: In answer to your comment



          If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.



          The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45



          Then using the wampmanager menu, switch to PHP5.4.45.



          The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.



          enter image description here



          It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer






          share|improve this answer


























          • Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

            – user3052443
            Nov 26 '18 at 18:08











          • I did some checking, see my edit

            – RiggsFolly
            Nov 27 '18 at 9:23











          • Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

            – user3052443
            Dec 16 '18 at 19:19
















          1














          If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.



          I suggest you remove the manually installed version of PHP and use the provided downloads.



          They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo



          It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.



          You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.



          But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.



          EDIT: In answer to your comment



          If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.



          The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45



          Then using the wampmanager menu, switch to PHP5.4.45.



          The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.



          enter image description here



          It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer






          share|improve this answer


























          • Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

            – user3052443
            Nov 26 '18 at 18:08











          • I did some checking, see my edit

            – RiggsFolly
            Nov 27 '18 at 9:23











          • Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

            – user3052443
            Dec 16 '18 at 19:19














          1












          1








          1







          If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.



          I suggest you remove the manually installed version of PHP and use the provided downloads.



          They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo



          It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.



          You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.



          But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.



          EDIT: In answer to your comment



          If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.



          The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45



          Then using the wampmanager menu, switch to PHP5.4.45.



          The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.



          enter image description here



          It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer






          share|improve this answer















          If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.



          I suggest you remove the manually installed version of PHP and use the provided downloads.



          They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo



          It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.



          You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.



          But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.



          EDIT: In answer to your comment



          If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.



          The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45



          Then using the wampmanager menu, switch to PHP5.4.45.



          The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.



          enter image description here



          It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 27 '18 at 9:27

























          answered Nov 26 '18 at 14:46









          RiggsFollyRiggsFolly

          71.6k1867113




          71.6k1867113













          • Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

            – user3052443
            Nov 26 '18 at 18:08











          • I did some checking, see my edit

            – RiggsFolly
            Nov 27 '18 at 9:23











          • Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

            – user3052443
            Dec 16 '18 at 19:19



















          • Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

            – user3052443
            Nov 26 '18 at 18:08











          • I did some checking, see my edit

            – RiggsFolly
            Nov 27 '18 at 9:23











          • Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

            – user3052443
            Dec 16 '18 at 19:19

















          Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

          – user3052443
          Nov 26 '18 at 18:08





          Thank you for replying. I ran across the page you mentioned in my searches on this. The problem is that there isn't a package of php, mysql and apache for each version and I don't know which to use for each php version. For example, if I choose php 5.4 do I use mysql 5.5 or 5.6? And then there is the apache version to consider. There doesn't seem to be a way to tell which versions to use together. But I think you are right about using the 32 bit version. I will probably do an uninstall and try it again with that version.

          – user3052443
          Nov 26 '18 at 18:08













          I did some checking, see my edit

          – RiggsFolly
          Nov 27 '18 at 9:23





          I did some checking, see my edit

          – RiggsFolly
          Nov 27 '18 at 9:23













          Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

          – user3052443
          Dec 16 '18 at 19:19





          Thank you very much for your help. I was just now able to get back to this and got it going, based on what you posted. For any that see this thread, here are two suggestions: 1 - Use the 32 bit version. 2 - For pre-php 5.5 usage, you need to download an older version of phpmyadmin, if you want to use it.

          – user3052443
          Dec 16 '18 at 19:19




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53470390%2fwampserver-gibin-not-a-valid-win32-application-with-php-5-4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Costa Masnaga

          Fotorealismo

          Sidney Franklin