Cant Start WAMP!!
Posted by: theawakingspartan (---.zoominternet.net)
Date: January 21, 2014 02:47AM

I cant get my WAMP to start it keeps giving me this "Could not execute menu item (internal error)[Exception] Could not perform service action: The service has not been started" I am using Windows 8.1 and it work until about 2 weeks ago and then just stopped! Please help me, its important that I get WAMP up and running!

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: RiggsFolly (---.as13285.net)
Date: January 21, 2014 10:36AM

Hi Spartan,

Did you upgrade to W8.1 since it last worked?

What colour is your wampmanager icon ? ( thats the W icon that sits in the system tray)

If so the upgrade to 8.1 seems to remove the Apache and MySQL services for some reason, if that is the case your wampmanager icon will probably be RED and not GREEN so try this :-


Start WAMP

left click the wampmanager icon -> MySQL -> Service -> Install Service
left click the wampmanager icon -> Apache -> Service -> Install Service

left click the wampmanager icon -> Start all Services


If the wampmanager icon now turns green all is well.


Let me know if this was not the problem, and please answer these questions before asking the next question. Thanks. [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: Jimmyk080 (---.206.1.5.vgccl.net)
Date: January 21, 2014 02:03PM

Hi, I have the same problem, I can't start WAMPSERVER too. Its used to opened the first time i open it. When i typed localhost on my browser i got ERROR 404 HTTP.
The Icon color is yellow and am using window 7.

Secondly, I was unable to install WAMP 64bit on my window 7, 64bit and i don't know the reason. Thanks

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: RiggsFolly (---.as13285.net)
Date: January 21, 2014 02:15PM

Hi Jimmy,

To be honest you ar better off with the 32 bit even on a 64bit Windows for now.


If the wampmanager icon is not GREEN then one of the services ( Apache/MySQL ) has not started prperly.

How to tell which service is not running if the wampmanager icon is orange.

Left click the wampmanager icon to reveal the menu-> Apache -> Service
If the Start resume service menu item is Green then Apache is running.

Left click the wampmanager icon to reveal the menu-> MySQL -> Service
If the Start resume service menu item is Green then MySQL is running.

If Apache is the service that is not running it is normally, but not always, because something else has captured port 80.

Now do,
Left click the wampmanager icon to reveal the menu-> Apache -> Service -> Test port 80
This will launch a command window and display some information about what, if anything is using port 80.

Whatever it is should be re-configured to not use port 80 or uninstalled if you are not using it.

If port 80 is not the problem look for errors in the appropriate error log ( use the wamp manager menus to view the error logs )

If these do not exists or show no errors then also check the Windows Event Viewer
Start -> Administrative Tools -> Event Viewer
And look in the 'Windows Logs' -> Application' section accessed from the menu on the left of the dialog for error messages from Apache and or MySQL.


How to Configure SKYPE so it does not require port 80 or 443

Run SKYPE
then using the menus do this:
Tools -> Options -> Advanced -> Connection
Un-Check the checkbox next to 'Use port 80 and 443 as alternatives for incomming connections'
Now restart SKYPE for these changes to take effect.


How to Configure Team Viewer so it does not require port 80 or 443
Run TV
Extras -> Options -> Advanced -> Press the Advanced Button -> Advanced Network Connections
Check the checkbox saying [ Dont use incomming port 80 (recommended for web servers only ) ]

If the problem is not obvious then post the errors here

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: Jimmyk080 (---.206.1.4.vgccl.net)
Date: January 21, 2014 02:48PM

Hi Riggy'
Thanks. Apache start resume service icon is green. But when i click MYSQL->Service resume it did not show Green.
Pls is there any way to fix it. (MYSQL)

When i clicked on MYSQL log these is what i got

2014-01-21 13:31:00 6620 [Note] Plugin 'FEDERATED' is disabled.
2014-01-21 13:31:00 6620 [Note] InnoDB: The InnoDB memory heap is disabled
2014-01-21 13:31:00 6620 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-01-21 13:31:00 6620 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-01-21 13:31:00 6620 [Note] InnoDB: Not using CPU crc32 instructions
2014-01-21 13:31:00 6620 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-01-21 13:31:00 6620 [Note] InnoDB: Completed initialization of buffer pool
2014-01-21 13:31:00 6620 [Note] InnoDB: Highest supported file format is Barracuda.
2014-01-21 13:31:03 6620 [Note] InnoDB: 128 rollback segment(s) are active.
2014-01-21 13:31:03 6620 [Note] InnoDB: Waiting for purge to start
2014-01-21 13:31:03 6620 [Note] InnoDB: 5.6.12 started; log sequence number 1625977
2014-01-21 13:31:03 6620 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 4661e95a-82a0-11e3-96a6-984be1a37cc1.
2014-01-21 13:31:03 6620 [Note] Server hostname (bind-address): '*'; port: 3306
2014-01-21 13:31:03 6620 [Note] IPv6 is available.
2014-01-21 13:31:03 6620 [Note] - '::' resolves to '::';
2014-01-21 13:31:03 6620 [Note] Server socket created on IP: '::'.
2014-01-21 13:31:04 6620 [Note] Event Scheduler: Loaded 0 events
2014-01-21 13:31:04 6620 [Note] wampmysqld: ready for connections.
Version: '5.6.12-log' socket: '' port: 3306 MySQL Community Server (GPL)

Thanks



Edited 1 time(s). Last edit at 01/21/2014 02:53PM by Jimmyk080.

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: RiggsFolly (---.as13285.net)
Date: January 21, 2014 06:00PM

Hi jimmy,


That look like a good start of MySQL. So you misunderstood the previous email. Ohh no, I just read it back and I got it completely wrong. SORRY!!!!


It looks like it is Apache that is not starting, I have fixed the documentation here is the new copy. SORRY AGAIN!




If the wampmanager icon is not GREEN then one of the services ( Apache/MySQL ) has not started properly.

How to tell which service is not running if the wampmanager icon is orange.

Left click the wampmanager icon to reveal the menu-> Apache -> Service
If the Start/Resume service menu is Green then Apache IS NOT running.

Left click the wampmanager icon to reveal the menu-> MySQL -> Service
If the Start/Resume service menu is Green then MySQL IS NOT running.

If Apache is the service that is not running it is normally, but not always, because something else has captured port 80.

Now do,
Left click the wampmanager icon to reveal the menu-> Apache -> Service -> Test port 80
This will launch a command window and display some information about what, if anything is using port 80.

Whatever it is should be re-configured to not use port 80 or uninstalled if you are not using it.

If port 80 is not the problem look for errors in the appropriate error log ( use the wamp manager menus to view the error logs )

If these do not exists or show no errors then also check the Windows Event Viewer
Start -> Administrative Tools -> Event Viewer
And look in the 'Windows Logs' -> Application' section accessed from the menu on the left of the dialog for error messages from Apache and or MySQL.


How to Configure SKYPE so it does not require port 80 or 443

Run SKYPE
then using the menus do this:
Tools -> Options -> Advanced -> Connection
Un-Check the checkbox next to 'Use port 80 and 443 as alternatives for incomming connections'
Now restart SKYPE for these changes to take effect.


How to Configure Team Viewer so it does not require port 80 or 443
Run TV
Extras -> Options -> Advanced -> Press the Advanced Button -> Advanced Network Connections
Check the checkbox saying [ Dont use incomming port 80 (recommended for web servers only ) ]

If the problem is not obvious then post the errors here

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: weddingphp (41.203.68.---)
Date: January 23, 2014 08:48AM

localhost is now on.thanks, but i want to know if i can add as many directory to my www folder

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: RiggsFolly (---.as13285.net)
Date: January 23, 2014 10:32AM

Jimmy,

Yes you can add as many directories as you like below the \wamp\www\ folder.


A much better way of managing multiple sites is to use Virtual Hosts though. Heres a quick tutorial if you feel so inclined.





HowTo: Create Virtual Hosts in WAMP

BEFORE DOING ANY OF THIS PLEASE ENSURE APACHE AND MYSQL ARE WORKING PROPERLY FIRST!!!

1. Create a new folder outside the wamp directory structure.
for example
C:\websites\www
but this can be on any disk drive visible to the PC running wamp


2. Create a subfolder in c:\websites for each site you want to create.
for example:
C:\websites\www\site1
C:\websites\www\site2


3. Edit the file C:\wamp\bin\apache\apachex.y.z\conf\extra\httpd-vhosts.conf
where x,y and z are the version numbers of apache that you actually have installed.

NOTE: If you are switching between 2 or more versions of apache this will have to be done to all your versions of apache in turn.

SUGGESTION: I like to use the format sitename.dev to make it obvious to me that I am dealing with my localhost development copy of a site, you may prefer another notation, thats ok, the word dev has no actual defined meaning in this case, its just my way of naming my development versions of a live site.

NOTE: Remove ot better still comment out ( using the # in column 1 ) the lines that already exists in this file. They are just examples.

example contents:
	#
	# Use name-based virtual hosting.
	#
	NameVirtualHost *:80

	## must be first so the the wamp menu page loads when you use just localhost as the domain name
	## Also NEVER change the security to anything other than Allow from 127.0.0.1 localhost ::1
	## Then a drive by Ip address hack should return a 403 denied access
    <VirtualHost *:80>
       DocumentRoot "C:/wamp/www"
       ServerName localhost
       ServerAlias localhost
       ## Using Apache 2.2 syntax
       <Directory  "C:/wamp/www">
          Order Deny,Allow
          Deny from all
          Allow from 127.0.0.1 localhost ::1
          ## For every ip in the subnet, just use the first 3 numbers of the subnet
          ## Check you actual subnet for the actual values to use here
          Allow from 192.168.0
       </Directory>

      ## Using Apache 2.4 syntax
      <Directory  "C:/wamp/www">
          Require local
          ## And possibly allow access from you local network
          ## Check you subnet for the actual values to use here
          Require ip 192.168.0
      </Directory>

    </VirtualHost>


	<VirtualHost *:80>
	    DocumentRoot "C:/websites/www/site1"
	    ServerName site1.dev
	    ServerAlias www.site1.dev
	    Options Indexes FollowSymLinks
	    ## Using Apache 2.2 syntax
	    <Directory "C:/websites/www/site1">
			AllowOverride All
			Order Deny,Allow
			Deny from all
			Allow from 127.0.0.1 localhost ::1
		    #If you want to allow access from your internal network
		    # For specific ip addresses add one line per ip address
		    #Allow from 192.168.0.nnn
	    	# For every ip in the subnet, just use the first 3 numbers of the subnet
	    	#Allow from 192.168.0
	    	# If you want to allow access to everyone
	    	#Allow from all
		</Directory>

		## Using Apache 2.4 syntax
	    <Directory "C:/websites/www/site1">
			AllowOverride All
			Require local
		    #If you want to allow access from your internal network
		    # For specific ip addresses add one line per ip address
		    #Require ip 192.168.0.nnn
	    	# For every ip in the subnet, just use the first 3 numbers of the subnet
	    	#Require ip 192.168.0
	    	# If you want to allow access to everyone
	    	#Require all granted
		</Directory>

	</VirtualHost>

Add as many <VirtualHost> as you require so each of your sites have one, changing the DocumentRoot, ServerName and any other of the parameters as appropriate.
This also allows you to make SITE SPECIFIC changes to the configuration.

NOTE: This will make the wamp manager "Put Online" function no longer have any effect on these new vhost'ed sites as the security for each one is now part of the vhost definition, so leave WAMP, OFFLINE.
If you want to put one or more sites online you will have to change the Allow commands MANUALLY in the httpd-vhosts.conf file.

To check your subnet do the following:
Launch a command window, and run
    >ipconfig
Look for the line "Default Gateway" in the output and use the third number in your Allow commands.


4. Edit your httpd.conf file and search for these lines, they are near the bottom of the file.
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Remove the '#' comment character on this line to Include your newly changed vhosts, this will cause apache to register their existance.
eg
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

5. While still editing your httpd.conf file search for
	#   onlineoffline tag - don't remove
	    Order Deny,Allow
	    Deny from all
	    Allow from 127.0.0.1

	</Directory>
DO NOT CHANGE THESE LINES!

Add the following after the <\Directory> tag to secure your new C:\websites folder.

<Directory "C:/websites/">
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>

This is to set security on your new directory structure so that access to these new sites is only allowed from 127.0.0.1 (localhost) unless amended from within a specific VHOST.
P.S. Your internal network will probably be something like 192.168.x.y, check your system first!


6. Now in order for your browser to know how to get to these new domain names i.e. site1.dev and site2.dev, we need to tell windows what IP address they are located on. There is a file called HOSTS that is a hangover from the days before Domain Name Servers (DNS) were invented. It is a way of giving nice easy rememberable names to IP address's, which of course is what DNS Servers do for us all now.

Edit your HOSTS file, this can be found in C:\windows\system32\drivers\etc , the file does not have an extension.
Windows protects this file so you must be an Administrator to be allowed to save changes to this file.

If you are using VISTA or Windows7/8 you may think you are an Administrator BUT YOU ARE NOT!!!!
So to edit this file you must launch your editor, or Notepad in a specific way to gain Administrator rights. To do this find your editors icon and launch it using the following key strokes:
Shift + Right Click over its icon, this will display a menu, click the item "Run as Administrator", and click "Allow" on the challenge dialog that will appear.

Now you are ready to edit the hosts file so navigate your editor to c:\windows\system32\drivers\etc\hosts

Add the following lines to this file

   127.0.0.1   site1.dev
   127.0.0.1   site2.dev
NOTE: You will need to add one line in this file for each of your new virtual hosts.

Once you have saved these changes you need to make windows refresh its 'domain name - ipaddress cross reference' cache.

To do this launch a command window as an Administrator ( Shift + Left Click over the command window icon ) and run these 2 commands.

>net stop "DNS Client"
>net start "DNS Client"
Note: The quotes are required as there is a space in the services name.



7. In order for Apache to pick up these changes you must bounce ( restart ) apache.
Do this by: Wamp manager -> Apache -> Service -> Restart Service


You should now be able to use the address site1.dev in your browser to get to your new sites.
Copy your sites code into the "C:/websites/xxxx" folder if you already have a site coded or,
place a quick and simple index.php file into the "c:\websites\xxxx" folder to proove it all works.

example:
   <!DOCTYPE html>
   <html lang="en-US">
   <head>
   <meta charset="UTF-8">
   <title>SITE1</title>
   </head>
   <body>
   <?php
        echo '<div style="background-color:red;color;white;text-align:center;font-size:18px">HELLO FROM Site1</div>';
   ?>
   </body>
   </html>



TROUBLE SHOOTING:
If you have used the new domain name ( site1.dev ) and it has not found the site.
a. Check the changes to the hosts file.
b. Restart the "DNS Service" that runs in windows. This caches all doman names that you use in a browser so that the browser does not have to query a DNS Server each time you re-use a domain name. This may have cached your failed attempt but a restart is easy and should solve the problem and is quicker that re-booting windows, which should also work.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Cant Start WAMP!!
Posted by: oma_karim (41.203.69.---)
Date: September 12, 2014 10:21AM

ThanK you very much @RiggsFolly it worked. based on your description.. bye

Options: ReplyQuote


Sorry, only registered users may post in this forum.