I changed the httpd.conf file lines:
Listen 80 TO Listen 8012
servername localhost TO servername localhost:8012
And still it trys to start apache at port 80, but can't because a system process is using it.
EDIT
No my question is still different because I already followed those steps listed in the possible duplicate question: How to change the port number of Apache in Xampp
you need to run xampp as an Administrator. it will fix it.
Related
I have changed the port number in apache in bitnami wamp stack by following changes in httpd.conf file.
Listen 8083
ServerName localhost:8083
After changing the server is not able to access in interenet. In localhost it is showing the home page.
I have added the :8083 after the ip address.Can anyone please help on this?
You don't need ServerName localhost:8083 just ServerName localhost. In browser:
localhost:8083
Hi I have installed bitnami redmine to use agile.when ever I am writing localhost/ or 127.0.01/ it is accessing bitnami home page to link for redmine.
I want to change it so that it can be used with proper port number , for example i am thinking to give port 1234, so that localhost:1234 will be my address for it.
I have seen and tried {HOME}/apps/redmineplusagileconf/httpd-prefix , to change the access for redmine , but still not able to change the access with custome port.
Any suggestion would help me.
HTTP Port
Under the default configuration, Apache will wait for requests on port 80. Change that by editing the httpd.conf file and modifying the value specified in the Port directive. For example:
Listen 1234
ServerName localhost:1234
Also change the port in installdir/apache2/conf/bitnami/bitnami.conf in the VirtualHost directive:
<VirtualHost _default_:1234>
HTTPS Port
Apache waits for HTTPS requests on port 443. Change that by editing the installdir/apache2/conf/bitnami/bitnami.conf file and modifying the value specified in the Port directive. For example:
Listen 8443
<VirtualHost _default_:8443>
In both cases, restart the Apache server for the change to take effect:
sudo installdir/ctlscript.sh restart apache
NOTE: On Linux and OS X platforms, install the stack as the root user
to use a port number under 1024.
I'm having a problem with my XAMPP Control Panel. The Apache won't run, I tried reinstalling it and allowed the Apache and its http.exe in my firewall. And I also tired editing the port Listen and its server localhost name in the Apache(httpd.conf) like what the other sites were suggesting. ( i don't have a Skype too) help.
skype might be the issue. Tools ->connection option-> uncheck "use port 80 ...." -> save and restart Skype and try
Ahh you have installed xamppp to C:\Program Files (x86), right? Have you reinstalled xampp to C:\xampp and tried?
Click on httpd.conf
and change Listen 80 to Listen 8181, now you can access it as http://localhost:8181 and here as well ServerName localhost:8181
OR
close your skpype and start it and then start using skype.
PS: You can use 80 from skype settings as well if you want to use 80 part with apache
I am looking to create a powershell script or a batch file that can turn on IIS and 'active' php (add the proper environment variable [path will be where script is run from]). I looked around and saw things like pkgmgr, however its been depreciated, I need the script to run on computers ranging from Server 03 -> Server 12 and standard boxes like Vista -> Win10.
Which is the best way to achieve this and is there a way to have 1 script run on all boxes or do you need OS checks in the script/different scripts?
IIS and Apache should have different port.
To change the port of Apache(WAMP)
Click on WAMP icon that you can see on your tray or other shortcut icons for wamp.
Look for the Apache and open the httpd.conf or if you know where it is stored.
Find the "80" then change
Listen 80 to Listen 8080
ServerName localhost:80 to ServerName localhost:8080
Note: You can change the port which you desired as long as it will not conflict with your other port. It is more safe and common if the port is at this range.
Then click on Restart All Services.
To change the port of Apache(XAMPP)
Open file \xampp\apache\conf\httpd.conf
search following line(at 47 in default installation):
Listen 80
change the port 80 to another say 8080 as shown below:
Listen 8080
Also search following line(at 181 in default installation)
ServerName localhost:80
and change port 80 to 8080 as shown below:
ServerName localhost:8080
Open \xampp\apache\conf\extra\httpd-ssl.conf file.
search for "Listen 443" and change to "Listen 449"
search for "" and change to ""
search for "ServerName localhost:443" and change to "ServerName localhost:449"
Start the "setup_xampp.bat" and beginning the installation.
Double click on xampp_start.exe. It will start XAMPP.
Note: Do NOT close console window if it is not closed automatically. Keep it opened.
Start your browser and type http://127.0.0.1:8080 or http://localhost:8080 in the location bar. You will see XAMPP start page.
Now, you can work with both IIS and Apache servers.
We have dedicated windows server where IIS running in :80 and Wamp running in :85.
I successfully created a Virtual Host for wamp server which is running in :85.
NameVirtualHost *:85
<VirtualHost *:85>
ServerName www.my.tv
ServerAlias my.tv
DocumentRoot C:/wamp/www/alpha
ErrorLog "C:/wamp/www/alpha/logs/error.log"
CustomLog "C:/wamp/www/alpha/logs/access.log" common
</VirtualHost>
yes the above code is working & site is running only when i hit www.my.tv:85 but not in www.my.tv
can someone advice on the above where i could configure to make the site run at www.my.tv
If you configure Apache to serve your site on port 85 then the browser (which will default to port 80) won't find it unless you give it the port number it needs.
If you need to see the site on port 80 then you need to configure it on that port. Since you have another server running on that port it's not an option.
One possibility is that you create a virtual site on your IIS server for www.my.tv, but have it redirect to the site on port 85. You can do this in the properties box, on the Home Directory tab.