How should be installed XAMPP and Microsoft SQL Server 2014? - php

My aim is getting an Apache-Microsoft SQL server 2014- PHP configuration in a Microsoft Windows Server 2008 environment
I have a vm Microsoft Windows server 2008 R2 (64bit), with SQL Server 2014 management Studio installed (80 port) that i would like not remove.
I think i have 3 options:
XAMPP and SQL Server 2014
WAMP and SQL Server 2014
Separate installation of Apache 2.4, PHP 5.6
I prefere the most easy way.
I tried with no success the second and the third points.
Below my last attempt:
After that, i installed XAMPP.
i installed the Microsoft Visual C++ 2012 Redistributable 11.06 because during the installation i was alerted for a missing dll.
After that i remove and reinstalled XAMPP but in the panel controll when i star the Apache service i was alerted that 80 port was occupied by SQL Server so i change Apache port both httpd.conf (listen 8079) and in panel control XAMPP service settings.
I disinstalled and reinstalled XAMPP and i got:
status change detected: running
but with Firefox 43 browser at localhost address i got a white page.
if i open the file index.php from the
C:\xampp\htdocs\
i got the generic error:
something is wrong with the xampp installation :-(
If i start also Mysql service nothing gonna change.
Mercury Filezilla and tomcat are stopped.
I tried also WAMP but i got the same white page.
Usually without SQL Server i have always installed easily WAMP and XAMPP!
Thank you

Related

MySQL does not start in Xampp control panel in Windows 8.1

After the successful installation of Xampp on my Windows 8.1 64-bit system, the Apache server is starting fine but MySQL is not starting.
There is no error showing in the control panel log. I changed the port 3306 to 3307 in the my.ini file in the lib folder, but no change has occurred.
This is the screenshot of xampp control panel log when I click on the mysql start button
let xampp run as administrator and open the services make sure you stopped running the mysql service and uninstall the mysql under service in xampp control and install and start.

WAMP is not starting completely

I have latest version of wamp i.e WAMPSERVER (64 bit & PHP 5.5) 2.5 installed. It's not starting completely, not turning to green and so MySQL is not starting even though the port is used by Apache itself.
I have also installed Visual Studio 2012 VC 11 vcredist_x64/86.exe for my Windows 8.1 64bit OS.
Very weird, all the paths are configured in paths and also extensions enabled.
Below image specifies the sufficient ports in use:
#RiggsFolly - Thanks for the neat explanation. As per your questionnaires, I wanted to confirm that I have just installed 64 bit Wamp version and not 32bit. But installed Visual Studio 2012 VC 11 vcredist_x64 and x86 thinking.
FYI: As I had stated earlier in my question I have installed MySQL_Workbench in my system. But i have disabled its services to run on startup. May I know is that causing problem?
Please find the image of errors as per the MySQL Errors logs
And please find this for windows application MySQL error logs
My last question is: can't we have both MySQL_Workbench & Wamp together?
after you installed vcredist_x64/86.exe ,
you need to reinstall the wampserver. because the instalation of mysql services are not completed without vcredist_x64/86.exe and runtime
Your first image, I assume is the result of running
wampmanager -> Apache -> Test port 80
This tests the port that Apache should be using i.e. port 80. It should report
Your port 80 is not actually used.
But only if you have not started Apache!!! If you have started the Apache service in WAMPServer, it will of course report that port 80 is being used by Apache 2.4.9 etc etc...
This looks like what you have done! So its not a problem.
One thing though You say you installed WAMPServer 64bit, but the image reports that Apache 32bit is running ??? What do you really have installed ??? Or do you have both 32bit and 64bit WAMPServer installed?
If you have installed both 32bit and 64bit I suggest that you pick one or the other. I suggest the 32bit WAMPServer as the 64bit PHP is still not a complete port and considered Experimental until PHP7.
Now you appear to be saying already that the reason the wampmanager icon is not green is that MySQL has not started, so all the above is irrelevant. MYSQL runs on port 3306 and not 80, only one program can use a port, they cannot share ports.
So to see why MySQL has not started, look at the MySQL error log.
wampmanager -> MYSQL -> Error log
If that is empty, as it is sometimes if the error is so serious that MYSQL has not had time to open its log file before the error causes it to terminate, look at the Windows Event Log
To launch Windows Event Viewer do :
Windows Key + R to launch the run dialog
then enter eventvwr.exe and press the OK button
On the left side of the windows click 'Windows Logs -> Applications'
Look for the names 'Apache Service' or 'MySQL' in the Source column which have a error symbol in the first column.
The error messages in here are normally very descriptive and will normally lead you to a speciic line number in the my.ini file where the error exists. Alternatively, they will idedntify what the issue is.
Reply to additional info
Your MySQL error log is basically saying that it cannot start MYSQL as something is already listening on port 3306 (3306 is the default MYSQL port). Almost definitely the MySQL Server that you installed with the Workbench.
I see the installer for "MYSQL Workbench" has changed since I installed "MYSQL Workbench". I expect you chose to install MYSQL Workbench and a MySQL Server. As you have MYSQL Server installed with WAMPServer, can I suggest that you uninstall "MYSQL Workbench" or at least the "MYSQL Server" that came with workbench. This should stop the other MYSQL Server from getting port 3306 before the MYSQL Server installed with WAMPServer.
Remember to backup any databases that you may have created before uninstalling.
You can then install "MYSQL Workbench" again after WAMPServer starts working and this time dont install another instance of MYSQL Server.

WAMP Server V 2.5 icon is orange,does not respond and no menu

I have Windows 7 32 bit and wanted to work on wordpress to host my own page but to do that I got virtual server WAMP Server V 2.5 and after installing it, icon in taskbar was orange and after right and left clicking, there was no menu.
I read many forums, disabled IIS and restarted and nothing. Also uninstalled, deleted directory on c:, installed again but same result, no menu, orange icon. I'm not a tech expert, so pls 'customize' your answers keeping this in mind. I have no idea how to check logs etc So pls let me know.
Much obliged.
Forgot to mention that hovering mouse over icon it says, 1 of 2 services running-server offline. I typed localhost and an IIS image showed up. So, after disabling IIS and restarting, my WAMP icon has disappeared altogether. So I enabled IIS again but the IIS does not check altogether as its 'shaded' (the FTP option is unchecked). After this I restarted and the WAMP icon did'nt show again. This happened yesterday and I reinstalled WAMP as I did now but still nothing. Also inside the WAMP folder, there is no apache folder nor is there any menu display from the WAMP icon on taskbar as mentioned above. Which other way is there to find out about the port my WAMP is using. And I dont have Skype.
I use this way to solve my problem.
Click Wampserver icon -> Apache -> Service Administration -> Install Service -> click on wampserver icon again -> Apache -> Service Administration -> Start/Resume Service.
Done: https://www.youtube.com/watch?v=75FFNArSPvU
I had also that problem, there might be another program running on the same ports, I know skype can be difficult to run with wamp and xammp servers.
Check out if something else is running on same ports and turn skype off = the fix :))
edit: netstat -a -b will show all listening ports and the executable name
If you prefer a graphical version, Microsoft's TCPView will show you the same information, updating in real-time.
http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx
if you have other programmes running on the same ports you will have to change the ports of your virtual server.
I faced the same problem when running the wampserver. The icon was orange (server offline).
Please find the steps I followed to get them working.
Uninstalled IIS to let apache use port 80 (DIDN'T FIX THE PROBLEM)
I changed the apache port from 80 to 8080 in httpd.conf restarting the services and it worked the icon turned green. (FIXED THE PROBLEM)
FIX without changing the port in httpd.conf
Wanted to find which service/application was using the port 80
run your command line as administrator and type
netstat -ab
Displays protocol statistics and current TCP/IP network connections.
Results showed port 80 being used
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING [Can not obtain ownership information]
googling the msg helped me find the service "Web Deployment Agent Service" that was using the port. stopped the service. Updated the httpd.conf to use port 80 again.
Edit : After stopping the service, set its startup type to "Manual" to avoid the problem from reoccurring
Look here for more details : http://benohead.com/windows-port-80-already-use/
Note: I found the "Web Deployment Agent Service" from "administrative tools >> services" (It wasn't listed in taskmanager/services).
Restarted the wampserver and It worked, apache now uses port 80.
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING [httpd.exe]
Did you try switching MySQL ports? If you have another version of mySQL already installed outside of WAMP - you could run into the same problem..
When I tested port 3306 (default sql port) it told me it was being used by 'mysqld.exe' (but not 'wampmysqld64.exe' - WAMP's mysql) which was from a different version of MySQL I had previously installed on the machine and since forgot about.
If the wampmanager menu is not appearing, it sounds like you are missing one or more of the required MSVC Runtime libraries on your system.
There are a number that WampManager/Apache/MySQL/PHP require but as WAMPServer can install Apache versions back as far as Apache 2.22 and PHP version back to PHP5.3.5 it is simpler to make sure you have a complete set.
Please make sure you have the latest version of all of these Microsoft C/C++ Redistributable runtime libraries. You dont need the whole compiler, just these C/C++ runtime libraries.
FOR WAMPServer 32bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
If you are using WampServer 2.4 or 2.5 32bit and therefore Apache 2.4.x
Microsoft Visual C++ 2012 is required And select vcredist_x86.exe
Later versions may also require
Microsoft Visual C++ 2014 and select vcredist_x86.exe
Visual C++ Redistributable Packages for Visual Studio 2015 Update 3 and select vcredist_x86.exe
FOR WAMPServer 64bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Yes you need the x86 Package regardless as
wampmanager is a 32bit exe even on a 64 bit install
Microsoft Visual C++ 2008 Redistributable Package (x64)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
If you are using WampServer 2.4 64bit
Microsoft Visual C++ 2012 SP1 Redistributable Package And select vcredist_x64.exe
Later versions may also require
Microsoft Visual C++ 2014 and select vcredist_x86.exe
Visual C++ Redistributable Packages for Visual Studio 2015 Update 3 and select vcredist_x64.exe
BIG NOTE
The names of these runtime installs are almosts all called vcredist_x86.exe !!! So download and install them one at a time or you will get very confused.
Once they are installed your 'Programs and Features' should look something like this :-
32bit systems
64bit systems
Have you tried running it on another port? Just changed the port of your wamp server and try again. Google out how to change the port of wamp server etc..
Sometimes there's a service running on the port which is needed by the sql server or apache.
Copy this string and save in a .bat file:
FOR /F "usebackq tokens=5" %%i IN (`netstat -aon ^| find "3306"`) DO taskkill /F /PID %%i
change 'find "3306"' in the port number which needs to be free.
Then run the file as admin. It will kill all the processes running on this port
I had the orange status issue too. Apparently the Apache server that was already running from the previous launch did not terminate properly. Hence I had to kill that through the task manager to get the WAMP server running again.
My Apache service was reporting a fatal error on startup which could be found in the Event Viewer's Windows Logs -> Application. You can find your particular error from the event logs as well, if the checklist of common fixes (like closing Skype) doesn't solve it. My specific error was a syntax error on an alias file I wrote.
I have finally fixed it!!!
If you have installed another mysql server for visual studio or netbeans it will use port: 3306;
But for Wampsever 3 all you have to do is to right click the wamp ORANGE icon then under mysql group click test another port;
it will show you a dialog with port: 3307;
then press OK. Thats it; then the icon will turn GREEN;
Don't forget to say
cout <<"YESSS!" << endl;
I had this same problem, and it ended up being a port conflict.
I opened up task manager, and a Microsoft SQL process was running.
After ending that process and restarting WAMP everything worked fine.
1 of 2 services running.....
Check the directory of your Wamp installation.....Make Sure it is C....it resolves my problem.
I uninstalled previous older version of wamp, and installed both services and started and works.

After I install Wampserver2, while opening phpmyadmin i got error Firefox can't establish a connection to the server at localhost

After I install Wampserver2,
while opening phpmyadmin i got error "Unable to connect
Firefox can't establish a connection to the server at localhost.
The site could be temporarily unavailable or too busy. Try again in a few
moments.
If you are unable to load any pages, check your computer's network
connection.
If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
Apache > Service > Test port 80 : Your port 80 is not actually used.
also tried Apache > Service > install service : But Apache > Service > Start/resume
service is still disabled.
C:\WINDOWS\system32\drivers\etc\host file has the statement 127.0.0.1 localhost
Please make sure you have the latest version of both of these Microsoft C++ Redistributable runtime libraries.
The 2008 Redist is used by wampmanager
The 2010 Redist is used by Apache
FOR WAMP 32bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
FOR WAMP 64bit
Microsoft Visual C++ 2008 Redistributable Package (x64)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
Make sure no other program conflict Wamp such as IIS, Microsoft Web Deploy, SQL, Skype, Zonealarm, firewall/antivirus, NOD32, Eset, any web related program including Remote Desktop, Teamviewer or Apache, MySQL, PHP outside wamp folder (ie. in Program Files or System32 folder) ...
IIS and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work
Disable IIS in Vista/W7:
Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services
Disable IIS in XP:
Control Panel, Add/Remove Programs, Add/Remove Windows Components, uncheck Internet Information Services (IIS)
Restart computer, then restart Wamp
Also, in folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else
127.0.0.1 localhost
If using Skype, open Skype > Tools > Options > Advanced > Connection then uncheck "use port 80..." restart Wamp then Skype
Also you can try
I went into Skype and unchecked the "Use port 80 and 443 as
alternatives for incoming connections." Then I went back into the
httpd.conf file and changed "Listen 8080" back to the original "Listen
80".
Read more

Why wamp server is running on my computer?

I have first all install the Visual studio 2008 on my computer and after that wamp server. I was try to start wamp server but it can start it shows error. please help me what can i do?
Since your IIS server is also running on port 80 and wamp server also tries to run on port 80, your wamp server won't start. Change the port of the wamp server in Apache httpd.conf file to some different port and try starting the wamp server.
See the installation guide on wamp's website. Or try using the ECWamp instead of wamp.

Categories