after installing xampp can not start apache or mysql

Problems with the Windows version of XAMPP, questions, comments, and anything related.

after installing xampp can not start apache or mysql

Postby Joe_Joe_Joe » 28. May 2013 20:04

hello

After installing the latest version of xampp on windows 7 computer and choosing the zipped file version of intsalling the software. Opening control panel and turning on both modules services for Apache and Mysql. All working fine. But when I click on the start button in control panel to turn on each service one at a time they never manage to turn themsleves on. Not seeing any configuation going on under the Port(s) field. If try to start Apache and My SQl at the same time I get an error message. And other times when trying this control panel says that xampp is not responding. Not sure what I am doing wrong or why this keep happening.

Before intsalling I turned off user accounts and I have Microsoft C++ 2008 32 bit runtime library intsalled. I am new to the xampp program and would like to use it. If at all possible can some please explain why this is happening and what I can do to rectify this all. Are there any go to steps that I can get this resolved. Any information would greatly help. Thank you Joe.
Joe_Joe_Joe
 
Posts: 3
Joined: 28. May 2013 17:27
Operating System: widows 7

Re: after installing xampp can not start apache or mysql

Postby Altrea » 28. May 2013 20:11

Hi Joe,

Please try to start \xampp\apache_start.bat in your Windows command line and report what you get as response.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

ReRe: after installing xampp can not start apache or mysql

Postby Joe_Joe_Joe » 29. May 2013 02:05

Hello Altrea

I started apache in the hopes of getting to command line to type in \xampp\apache_start.bat and got the same error message while control panel is not responding. I also typed \xampp\apache_start.bat in comand line with out staring Apache and a got several returns. But I am not certian what type of information I need to move forward with. Please in regards to all. If at all. Any further ideas. Thank you Joe.
Joe_Joe_Joe
 
Posts: 3
Joined: 28. May 2013 17:27
Operating System: widows 7

Re: ReRe: after installing xampp can not start apache or mys

Postby Altrea » 29. May 2013 05:09

Joe_Joe_Joe wrote:I also typed \xampp\apache_start.bat in comand line with out staring Apache and a got several returns. But I am not certian what type of information I need to move forward with.

All of them!? :D
You can copy and paste from command line windows too.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: after installing xampp can not start apache or mysql

Postby Joe_Joe_Joe » 29. May 2013 15:11

Hello Alrea

After enter xampp/apache_start.bat I selected readme_de at windows command line . I also got another return apache_start that brought up command prompt. Below I copyed and paste what my return was after selecting readme_de.


###### ApacheFriends XAMPP Version 1.8.1 ######

Wichtig! PHP in diesem Paket benötigt die Microsoft Visual C++ 2008 Redistributable Erweiterung von
http://www.microsoft.com/en-us/download/details.aspx?id=5582. Bitte stellen Sie sicher das die VC++ 2008
Runtime Bibliothek auf Ihrem System installiert ist.

+ Apache 2.4.3
+ MySQL 5.5.27 (Community Server)
+ PHP 5.4.7 (VC9 X86 32bit thread safe) + PEAR
+ phpMyAdmin 3.5.2.2
+ OpenSSL 1.0.1c
+ ADOdb 5.17
+ Mercury Mail Transport System v4.62 (nicht in der Portable Version)
+ FileZilla FTP Server 0.9.41 (nicht in der Portable Version)
+ Webalizer 2.23-04 (nicht in der Portable Version)
+ Strawberry Perl 5.16.1.1 Portable
+ Tomcat 7.0.30
+ XAMPP Control Panel Version 3.1.0 von hackattack142 (Ein großes Danke Schön!)
Vgl.: http://community.apachefriends.org/f/viewtopic.php?f=16&t=46743
+ XAMPP Security
+ XAMPP mailToDisk 1.0 (schreibt verdendete Mails über PHP auf die Festplatte unter <xampp>\mailoutput. In der php.ini als Mail Default aktiviert.)

---------------------------------------------------------------

* System-Voraussetzungen:

+ 64 MB RAM (EMPFOHLEN)
+ 750 MB freier Speicherplatz
+ Windows 2003, XP (EMPFOHLEN), VISTA, Windows 7

* ACHTUNG!!!!

Wenn ihr Probleme mit der mysql Verbindung via php bzw. phpMyAdmin (pber die mysqlnd API) habt dann schaut bitte unbedingt hier:
http://localhost/xampp/index.php


* SCHNELLINSTALLATION:

[HINWEIS: Auf die obersten Hirachie eines beliebigen Laufwerks bzw. auf dem Wechseldatenträger des USB-Sticks entpacken => E:\ oder W:\. Es entsteht E:\xampp oder W:\xampp. Für den USB-Stick nicht die "setup_xampp.bat" nutzen, um ihn auch transportabel nutzen zu können!]

Schritt 1: Das Setup mit der Datei "setup_xampp.bat" im XAMPP-Verzeichnis starten. Bemerkung: XAMPP macht selbst keine Einträge in die Windows Registry und setzt auch keine Systemvariablen.

Schritt 2: Starten Sie den Apache2 mit PHP5.x mit dem Control Panel (xampp-control.exe) oder wahlweise mit => \xampp\apache_start.bat.
Stoppen Sie den Apache2 mit PHP5.x mit dem Control Panel (xampp-control.exe) oder wahlweise mit => \xampp\apache_stop.bat.

Schritt 3: Starten Sie MySQL mit dem Control Panel (xampp-control.exe) oder wahlweise mit => \xampp\mysql_start.bat.
Stoppen Sie MySQL mit dem Control Panel (xampp-control.exe) oder wahlweise mit => \xampp\mysql_stop.bat.

Schritt 4: Öffne deinen Browser und gebe http://127.0.0.1 oder http://localhost ein. Danach gelangst du zu den zahlreichen ApacheFriends-Beispielen auf Ihrem lokalen Server.

Schritt 5: Das Root-Verzeichnis (Hauptdokumente) für HTTP (oft HTML) ist => C:\xampp\htdocs. PHP kann die Endungen *.php, *.php3, *.php4, *.php5, *.phtml haben, *.shtml für SSI, *.cgi für CGI (z. B.: Perl).

Schritt 6: XAMPP DEINSTALLIEREN?
Einfach das "XAMPP"-Verzeichnis löschen. Vorher aber alle Server stoppen
bzw. als Dienste deinstallieren.

---------------------------------------------------------------

* PHP MAIL FUNCTION:

Es gibt drei Arten die PHP Mail function testweise zu benutzen.

1) Mit XAMPP mailToDisk wird jede Email die über die Mail Funktion von PHP versendet wird nach <xampp>\mailoutput geschrieben. MailToDisk ist Standard und Bedarf keine Änderung in der php.ini. MailToDisk keinesfalls produktiv einsetzen!
2) Mit fakemail (sendmail.exe) werden alle Mails versendet mit PHP mail() in ein von ihnen definiertes externes Postfach geschickt. Zuvor müssen sie ihr Postfach in der <xampp>\sendmail\sendmail.ini konfigurieren und auch die sendmail.exe in der php.ini aktivieren.
3) Sie bnutzen einen eigenen SMTP Server wie der im XAMPP integrierte Mercury Mail Server oder einen externen SMTP Server (wie IIS). Hierzu kommentieren sie in der php.ini alle sendmail_path Zeilen aus und kommentieren dafür die Zeilen -> SMTP = localhost und -> smtp_port = 25 mit ihren Daten ein.

ACHTUNG: Wenn sie im Installationspfad Leerzeichen verwenden (wie c:\program files\xampp), wird mailToDisk und fakemail (sendmail.exe) u.U. nicht funktionieren. In diesem Fall den <xampp>\mailtodisk bzw. <xampp>\sendmail in ein Vereichnis ohne Leerzeichen kopieren und den neuen Pfad entsprechend in der php.ini aktualisieren.

---------------------------------------------------------------

* PASSWÖRTER:

1) MySQL:

Benutzer: root
Passwort:
(also kein Passwort!)

2) FileZilla FTP:

[ Sie müssen erst einen neuen Benutzer über das User FileZilla Interface erstellen. ]

3) Mercury:

Postmaster: Postmaster (postmaster@localhost)
Administrator: Admin (admin@localhost)

TestUser: newuser
Passwort: wampp

4) WEBDAV:

Benutzer: xampp-dav-unsecure
Password: ppmax2011

---------------------------------------------------------------

* NUR FÜR NT-SYSTEME! (NT4 | Windows 2000 | Windows XP | Windows 2003):

- \xampp\apache\apache_installservice.bat
===> Installiert den Apache 2 als Dienst

- \xampp\apache\apache_uninstallservice.bat
===> Deinstalliert den Apache 2 als Dienst

- \xampp\mysql\mysql_installservice.bat
===> Installiert MySQL als Dienst

- \xampp\mysql\mysql_uninstallservice.bat
===> Deinstalliert MySQL als Dienst

==> Nach allen De- / Installationen der Dienste, System unbedingt neustarten!

---------------------------------------------------------------

* DAS THEMA SICHERHEIT:

Wie schon an anderer Stelle erwähnt ist XAMPP nicht für den Produktionseinsatz gedacht, sondern nur für Entwickler in Entwicklungsumgebungen. Das hat zur Folge, dass XAMPP absichtlich nicht restriktiv sondern im Gegenteil sehr offen vorkonfiguriert ist. Für einen Entwickler ist das ideal, da er so keine Grenzen vom System vorgeschrieben bekommt.
Für einen Produktionseinsatz ist das allerdings überhaupt nicht geeignet!
Hier eine Liste, der Dinge, die an XAMPP absichtlich (!) unsicher sind:

- Der MySQL-Administrator (root) hat kein Passwort.
- Der MySQL-Daemon ist übers Netzwerk erreichbar.
- phpMyAdmin ist über das Netzwerk erreichbar.
- In dem XAMPP-Demo-Seiten (die man unter http://localhost/ findet) gibt es den Punkt "Sicherheitscheck".
Dort kann man sich den aktuellen Sicherheitszustand seiner XAMPP-Installation anzeigen lassen.

Will man XAMPP in einem Netzwerk betreiben, so dass der XAMPP-Server auch von anderen erreichbar ist, dann sollte man unbedingt die folgende URL aufrufen, mit dem man diese Unsicherheiten einschränken kann:

http://localhost/security/

Hier kann das Root-Passwort für MySQL und phpMyAdmin und auch ein Verzeichnisschutz für die
XAMPP-Seiten eingerichtet werden.

---------------------------------------------------------------

* MYSQL-Hinweise:

(1) Um den MySQL-Daemon zu starten bitte Doppelklick auf \xampp\mysql_start.bat.
Der MySQL Server startet dann im Konsolen-Modus. Das dazu gehörige Konsolenfenster muss offen bleiben (!!) Zum Stop bitte die mysql_stop.bat benutzen!

(2) Wer MySQL als Dienst unter NT / 2000 / XP benutzen möchte, muss unbedingt (!) vorher die "my" bzw."my.ini unter C:\ (also C:\my.ini) implementieren. Danach die "mysql_installservice.bat" im Ordner "mysql" aktivieren. Dienste funktionieren generell NICHT unter Windows Home-Versionen.

(3) Der MySQL-Server startet ohne Passwort für MySQl-Administrator "root".
Für eine Zugriff in PHP sähe das also aus:

mysql_connect("localhost", "root", "");

Ein Passwort für "root" könnt ihr über den MySQL-Admin in der Eingabeaufforderung
setzen. Z. B.:

C:\xampp\mysql\bin\mysqladmin.exe -u root -p geheim

Wichtig: Nach dem Einsetzen eines neuen Passwortes für Root muss auch phpMyAdmin informiert werden! Das geschieht über die Datei "config.inc.php"; zu finden als C:\xampp\phpmyadmin\config.inc.php. Dort also folgenden
Zeilen editieren:

$cfg['Servers'][$i]['user'] = 'root'; // MySQL User
$cfg['Servers'][$i]['auth_type'] = 'http'; // HTTP-Authentifzierung

So wird zuerst das "root"-Passwort vom MySQL-Server abgefragt, bevor phpMyAdmin zugreifen darf.

---------------------------------------------------------------

Have a lot of fun! | Viel Spaß! | Bonne Chance!
Joe_Joe_Joe
 
Posts: 3
Joined: 28. May 2013 17:27
Operating System: widows 7

Re: after installing xampp can not start apache or mysql

Postby Altrea » 29. May 2013 15:37

I don't understand a word of your last reply.
How is the apache_start.bat related to the readme_de.txt file? :shock:
Answer: it is NOT related
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests