#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    9
    Rep Power
    0

    Apache 2.4 and PHP 5.9 don't play together.


    I'm new here, so I apologize if this is the wrong forum to put this in.

    I'm having trouble getting PHP to run with my Apache installation.

    My OS is Windows 7 - 64-bit.
    I'm using the XAMPP control panel. v3.1.0.3.1.0
    My Apache is version 2.4
    PHP is ver. 5.9

    I added the following lines to my httpd.conf file:

    LoadModule php5_module "c:/xampp/php/php5apache2_4.dll"

    PHPIniDir "c:/xampp/php"

    AddType application/x-httpd-php .php


    Apache crashes with nothing in the error log file, and has the following message on the XAMPP control panel:

    7:55:33 PM [Apache] Status change detected: stopped
    7:55:33 PM [Apache] Error: Apache shutdown unexpectedly.
    7:55:33 PM [Apache] This may be due to a blocked port, missing dependencies,
    7:55:33 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    7:55:33 PM [Apache] Check the "/xampp/apache/logs/error.log" file
    7:55:33 PM [Apache] and the Windows Event Viewer for more clues

    One thing, if I comment out the line that points to the directory where the PHP INI file resides, Apache comes up fine, but PHP won't run.

    Anyone - any ideas??
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2009
    Location
    Hartford, WI
    Posts
    1,356
    Rep Power
    24
    Are you attempting to upgrade PHP? Or is PHP not running from the install of XAMPP?
    He who knows not that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    9
    Rep Power
    0
    PHP is not running from the original install.
  6. #4
  7. No Profile Picture
    Super Moderator
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2009
    Location
    Hartford, WI
    Posts
    1,356
    Rep Power
    24
    If you attempt to view a .php file before your edit, what happens? Does the page not show? Does it error in a way?
    He who knows not that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.
  8. #5
  9. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1016
    There's no such thing as "PHP 5.9".

    Get the current XAMPP installer from the official website and run that one.

    Comments on this post

    • Triple_Nothing agrees : I didn't even focus on the mentioned ver. *wink*
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    9
    Rep Power
    0
    Originally Posted by Triple_Nothing
    If you attempt to view a .php file before your edit, what happens? Does the page not show? Does it error in a way?
    That's correct. Any PHP code that I write does nothing. Just blank pages.
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    9
    Rep Power
    0
    [QUOTE=Jacques1]There's no such thing as "PHP 5.9".

    That's where I got the XAMPP from. In fact, I asked them about this problem, and they said they only support XAMPP, not Apache or PHP. As far as the version goes, that's what it says it is. Perhaps I got scammed. If that's not the latest version, what is, and where should I get it?
  14. #8
  15. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1016
    The current XAMPP version is 1.8.3 containing PHP 5.5.6.

    You get it from the link above: http://www.apachefriends.org/en/xampp-windows.html.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    9
    Rep Power
    0
    Originally Posted by Jacques1
    The current XAMPP version is 1.8.3 containing PHP 5.5.6.
    Thank-you Jacques, Now I'm sure I got snookered. The XAMPP that I have says 3.0.1.3.0.1.

    I think I will reinstall everything from that link you gave me. I know I went there originally, but I may have gotten directed to a bogus site.

    Thanx again. I'll let you know if it works.
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    9
    Rep Power
    0
    Hi Guys,

    I didn't change anything, except my browser, and it works. It seems to work fine in Internet Explorer, but not in Firefox. Which follows, as I have been having horrible luck with Firefox.

IMN logo majestic logo threadwatch logo seochat tools logo