WAMP server not starting Windows 7 - php

I had installed wamp server successfully but after starting all services it's not turning into green. I don't know exact problem also there is no port blocking problem.
Default Apache port 80 is not using by any other program.
I am trying to find out the error but not getting any.
All the error log files are empty.
I also checked mysql port and don't have any issue.

Did you have WAMP instaled before on this current windows machine?
Did you select the explorer.exe when promted?
I had same problem after i tried to instal wamp on same location where the last one was.
You need to uninstall the current wamp, delete the folder, clean you system registries and junk files, use ccleaner for this and then instal wamp again.

I know you are professional but I will give this suggestion considering that you still beginner :
remove this one completely and reboot your machine then create new folder ,if you have tow or three partition , create it in D and name it for example wamp.
when you start installation make sure that you select correct path to your folder wamp and when you write a server name , just write localhost without .com then write the user user#localhost and make password.
after that type at browser localhost and see what what happened.

Related

Wamp server is not working although it is showing green icon

I have been developing a php project and the wamp server was seems
working fine but suddenly it stops working and i don't know what to do
because when i check its status it says server online and green icon is also
showing but it just does not work whenever i run .php files, Mr. browser
just write it down as i did in notepad++ but before some days it was working
fine, please help me I'm kinda stuck?
I also want to mention that in the mean while I installed tomcat server for some other work is it anything to do with fault because i'm pretty sure both operating on differnet port numbers
use <?php instead of <?or left click wamp > php > settings > short_open_tags
and make sure you are running your scripts through localhost and not just opening the php file in the browser
Read More about wamp problem
If you're definitely viewing the script through your MAMP setup (if your URL bar starts with http:// instead of file://) and it is showing the contents of the PHP file instead of executing the script, it sounds like Apache is running fine, but PHP-FPM is the issue or a misconfiguration between the two. Apache should detect it is a PHP script and ship it to the PHP-FPM process, accept a response then ship it to your browser.
I would recommend checking PHP-FPM logs first. All logs are in MAMP/logs - scroll to the bottom of each one for latest entries. Ensure the service is running as expected and logging hits when Apache serves a .php file. PHP-FPM may be using a socket file (which can hit permission problems) or on a network port (which can be in use/require admin privileges/etc). Otherwise check your config files, or re-install MAMP for fresh config files.
If Apache cannot start, common reasons are;
The port is in use by another application
The port is a low number and you do not have administrator privileges to use that port
Switching from wired to wireless / switching network adapters / changing hostname, etc
Apache is already running, or Apache thinks it is
You must sign out from Skype it'll occupied the port of Apache or you should turn down the server and then restart you pc and turn it on. It will work fine.

Connection to database when changing from online to local server (wordpress)

I'm starting to get crazy with this.
I have to do some modifications to a wordpress website that i didn't create. I have access to the hosting so I downloaded all the files and a copy of the database.
After creating and importing in the local database I went to wp-config.php and change the hosting parametres (user, pass, server,...) for the local ones.
But here comes the troubles. When I change the online server dbXXXX.db.1and1.com to localhost it suddenly stops working and files called index.php won't ever work again
(I get "localhost server not found" error),
even if I change the source folder, or restart MAMP or restart the laptop... The only solution is to unistall MAMP, restart the system and install it again, but when changing the name of the server to localhost it happens again...
Well... If I copy the content of index.php in another file (for example index2.php) and set the parameters to the online server it works again until I change server to localhost.
When I say "it works" means that at least I get "error database connection" from wordpress (due to the online hosting does not allow external requests to its databases).
Can somebody help? Do you need some extra information? Thanks!
MAMP did some crazy this on my PC to, so I decided to switch to WAMP -
http://www.wampserver.com/en/
You may give it a try ?!
Finally I found the error. It's due to the file ".htaccess" that Wordpress (or I don't know who) creates for using permalink and MAC OS X.
When unzipping the web downloaded from the hosting the OS deleted that file because only system files can start with a dot (".htaccess").
I didn't find the solution and just start to work in Windows with BootCamp and all was fine. I was in a hurry to finish this job so I didn't have more time to try new solutions.
So I have not the solution but the source of the problem. Hope this helps someone at least finding the problem and save some time.

Localhost taking too long. What to do?

I'm working on a project. Yesterday it was working very fine but when I've updated my system OS from Windows 7 32 bit to Windows 8 64 bit and wamp server from 32 bit to 64 bit now I'm getting very slow localhost response in my Php project (6 Senonds delay on each page) also I didn't change anything within the script. Unable to identify what could be the problem.
I just changed the server name from localhost to 127.0.0.1 in database connection configuration and it worked light speed.
WAMPServer has some probelms with Windows 8. Use XAMPP. I am a hardcore WAMPServer user. But, had to switch to XAMPP due to some threading issues.
You can read more about the issue here.
Disabling the ipv6 also improves response speed issue.
http://www.techunboxed.com/2012/08/how-to-disable-ipv6-in-windows-8.html
As an IPV6 issue, here is how you make MYSQL not to use it. (so, without disabling IPV6)
edit mysql file 'my.ini'
under the [wampmysqld] add the following:
bind-address = ::
save file and restart mysql service
enjoy!
Just want to share my fix with this similar problem.
Try changing the permission of the user "Authenticated Users" of the drive where XAMPP is installed (for me its C:). Right click Drive C:\, click "Security" tab, edit "Authenticated Users", allow everything except "full control" and "special permission" which you can't. Apply and OK. Restart XAMPP.

(AvastSVC.exe and XAMPP) / (Virtual Host on XAMPP)

So I installed XAMPP and it worked fine at first (At least I think so. I typed in localhost and got the XAMPP page).
I have the files for the site I'm working on in my Dropbox folder so they stay up to date across my computers. I was looking for a way to point XAMPP to my working folder so I didn't have to work in htdocs and then move it back to Dropbox.
I found this thread:
Make XAMPP/Apache serve file outside of htdocs
And I followed cmcculloh's answer on how to set up a virtual host.
As the last step in his instructions said, I restarted Apache.
Except it won't start.
I click Start in the control panel and it says 'Starting apache service...'
....and it sits there
After Googling about it I saw tips like disable make sure port 80 is clear and disable anti-virus. And use 'netstat -nab' in a cmd prompt to check if something is using port 80
Well AvastSVC.exe is using port 80. What I don't get is why it worked fine after I installed it, with Avast running.... But it wasn't until I tried to restart that suddenly Avast is getting in the way.... So I'm not so sure that that's the problem.
Maybe it's something I did when I was trying to set up the virtual host?
I just want to test php without uploading to a web server D=
Edit:
Oh and btw, I closed Avast and made sure the process was gone but it still shows up under 'netstat -nab'. I looked under Services and there is still an Avast service but it won't let me stop it =S
If this is just for testing/learning/development purposes, perhaps you could try using EasyPHP and set an alias to the Dropbox folder with the HTML files within. Also, I recommend you use port 8080 for development, not port 80.

WAMP server is not working

I have downloaded some files which have .php extension.
Then I installed WAMMP server on my, but I am not able to view those files. I have also turned off the IIS from the add/remove windows program. Still, I am not able to view the pages.
I'm presuming that by WAMP, you are using Apache as your server? You need to find your www folder in C:\WAMP\www and place files in there.
Here is the wamp server I use.
http://www.wampserver.com/en/download.php
I have also used this one in the past.
http://www.apachefriends.org/en/xampp.html
Click on the wamp server icon on your taskbar, go to Apache and you will find Test Port 80 in there. That will show whether port 80 is available or not. If not, go to httpd.conf file which is in the Apache menu of wamp server, find line Listen 80. Change 80 to 88. Restart All Services in wamp and that should work. Let me know if that helped.
How are you trying to view the pages? Why exactly are you "not able" to do it? Are you aware that PHP files are basically programs that run on a server, and you view their output using a web browser? Assuming that you have actual PHP files (rather than their output) and all the resources that they need, you will have to put them into the source folder that WAMP is configured to display, and then you will be able to view them by going to http://localhost in your web browser.
in the run put mmc - on the consol file / add /remove item choose internet information service and under website turn off the iis
if you installed in the past wamp/mysql selete all and reinstall only the wamp
Click on the wamp server icon in the taskbar and test "localhost".
If that works, click the "phpinfo()" link on the page.
If that works too, your wamp server is working and you should be able to execute php files.
If not, you need to make sure it is installed properly and started properly.

Categories