Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Apache won't start after MySQL install.
New Posts  All Forums:Forum Nav:

Apache won't start after MySQL install.

post #1 of 3
Thread Starter 
Just installed MySQL, and now the Apache service won't start.

I have:
Code:
extension_dir="C:/PHP/ext"
extension=php_mysql.dll
set in the php.ini file.

Apache will only start after I comment out the "extension=php_mysql.dll" line.

What's wrong?

EDIT: Figured it out. The entry was duplicated; for some reason a bunch of extensions were enabled by default at the end of my PHP file. Every reference I've looked at said they'd be under "Dynamic Extensions" commented out by default.
Edited by dzalias - 1/12/11 at 12:03am
Rig
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 2500k MSI P67A-GD65 (B3) 760ti G.Skill Ripjaws 
Hard DriveCoolingOSMonitor
OCZ Vertex 2 Noctua NH D14 Windows 7 64bit Dell SP2309W 
MonitorMonitorKeyboardCase
Dell S2009W Dell S2009W CM Storm Quickfire XT NZXT Phantom Black 
Mouse
Razer Deathadder Chroma 
  hide details  
Reply
Rig
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 2500k MSI P67A-GD65 (B3) 760ti G.Skill Ripjaws 
Hard DriveCoolingOSMonitor
OCZ Vertex 2 Noctua NH D14 Windows 7 64bit Dell SP2309W 
MonitorMonitorKeyboardCase
Dell S2009W Dell S2009W CM Storm Quickfire XT NZXT Phantom Black 
Mouse
Razer Deathadder Chroma 
  hide details  
Reply
post #2 of 3
Quote:
Originally Posted by dzalias View Post
Just installed MySQL, and now the Apache service won't start.

I have:
Code:
extension_dir="C:/PHP/ext"
extension=php_mysql.dll
set in the php.ini file.

Apache will only start after I comment out the "extension=php_mysql.dll" line.

What's wrong?

EDIT: Figured it out. The entry was duplicated; for some reason a bunch of extensions were enabled by default at the end of my PHP file. Every reference I've looked at said they'd be under "Dynamic Extensions" commented out by default.
It is possible the install may have automatically enabled them for you.
post #3 of 3
Yes, I noticed that too when I was setting up PHP with MySQL. They have the actual directory extension commented out in favor of declarations at the bottom that include every possible extension. I don't understand the point of it actually, but maybe it's so that people don't have to manually edit the .ini file
Leviathan
(19 items)
 
  
CPUMotherboardGraphicsRAM
i7 930 @ 4.2 GHz - 200*21 @1.38V Asus Rampage II Extreme 2x 7970's Crossfired -- 1000 | 1425 (Sapphire r... 12GB Corsair XMS3 1600MHz | 7-8-7-20 1.65v 1T 
Hard DriveCoolingCoolingCooling
2x120 GB OCZ Agility 3 SSD RAID 0 + 1.5 TB Seag... EK Supreme HF copper block Feser X360 radiator Danger Den Laing DDC 12V / 18W pump 
CoolingCoolingOSOS
iandh multi-option reservoir 1/2" ID 3/4" OD tubing, G 1/2" compression fitt... Windows 7 x64 Professional Arch x64 with Awesome wm 
MonitorMonitorKeyboardPower
Asus VG248QE 1080p@144Hz Sceptre X24W6 1080p@60Hz Razer Tarantula 750W Xigmatek w/ 4 +12V DC Rails ~60A 
CaseMouseMouse Pad
Corsair Obsidian 800D Razer Mamba @ 600 DPI QcK+ Heavy 
  hide details  
Reply
Leviathan
(19 items)
 
  
CPUMotherboardGraphicsRAM
i7 930 @ 4.2 GHz - 200*21 @1.38V Asus Rampage II Extreme 2x 7970's Crossfired -- 1000 | 1425 (Sapphire r... 12GB Corsair XMS3 1600MHz | 7-8-7-20 1.65v 1T 
Hard DriveCoolingCoolingCooling
2x120 GB OCZ Agility 3 SSD RAID 0 + 1.5 TB Seag... EK Supreme HF copper block Feser X360 radiator Danger Den Laing DDC 12V / 18W pump 
CoolingCoolingOSOS
iandh multi-option reservoir 1/2" ID 3/4" OD tubing, G 1/2" compression fitt... Windows 7 x64 Professional Arch x64 with Awesome wm 
MonitorMonitorKeyboardPower
Asus VG248QE 1080p@144Hz Sceptre X24W6 1080p@60Hz Razer Tarantula 750W Xigmatek w/ 4 +12V DC Rails ~60A 
CaseMouseMouse Pad
Corsair Obsidian 800D Razer Mamba @ 600 DPI QcK+ Heavy 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Apache won't start after MySQL install.