XAMPP 1.7.7 MySQL and PHP deactivated

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

XAMPP 1.7.7 MySQL and PHP deactivated

Postby Shu » 08. May 2012 05:33

I can't find the host file mentioned above. Please help!!

Image
Shu
 
Posts: 5
Joined: 08. May 2012 05:09
Operating System: Windows 7 Ultimate

Re: [solved]XAMPP 1.7.4 MySQL and PHP deactivated

Postby Shu » 08. May 2012 05:57

Posting screenshots for a better understanding of my problem.
MySql is showing as 'running' in XAMPP control panel however, when I check the status at the localhost it shows MySql as deactivated.
Image
Image

When I click phpMyAdmin it gives me this error.
Image

I double clicked the c/xampp/mysql/mysql_installservice batch file and got the following..
Image
Shu
 
Posts: 5
Joined: 08. May 2012 05:09
Operating System: Windows 7 Ultimate

New To XAMPP and can't get started [Solved]

Postby Shu » 08. May 2012 22:02

This is odd. My HOSTS file looks like this and hence I can't make the suggested changes.


## Copyright (c) 1993-2001 Microsoft Corp.
#
# This file has been automatically generated for use by Microsoft Internet
# Connection Sharing. It contains the mappings of IP addresses to host names
# for the home network. Please do not make changes to the HOSTS.ICS file.
# Any changes may result in a loss of connectivity between machines on the
# local network.
#
Shu
 
Posts: 5
Joined: 08. May 2012 05:09
Operating System: Windows 7 Ultimate

Re: XAMPP 1.7.7 MySQL and PHP deactivated

Postby Altrea » 09. May 2012 05:18

Hi Shu (there is ALWAYS time for an introducing welcome line, especially if you are asking for help. It's a matter of politeness),

If you are using Windows 7 and your user account control (UAC) is turned on, you can't simply open, edit and save that file without higher administrative priviledged.
Please try this:
  • in your Windows menus search field type in "notepad", the notepad application should have been listed then
  • on the notepad.exe icon do a right click
  • choose "execute as administrator" from that context menu
  • in your notepad do File -> open
  • Switch the filetype in the open dialog to "All Files (*.*)"
  • navigate to C:\Windows\system32\drivers\etc\
  • open the HOSTS file
  • do your changes
  • save the file (because of the higher administrative permissions of your notepad.exe process this is now possible)

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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP 1.7.7 MySQL and PHP deactivated

Postby Shu » 09. May 2012 23:16

Thanks for the help Altrea, I am sorry If I came across rude earlier, I apologize for that.

I did as you directed but still can't see the details in the HOSTS file. It's the same as I posted earlier.
Shu
 
Posts: 5
Joined: 08. May 2012 05:09
Operating System: Windows 7 Ultimate

Re: XAMPP 1.7.7 MySQL and PHP deactivated

Postby Shu » 09. May 2012 23:29

Hi,
I just noticed that my XAMPP CP v3 is detecting problems.

Image

Thank you so much for your time. Appreciate it. :)
Shu
 
Posts: 5
Joined: 08. May 2012 05:09
Operating System: Windows 7 Ultimate

Re: XAMPP 1.7.7 MySQL and PHP deactivated

Postby Altrea » 10. May 2012 04:48

Hi Shu,

first thing:
your HOSTS file is not the HOSTS file we search.
If you uncheck the option "hide file extensions for known file types" in your folder options you will see, that your HOSTS file will have an .ics extension.

And your original HOSTS file doesn't seem to exist any more, so we will create a new empty one for you:
  • in your Windows menu search bar type in cmd (now you should see the commandline tool in your bar)
  • rightclick on it and choose run as administrator
  • in your commandline type in cd C:\Windows\system32\drivers\etc and hit Enter (now you should be in your drivers/etc folder)
  • next type in TYPE NUL > HOSTS and hit Enter. You shouldn't get any feedback from your commandline, but the file should be created
After that you can open and edit that file like described by me.

second thing:
Your XAMPP control panel v3 should also be run with higher administrative priviledges, otherwise you can not edit/use your Services ticks (grey/green checkfields on the left)

third thing:
Uncheck the services for Apache and MySQL unless all is running perfectly.

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: 11926
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 127 guests