Search found 6432 matches: mysql can't start

Searched query: +mysql +can't +start

Return to advanced search

Another MySQL Admin not working problem [Solved]

Hi,

I'm using XAMPP version 1.7.7 on a Windows XP sp3 machine. A couple of weeks ago I was having problems just getting PHP to run (my localhost was trashed). Installing the latest version of xampp seems to have resolved that problem. But I'm currently having trouble with MySQL and Mercury. This post is only about the MySQL problem. I mention the others just in case it matters.

I start everything manually manually from the xampp control panel (after I stop IIS and it's attendant processes). Apache is running fine and it appears that MySQL is also running fine, on port 3306. But when i click the Admin button for MySQL on the xampp control panel i get the same two error messages I've seen in other posts.

"MySQL said: #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) "
"Connection for controluser as defined in your configuration failed."

I have only one instance of MySQL (mysqld.exe) running.

In my.ini I have this: socket= "C:/xampp/mysql/mysql.sock". There is no msql.sock in c:/xampp/mysql.

phpinfo() shows that mysql.default_socket local and master values are set to "MySQL", as does mysqli.default_socket.

Every thing looks fine when I run a netstat, mysql is listening on port 3306, and everything also looks fine in XP's windows task manager.

Here's the stuff from config.inc.php

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';


Any help would be greatly appreciated

Thanks,

David Morris
by dlm84741
27. June 2012 20:27
 
Forum: XAMPP for Windows
Topic: Another MySQL Admin not working problem [Solved]
Replies: 2
Views: 3461

Re: all instalation is ok, but xammp not view in browser

Yesterday modify the settings (DocumentRoot) to force apache


Modified what settings?

Question, to install xampp, you must first install apache, mysql, etc..
or is not needed.


XAMMP/LAMPP is not a LAMP stack, it is a bash script + all the executables (programmes, libraries and configurations) needed to run Apache MySQL, PHP, Perl, ProFTPd, and webalizer. You should not need anything that does not come inside the /lampp folder on a standard Linux installation.


In my Centos i have iptables is it down.

Do you mean that iptables is 'disabled' at this time?

Did you look in the access_log as I suggested? /opt/lampp/logs/access_log

The first column is the requesting IP. In this case, since its a test VM, all the requests have come from 127.0.0.1 (a browser on the VM) but in your case there should be requests from the IP of the other machines:

Code: Select all
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET /xampp/ HTTP/1.1" 302 -
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET /xampp/splash.php HTTP/1.1" 200 1321
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET /xampp/xampp.css HTTP/1.1" 200 3991
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET /xampp/img/xampp-logo.jpg HTTP/1.1" 200 19738
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 200 43
127.0.0.1 - - [08/May/2012:17:23:59 -0400] "GET /favicon.ico HTTP/1.1" 200 30894
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/lang.php?en HTTP/1.1" 302 -
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/index.php HTTP/1.1" 200 588
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/img/head-for.gif HTTP/1.1" 200 791
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/start.php HTTP/1.1" 200 786
127.0.0.1 - - [08/May/2012:17:24:06 -0400] "GET /xampp/img/xampp-logo-new.gif HTTP/1.1" 200 4878
127.0.0.1 - - [08/May/2012:17:24:07 -0400] "GET /xampp/img/head-linux.gif HTTP/1.1" 200 1002
127.0.0.1 - - [08/May/2012:17:24:07 -0400] "GET /xampp/xampp.js HTTP/1.1" 200 463
127.0.0.1 - - [08/May/2012:17:24:07 -0400] "GET /xampp/img/apachefriends.gif HTTP/1.1" 200 979
127.0.0.1 - - [08/May/2012:17:24:07 -0400] "GET /xampp/img/strichel.gif HTTP/1.1" 200 61
127.0.0.1 - - [08/May/2012:17:24:12 -0400] "GET /xampp/iart.php HTTP/1.1" 200 823
127.0.0.1 - - [08/May/2012:17:24:12 -0400] "GET /xampp/iart.php?img=1&text=ceci+n+est+pas+un+ami+d+apache HTTP/1.1" 200 10611
127.0.0.1 - - [08/May/2012:17:24:23 -0400] "GET /xampp/guestbook-en.pl HTTP/1.1" 200 1645
127.0.0.1 - - [08/May/2012:17:24:24 -0400] "GET /xampp/xampp.css HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2012:17:24:24 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2012:17:24:29 -0400] "GET /xampp/biorhythm.php HTTP/1.1" 200 692
127.0.0.1 - - [08/May/2012:17:24:42 -0400] "GET /xampp/biorhythm.php?birthdate=09%2F20%2F1948&showpng=1 HTTP/1.1" 200 432
127.0.0.1 - - [08/May/2012:17:24:42 -0400] "GET /xampp/biorhythm.php?birthdate=09%2F20%2F1948 HTTP/1.1" 200 9851
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/php.php HTTP/1.0" 200 2
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/mysql.php HTTP/1.0" 200 2
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/cgi.cgi HTTP/1.0" 200 3
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/ssi.shtml HTTP/1.0" 200 4
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/perl.pl HTTP/1.0" 200 2
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/status.php HTTP/1.1" 200 3870
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/xampp.css HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2012:17:25:21 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2012:17:25:22 -0400] "GET /xampp/img/strichel.gif HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2012:17:25:30 -0400] "GET /xampp/manuals.php HTTP/1.1" 200 1353
127.0.0.1 - - [08/May/2012:17:25:43 -0400] "GET /xampp/components.php HTTP/1.1" 200 2118
127.0.0.1 - - [08/May/2012:17:25:49 -0400] "GET /xampp/cds.php HTTP/1.1" 200 2728
127.0.0.1 - - [08/May/2012:17:25:49 -0400] "GET /xampp/xampp.css HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2012:17:25:49 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:13:09:31 -0400] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/ HTTP/1.1" 200 588
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/start.php HTTP/1.1" 200 786
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/xampp.css HTTP/1.1" 200 3991
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 200 43
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/img/xampp-logo-new.gif HTTP/1.1" 200 4878
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/img/head-for.gif HTTP/1.1" 200 791
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/img/head-linux.gif HTTP/1.1" 200 1002
127.0.0.1 - - [16/May/2012:13:09:32 -0400] "GET /xampp/xampp.js HTTP/1.1" 200 463
127.0.0.1 - - [16/May/2012:13:09:33 -0400] "GET /xampp/img/strichel.gif HTTP/1.1" 200 61
127.0.0.1 - - [16/May/2012:13:09:33 -0400] "GET /xampp/img/apachefriends.gif HTTP/1.1" 200 979
127.0.0.1 - - [16/May/2012:13:09:33 -0400] "GET /favicon.ico HTTP/1.1" 200 30894
127.0.0.1 - - [16/May/2012:13:09:40 -0400] "GET /xampp/biorhythm.php HTTP/1.1" 200 692
127.0.0.1 - - [16/May/2012:13:09:52 -0400] "GET /xampp/biorhythm.php?birthdate=09%2F20%2F1948&showpng=1 HTTP/1.1" 200 432
127.0.0.1 - - [16/May/2012:13:09:52 -0400] "GET /xampp/biorhythm.php?birthdate=09%2F20%2F1948 HTTP/1.1" 200 9639
127.0.0.1 - - [16/May/2012:13:10:11 -0400] "GET /xampp/phpinfo.php HTTP/1.1" 200 85145
127.0.0.1 - - [16/May/2012:13:10:12 -0400] "GET /xampp/phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [16/May/2012:13:10:12 -0400] "GET /xampp/phpinfo.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
127.0.0.1 - - [16/May/2012:13:10:14 -0400] "GET /xampp/phonebook.php HTTP/1.1" 200 2804
127.0.0.1 - - [16/May/2012:13:10:18 -0400] "GET /xampp/iart.php HTTP/1.1" 200 823
127.0.0.1 - - [16/May/2012:13:10:18 -0400] "GET /xampp/iart.php?img=1&text=ceci+n+est+pas+un+ami+d+apache HTTP/1.1" 200 8322
127.0.0.1 - - [16/May/2012:13:10:22 -0400] "GET /xampp/iart.php?text=ceci+n+est+pas+un+ami+d+apache HTTP/1.1" 200 823
127.0.0.1 - - [16/May/2012:13:10:22 -0400] "GET /xampp/iart.php?img=1&text=ceci+n+est+pas+un+ami+d+apache HTTP/1.1" 200 10107
127.0.0.1 - - [16/May/2012:13:10:27 -0400] "GET /xampp/guestbook-en.pl HTTP/1.1" 200 1645
127.0.0.1 - - [16/May/2012:13:10:33 -0400] "GET /xampp/cds.php HTTP/1.1" 200 2728
127.0.0.1 - - [16/May/2012:13:10:42 -0400] "GET /xampp/components.php HTTP/1.1" 200 2118
127.0.0.1 - - [16/May/2012:14:01:35 -0400] "GET /xampp/ HTTP/1.1" 200 588
127.0.0.1 - - [16/May/2012:14:01:36 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [16/May/2012:14:01:36 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [16/May/2012:14:21:36 -0400] "GET /cgi-bin/graph.pl HTTP/1.1" 403 1111
127.0.0.1 - - [16/May/2012:14:22:16 -0400] "GET /cgi-bin/graph.pl HTTP/1.1" 403 1111
127.0.0.1 - - [16/May/2012:14:25:46 -0400] "GET /cgi-bin/printenv HTTP/1.1" 200 1190
127.0.0.1 - - [16/May/2012:14:26:03 -0400] "GET /cgi-bin/graph.cgi HTTP/1.1" 500 1157
127.0.0.1 - - [16/May/2012:14:27:56 -0400] "GET /cgi-bin/test/graph.pl HTTP/1.1" 403 1111
127.0.0.1 - - [16/May/2012:14:28:02 -0400] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [16/May/2012:14:28:02 -0400] "GET /xampp/ HTTP/1.1" 200 588
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/start.php HTTP/1.1" 200 786
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/xampp.css HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/img/xampp-logo-new.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/img/head-for.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/img/head-linux.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/img/apachefriends.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/xampp.js HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:03 -0400] "GET /xampp/img/strichel.gif HTTP/1.1" 304 -
127.0.0.1 - - [16/May/2012:14:28:09 -0400] "GET /xampp/guestbook-en.pl HTTP/1.1" 200 1645
127.0.0.1 - - [16/May/2012:14:30:59 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1461
127.0.0.1 - - [16/May/2012:14:52:10 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1461
127.0.0.1 - - [16/May/2012:14:52:14 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1461
127.0.0.1 - - [16/May/2012:15:00:11 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1461
127.0.0.1 - - [16/May/2012:15:00:12 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1461
127.0.0.1 - - [16/May/2012:15:00:14 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1461
127.0.0.1 - - [16/May/2012:15:09:40 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 2312
127.0.0.1 - - [16/May/2012:15:12:37 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 2233
127.0.0.1 - - [16/May/2012:15:22:07 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 2233
127.0.0.1 - - [16/May/2012:15:22:17 -0400] "GET /xampp/fills.pl HTTP/1.1" 500 1575
127.0.0.1 - - [16/May/2012:15:30:12 -0400] "GET /xampp/ HTTP/1.1" 200 588
127.0.0.1 - - [16/May/2012:15:30:15 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [16/May/2012:15:30:15 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [16/May/2012:15:33:42 -0400] "GET /xampp/fills.pl HTTP/1.1" 500 1575
127.0.0.1 - - [16/May/2012:15:36:53 -0400] "GET /cgi-bin/graph.pl HTTP/1.1" 403 1111
127.0.0.1 - - [16/May/2012:15:37:09 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 2233
127.0.0.1 - - [16/May/2012:15:41:32 -0400] "GET /xampp/ HTTP/1.1" 200 588
127.0.0.1 - - [16/May/2012:15:41:34 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [16/May/2012:15:41:34 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [16/May/2012:16:53:25 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 2233
127.0.0.1 - - [16/May/2012:16:54:02 -0400] "GET /xampp/fills.pl HTTP/1.1" 500 1302
127.0.0.1 - - [16/May/2012:17:04:20 -0400] "GET /xampp/fills.pl HTTP/1.1" 500 1547
127.0.0.1 - - [16/May/2012:17:15:11 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 1313
127.0.0.1 - - [18/May/2012:10:55:14 -0400] "GET /xampp/fills.pl HTTP/1.1" 500 1547
127.0.0.1 - - [18/May/2012:10:55:44 -0400] "GET /cgi-bin/graph.pl HTTP/1.1" 403 1111
127.0.0.1 - - [18/May/2012:10:56:04 -0400] "GET /xampp/graph.pl HTTP/1.1" 500 2234
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp HTTP/1.1" 301 404
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/ HTTP/1.1" 200 588
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/navi.php HTTP/1.1" 200 2290
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/start.php HTTP/1.1" 200 786
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/xampp.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/img/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/img/head-for.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/img/xampp-logo-new.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/img/head-linux.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/xampp.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/img/apachefriends.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:01:20 -0400] "GET /xampp/img/strichel.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2012:10:02:20 -0400] "GET /xampp/php.php HTTP/1.0" 200 2
127.0.0.1 - - [03/Jun/2012:10:02:20 -0400] "GET /xampp/mysql.php HTTP/1.0" 200 2
127.0.0.1 - - [03/Jun/2012:10:02:20 -0400] "GET /xampp/cgi.cgi HTTP/1.0" 200 3
127.0.0.1 - - [03/Jun/2012:10:02:21 -0400] "GET /xampp/ssi.shtml HTTP/1.0" 200 4
127.0.0.1 - - [03/Jun/2012:10:02:21 -0400] "GET /xampp/perl.pl HTTP/1.0" 200 2
127.0.0.1 - - [03/Jun/2012:10:02:20 -0400] "GET /xampp/status.php HTTP/1.1" 200 3870
127.0.0.1 - - [03/Jun/2012:10:02:44 -0400] "GET /xampp/components.php HTTP/1.1" 200 2118
127.0.0.1 - - [03/Jun/2012:10:02:50 -0400] "GET /xampp/cds.php HTTP/1.1" 200 2728
127.0.0.1 - - [03/Jun/2012:10:03:03 -0400] "GET /xampp/guestbook-en.pl HTTP/1.1" 200 1645


If there are no GETS with the IP of the other machine, your server is not getting the requests - you have a network or routing problem.

Good Luck
8)
by JonB
27. June 2012 19:48
 
Forum: XAMPP for Linux
Topic: all instalation is ok, but xammp not view in browser
Replies: 3
Views: 3832

Re: Cannot connect to local mysql server through socket

Take a look at this explanation and solution.

http://www.tech-recipes.com/rx/762/solv ... mysqlsock/

Of course you will need to change the paths in the fix, but it is likely the cause of your problem (its the MySQL client side)

See if this will solve your issue.

It is worth noting that LAMPP has a built-in backup, so when things are fixed, start making backups. (although I don't know if a backup could have fixed this problem)


Good Luck
8)
by JonB
27. June 2012 14:25
 
Forum: XAMPP for Linux
Topic: Cannot connect to local mysql server through socket [Solved]
Replies: 7
Views: 5210

Cannot connect to local mysql server through socket [Solved]

Hi,
I'm glad to come into this forum. I'm seeking support to get mysql started. I mistankenly deleted the /tmp folder on my Red Hat Enterprise Linux 4 while mysql was running. After i switched off my computer i wan not able to start mysql anymore again with following error: can't connect to local mysql server through socket: /opt/lampp/var/mysql/mysql.sock (2).

Can someone tell me what i should do to get it started again?

Thank you for your kind support
by dbarasuk
27. June 2012 11:07
 
Forum: XAMPP for Linux
Topic: Cannot connect to local mysql server through socket [Solved]
Replies: 7
Views: 5210

Re: php not running

Hi kishor123 (there is ALWAYS time for a short salutation, especially if you are asking for help in a community board. It's a matter of politeness),

kishor123 wrote:i recently installed Xampp1.7.2

Is there any reason you don't use the current version XAMPP 1.7.7?


kishor123 wrote:php is not running

Thats no information that helps us to help you.
Please describe exactly what you are doing, what information your browser gives you (URL, errors), etc. Everything that could be helpful.


kishor123 wrote:while install it shows only four option on start for Apache,Mysql,FileZilla,Mercury
No option for Tomcat to start..

correct, in XAMPP 1.7.2 Tomcat was only available as AddOn Module.
Read the release notes for a listing of included components.
But how do you think should Tomcat be related to your php issue?

best wishes,
Altrea
by Altrea
27. June 2012 05:19
 
Forum: XAMPP for Windows
Topic: php not running
Replies: 4
Views: 2403

php not running

i recently installed Xampp1.7.2 but php is not running
while install it shows only four option on start for Apache,Mysql,FileZilla,Mercury
No option for Tomcat to start..
My operating system is Windows7(32bit)
any one plz help me to resolve this..
by kishor123
27. June 2012 04:43
 
Forum: XAMPP for Windows
Topic: php not running
Replies: 4
Views: 2403

Many strange problems with new version of XAMPP

Hi all,

I've been using XAMPP Lite for ages. Last two years I've been on 1.7.3 Lite. Always without any problems. As JonB wrotes here, it was always as easy as "copy XAMPP to a new location and then run setup_xampp.bat".

Today, I decided that it is good moment to finally switch to "newest", that is 1.7.7 Lite. As always I run setup_xampp.bat and... first surprise. I don't have to answer any questions (select nothing), just wait few seconds and "have fun".

OK, I said to myself, I've been using version nearly two years old, probably many things has changed. OK. I run "xampp-control.exe" and... another surprise. I can't have both Apache and MySQL run as service, because "Svc" checkbox next to each two positions is grayed (not enabled). Anyone has any idea, what's wrong?

Another thing that was strange for me, was that after clicking "Start" or "Stop" next to each two, I had immidiate effect (at least that was, what control said, changing status label), while on 1.7.3 there was a noteicable lag of 2-3 seconds after click, before getting actual effect.

OK, I run localhost, fix some security issues, by setting MySQL root password and enabling phpMyAdmin cookie authentication. Then I run phpMyAdmin, try to login and getting either "Unable to connect MySQL server" or phpMyAdmin claiming that it is unable to write session and that I should check setting for php.ini, if I have correct path to temp folder. I did that and found out that whole php.ini as good as many other files are "wasted" with paths like "\xampp" instead of "c:\xampp". This way, it for sure will not work on Windows!

Seems that setup_xampp.bat has failed setting correct paths. Am I right? Continous attempts of re-running it brought no solution. And since wasting few hours for manually correcting all these paths is not wht I would dream about, so leaving Lite version and getting Full was the last option I had.

So, I downloaded and unpacked "xampp-win32-1.7.7-VC9.zip". Run setup_xampp.bat with the same effect ("have fun"). This time "xampp-control.exe" allowed me to install Apache and MySQL as service and again, there were noticable lags between starting some service and seeing results of that.

So, again, I run localhost, went to "Security" to setup MySQL root's password, I used the same password (100% sure - copied from the same open Notepad) and... "ERROR: The string for the user name and password must have at least three characters and not more then 15 characters. Special characters like <öäü (usw.) and empty characters are not allowed!". Whoa, what's wrong here?

Since I still had "root" open without password, I simple logged into phpMyAdmin and tried to change it password from there. I also did manual corrections to config.inc.php, added new users, imported dbs and tables etc.

This time (Full version) php.ini contains correct paths, i.e. with trailling "c:\". Seems that everything is working fine, so I assume that other files also are correctly set. One strange thing, that I found, is that Apache is not auto-hiding folder names starting with ".", so I clearly see (and can enter) all my .svn folders, when browsing my localhost. Isn't option to hide "dotted" folders and files set to TRUE by default? This for sure was not set to true in 1.7.3. I'm more than sure of that, because I don't even know how to turn this option off or on and I certinally would have to know, to turn it off, if it would be enabled by default in older version of XAMPP.

To summarize:

1. Why I can't run Apache/MySQL as service in Lite version, while I can in Full version?

2. Why Lite's version setup_xampp.bat corupts / not sets correctly paths in all configuration files?

3. Why I can't set MySQL's root password using XAMPP Full localhost panel, Security section?

4. Why Apache on-board XAMPP Full has displaing "dotted" files and folders enabled by default? And how can I revert that?

Sorry for a pretty long post and thank you in advance for any help here. Have a nice day!
Trejder
by trejder
26. June 2012 23:05
 
Forum: XAMPP for Windows
Topic: Many strange problems with new version of XAMPP
Replies: 5
Views: 3876

My php code shows up blank in the browser

Hello Everybody,
This is my code (very simple)
Code: Select all
<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>

I have it saved on my computer as test.php and when i run it, it shows up blank in the web browser, Im not sure how to get my php script working, in the XAMPP control panel, my apache service when ever i press start it wont say running like it does for mysql :( if anybody could help me i would appreciate it :) thank you! Id like to be able to see my php scrips run in chrome
by Zepher48
26. June 2012 04:41
 
Forum: XAMPP for Windows
Topic: My php code shows up blank in the browser
Replies: 4
Views: 2836

[solved]Php scripts will not run on Apache

Not sure if this is the correct place to ask the question, but I will start here:

I run my site on the localhost, and use firefox to view the site.

I have a small form on the page, a simple username and password box that will store information on the MySQL database. I use a php script to run the storing of data on the MySQL database. However, when I fill in the fields and click submit, it does not run the script, it makes the page go blank and nothing happens, and the address bar says "file:///C:/xampp/htdocs/runscript.php". I know the script does not run, because the MySQL database where I told the script to store the information is empty. However, when I run the script by directly typing in "http://localhost/runscript.php" it will run the script (not properly, because it is missing the fields).

What is wrong, and how do I fix it?

bluelantern1163
by bluelantern1163
25. June 2012 23:53
 
Forum: XAMPP for Windows
Topic: [solved]Php scripts will not run on Apache
Replies: 3
Views: 2160

[solved]Apache won't run

I read some of the topics below and didn't find solution for me so I created new topic.
I installed xampp and apache won't run. I already unblocked ports 80 and 443 by shutting down system service "Server". I also disabled firewall. MySQL server is doing fine. When I want to start apache, I get a message:
Busy...
ERROR: Apache service not started [-1]

Please help, thanks
by artik93
25. June 2012 23:45
 
Forum: XAMPP for Windows
Topic: [solved]Apache won't run
Replies: 9
Views: 12318

Re: MySQL is not running!

1 - A. You can make a shortcut to the Control Panel on your desktop.

A-2 - You can make Apache and MySQL into services - they will start when the machine starts that way.

2. FileZilla is an FTP server so you can upload files to the server from a different machine or location.

3. Ummmm - I would have to say, at least at this moment, you are probably not ready to make your XAMPP install available to others. Those are 'real issues' if you were to expose your XAMPP server to the Internet. BUT, if you just want to use it to learn how things work and don't setup your router to expose the XAMPP machine, they are of little concern.

4. I kinda fudged that last answer as I don't know what you plan to do. IF you plan to make XAMPP into a webserver that is open to the public, I caution you against that idea. I have a site that discusses some of the XAMPP security issues, its in my 'signature line'.

If you could explain what you are trying to accomplish with XAMPP, I can give you a much better response.

Good Luck
8)
by JonB
22. June 2012 01:47
 
Forum: XAMPP for Windows
Topic: MySQL is not running! [Solved]
Replies: 7
Views: 7170

XAMPP startet nicht

Hallo zusammen,
auf meinem Rechner läuft das System Debian und ich wollte heute XAMPP darauf installieren. Hat auch alles super funktioniert, ich habe es mit dieser Anleitung (http://www.apachefriends.org/de/xampp-linux.html) gemacht und bis zu dem Schitt XAMPP starten lief alles ohne Fehler. Doch dann wurde ich von Fehler nur so überhäuft, im prinzip funktioniert überhaupt nichts, ich habe schon alles probiert, reboot, deinstallieren, neu installieren, ältere Version installieren, jedes mal das selbe Ergebnis:

root@raspberrypi:~# /opt/lampp/lampp start
Starte XAMPP fuer Linux 1.7.7...
/opt/lampp/share/lampp/phpstatus: Zeile 4: /opt/lampp/bin/php: Kann die Datei ni
cht ausführen.
XAMPP: Starte Apache mit SSL ...
/opt/lampp/bin/httpd: 1: Syntax error: "(" unexpected
XAMPP: Fehler 2 beim Starten vom Apache!
XAMPP: Starte Diagnose...
XAMPP: Sorry, ich weiss nicht was da schief laeuft.
XAMPP: Bitte wende Dich ans Forum http://community.apachefriends.org/f/
XAMPP: Starte MySQL...
/opt/lampp/bin/my_print_defaults: 1: Syntax error: "(" unexpected
XAMPP: MySQL konnte nicht gestartet werden!
XAMPP: Starte ProFTPD...
XAMPP: /opt/lampp/lampp: Zeile 333: /opt/lampp/sbin/proftpd: Kann die Datei nich
t ausführen.
XAMPP: Fehler 126 beim Starten von ProFTPD!
XAMPP fuer Linux gestartet.

Wäre echt cool wenn mir jemand weiter helfen kann, ich bin leider kein Profi in XAMPP und Google wollte mir auch nicht weiter helfen.
by Eisvogel
22. June 2012 00:48
 
Forum: XAMPP für Linux
Topic: XAMPP startet nicht
Replies: 1
Views: 3177

Re: MySQL is not running!

Ok, so it finally appears to be working, thanks JonB. I just wanted to ask a few questions about XAMPP before I draw this to a close:

1) How do I make a shortcut to start up XAMPP (like a desktop shortcut?)

2) What exactly is FileZilla? Do I need it for something like a web server?

3) I noticed under security the following:

a)These XAMPP pages are accessible by network for everyone
b)The MySQL admin user root has NO password
c) PhpMyAdmin is free accessible by network
d) PHP is NOT running in "safe mode"

How do I resolve these issues, to make my server more secure?
by bluelantern1163
21. June 2012 07:44
 
Forum: XAMPP for Windows
Topic: MySQL is not running! [Solved]
Replies: 7
Views: 7170

Re: MySQL is not running!

OK

I suggest the following:

(on the presumption you do not have anything to save in the installation)

If you made any of XAMPP's features into services, stop the service and remove them by using the Control Panel - you may need to restart the machine

Remove XAMPP's installer using Windows Control Panel, Programs

Now delete your \xampp folder

Download either the .zip or .7z compressed versions of XAMPP. You might want to validate the checksums.

Extract the files (you will get a \xampp folder with all the files in it)

Copy that folder to the root of one of your drives. C:\ is just fine for that if you want.

run the setup_xampp.bat file in the root of \xampp.

Launch the xampp-control-3-beta.exe file, and see if Apache and MySQL will start.

Good Luck
8)
by JonB
20. June 2012 15:34
 
Forum: XAMPP for Windows
Topic: MySQL is not running! [Solved]
Replies: 7
Views: 7170

Re: Apache won't start on any XAMPP I try to use

I have had exactly the same problem but I have found a work around.
1.Navigate to XAMPP/xampp/.
2. Create shortcuts of "xampp_start.exe", "xampp_stop.exe" and xammp-control-3-beta.exe. and put them on the desk top.
3. Click 'control-3' to act as monitor.
4. Click 'xampp_start'. A command window opens indicating XAMPP is starting. DO NOT CLOSE the window. Minimize it by all means. The backgrounds of apache and mysql will become green and you are GO.
5. When finished, click 'xampp_stop'. A command widow appears indicating XAMPP is shutting down. When complete, both command windows disappear.
6. Close 'control-3. The green backgrounds will have disappeared.

I hope this help someone.
by bryani
20. June 2012 10:02
 
Forum: XAMPP for Windows
Topic: Apache won't start on any XAMPP I try to use [Solved]
Replies: 20
Views: 57514
PreviousNext

Return to advanced search