Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-07-2008, 04:46 PM   PM User | #1
batric
New Coder

 
Join Date: Oct 2008
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
batric is an unknown quantity at this point
XAMPP MYSQL and Apache problem

Hi to everyone

I downloaded and installed XAMPP from the internet in order to view some of the PHP sites on my local machine.

But there is a problem:
-during installation, the wizard asked me if I would like to install Apache and MySQL as services. I choosed both. The rest of the installation went ok, but when it started the xampp console error message appeared:
"Ports 80 or 443 (SSL) already in use! Installing Apache2-2 service failed!"
then
"Port 3306 already in use! Installing MySQL service failed!"

And when I open XAMPP control panel application and click start (MySQL) it says: "ERROR: MySql service not started [-1]

I managed to open the localhost and I created a sample file just to ensure everything is ok, but when I tried to open a website with MySQL database, again error text appeared:
"Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'mysql2.namesco.net' (10060) in DISK:\www\htdocs\xampp\sitename\dbc.php on line 8
I cannot connect to the database because: Can't connect to MySQL server on 'mysql2.namesco.net' (10060)"

Any ideas?

Thanks in any case

Batric
batric is offline   Reply With Quote
Old 12-07-2008, 10:24 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Don't know about the errors you received during an install, but according to you're PHP error, PHP is for certain installed.
Ports 80 and 443 are commonly used for web servers and SSL, so it sounds like you already have a webservice in use (if you're on windows xp PRO or above, you may have IIS running). You can use a PHPinfo page to check this:
PHP Code:
<?php
php_info
();
?>
It should tell you what you're server software is.

As for you're mysql problem, it looks like you can't connect to a remote host. You'll need to check with the remote host its possible that mysql needs specific port or socket information in order to connect. This will happen if they've chosen a different port than the default 3306. It is also possible that you're firewall is preventing you from the remote connection.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Old 12-25-2008, 09:22 AM   PM User | #3
Action_Bastrd
New to the CF scene

 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Action_Bastrd is an unknown quantity at this point
The problem is that Xampp doesn't install or uninstall the services correctly in Windows.

To correct it, uninstall Xampp- again.

Open your services panel by typing in 'services.msc' in the windows Run box ( windows symbol + R)

Double click the services to get the actual service name as its different than the shown display name. For Xampp 1.7 Apache 2.2 is Apache2.2, Xampp Controler is XAMPP, and MySQL is mysql. You may have a different version of Xampp so I included all the steps.

Now open a CMD box. ( windows symbol + R then type CMD.)
Type in "sc delete <service name>" for all 3 services. Reboot. Now you can install Xampp again without any problems.
Action_Bastrd is offline   Reply With Quote
Old 01-11-2009, 11:21 PM   PM User | #4
quaidbrown
New to the CF scene

 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
quaidbrown is an unknown quantity at this point
Thank you Action_Bastrd. That did the trick.
quaidbrown is offline   Reply With Quote
Old 03-04-2009, 07:51 PM   PM User | #5
jehanzaib
New to the CF scene

 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jehanzaib is an unknown quantity at this point
Thankyou brother

I was having the same problem and your solution worked thanks again
jehanzaib is offline   Reply With Quote
Old 04-16-2009, 04:11 PM   PM User | #6
FeralReason
New to the CF scene

 
Join Date: Apr 2009
Location: Chicagoland
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
FeralReason is an unknown quantity at this point
Cool XAMPP MySQL (Windows) Won't Start

Totally new to XAMPP (installed yesterday on my laptop) & finally worked through getting all the ports open in the McAfee firewall. Everything seems to be running except that now MySQL won't start.

I'm not running services (because I am not sure what they provide.)

Any help would be greatly appreciated !
FeralReason is offline   Reply With Quote
Old 05-18-2012, 09:37 AM   PM User | #7
sethumathi
New to the CF scene

 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sethumathi is an unknown quantity at this point
apache,mysql not started

I am trying to install testlink 1.8.5.
In xammp control panel application apache and mysql is running...
but in services its not showing the both service .
what could be the problem.
Please suggest me any solutions

apache problem:
Installing Apache2.2 as an Service
The system cannot find the path specified.
Now we Start Apache2.2
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Press any key to continue . . .



MySQL problem:
Installing MySQL as an Service
The system cannot find the path specified.
The system cannot find the path specified.
Try to start the MySQL deamon as service ...
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Press any key to continue . . .




PLEASE ANY COULD HELP ME.
sethumathi is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:23 AM.


Advertisement
Log in to turn off these ads.