Recently I had to wipe my Windows 10 out and re-install it. Now wamp's create virtual host is broken.
I am using latest WAMP server, and while creating virtual host through wamp functionality http://localhost/add_vhost.php?lang=english I am getting following error.
Warning: fopen(C:\WINDOWS/system32/drivers/etc/hosts): failed to open
stream: Resource temporarily unavailable in C:\wamp\www\add_vhost.php
on line 442
Seems like I can't edit hosts file. I tried manually editing it in notepad++ with administrative privileges but it didn't work.
Anyway to make the hosts file accessible and editable by wamp ?
I am running a WAMP local server and I set up xdebug exactly as the wizard told me to. I edited the php.ini file that you get when you right click on the WAMP icon (the one in the Apache directory) but according to PhpStorm XDebug is not installed.
I fixed this problem by editing the php.ini file in both the php directory and the one that you get in the menu. So long as the XDebug portion is identical on both files, it works perfectly.
I am trying to start wamp serve which was totally running fine on my laptop two weeks ago, but now after two weeks I suddenly get this error:
could not execute menu item(internal error)[exception] could not execute run action: the directory name is invalid
When I click on wamp, then I go to apache, then I select service then test port 80 and this is what I see:
when I write localhost, it goes there but when I click on Localhost and phpMyAdmin, i get this error:
please tel me how I can fix this . thanks
WAMP is trying to open your browser, but the directory in the settings is not correct. It could be that your browser is now located somewhere else. To fix this:
Edit the file wampmanager.conf inside your wamp direcotry.
Replace the full file path under the [main] section for the navigator parameter
Save the file
Right-click on the wamp icon and select refresh
Try it now
Good luck!
The paths are incorrect in multiple ini files and the wampmanager conf file. Here are the ones I changed since my installed moved from g drive to e drive. I had to change all instances of g:/ to e:/ as well as my chrome.exe location
wampmanager.conf:
in the [main] section update the path of chrome.exe or ensure it is correct.
wampmanager.ini:
change all instances of g:/ to e:/ (or whatever your install drive letter is)
php.ini (under /wamp/bin/php/php5.5.12/)
again, change all instances of g:/ to e:/ (change to your install letter)
Wampmanager started correctly once these changes were made.
I had a similar problem, and to get my WAMP server working again on my laptop I ran the executables for Apache and MySql independant of the WAMP system tray icon.
In Windows Explorer, I ran (elevated):
{wamp folder in my case C:\wamp}bin\apache\apache2.2.22\bin\ApacheManager.exe
This put the apache manager system tray icon in.
then I used the apache system tray icon to start apache server
Then I ran (elevated):
{C:\wamp}bin\mysql\mysql5.5.24\bin\mysqld.exe
This allowed me to use localhost\phpmyadmin, which to me demonstrates the php, mysql and apache are all working.
My web app was also back and running.
The age of my MySql version and apache version show how long this had been stable for.
I initially thought the problem may have been caused by a google chrome upgrade which included the notifications icon in the system tray, as the chrome upgrade was the only thing I recall changing. I unistalled chrome but this did not fix it - although this does not rule out Chrom Notifications being what broke it!
This appears to be an oversight on the WAMPSERVER developers. For some reason it does not translate the file path syntax from Linux to Windows, resulting in the following error message:
Aestan Tray Menu: Could not execute menu item (internal error)
[Exception] Could not execute run action: The directory name is invalid
To fix this, edit wampmanager.conf and replace the forward slashes in the file path with backslashes.
EXAMPLE:
Incorrect
editor ="C:/Program Files/Sublime Text 3/sublime_text.exe"
Correct
editor ="C:\Program Files\Sublime Text 3\sublime_text.exe"
Save the file, then right click the tray icon and select "Refresh". You should now be able to edit your files with your selected editor without issue :)
i have met this problem and fixed by editing 4 files
- wampmanager.conf in root
- wampmanager.ini in root
- php.ini in (wamp64/bin/php/php5.5.12)
- httpd.conf in (wamp64\bin\apache\apache2.4.18\conf)
The problem I am facing is that I just upgraded to Win 7 64-bit and installed Wamp server with VC++ and it works fine.
But I can't access subdirectories in the web directory (C:\wamp\www), I can access the files although.
Please guide me through.
It is now strongly advised that you create Virtual Hosts for all your project, even those that you store in the \wamp\www\project1 folder structure.
WampServer now assumes that you have done this, and that is why you get this issue.
Here is a previous answer Project Links do not work on Wamp Server
I've got Bitnami Django Stack running on Windows Server 2008 R2. Any change to the httpd.conf file prevents Apache from starting/restarting.
Tried to include the virtual hosts configuration file (just as a test in its default state and with my own subdomains), breaks.
Added the necessary Include line for my Django project, breaks.
When I comment out my additions it works without a hitch.
I realize these are two separate issues, but because they hinder Apache in the same way I included both cases.
I should note I couldn't find a solution elsewhere because the application log gives me nothing other than "Unable to Start Apache" and Apache's error log has no errors. I also looked through the Bitnami Django Stack and Apache documentation to no avail.