I am running ubuntu stack on nitrous.io cloud platform.
I want to run php files on it and install apache2 server on it also.
But I am unable to run localhost on it;
It giving error of "port not specified" when I am taking preview of it, on port 3000.
Please help me out regarding this.
I am following this tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04
apache default port is 80
configure port
change the local host to 0.0.0.0 instead 127.0.0.1
This will solve the problem
[![enter configure the port ][2]2
Related
I have followed amazon tutorial to install Apache2, mysql and php on ubuntu Ec2 and when tried to access phpmyadmin its not working.
Initially some other process was using port :80 so i was not able restart apache and then i have changed Listen:80 to Listen 8080 . Now apache working fine, but still no hope on phpmyadmin
Pls check attached screenshot:
Recently, I installed xampp 5.6.3 successfully. For this, I turned my UAC off and uninstalled my antivirus, but now it's not working. From control panel, I started Apache, MySQL and filezilla. For my Skype I changed the port of Apache from 443 to 4433. And now it's running.But whenever I got to browser and go to http://localhost it shows a blank page with nothing.So please help me.It is hampering in learning PHP. I will be really thankful.
Thanks.
If you changed the Apache port from 443 to 4433, then you need to change your URL accordingly:
http://localhost:4433
Note: you can use netstat from a command prompt to see if the port is running.
netstat -a | find "4433"
http://technet.microsoft.com/en-us/library/bb490947.aspx
I am trying to connect to localhost and I am getting the following error on the browsers (chrome and ff and safari)
Browsers connection attempt to localhost was rejected.
i tried
telnet 127.0.0.1
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
and
Barry$ / : curl localhost
curl: (7) Failed to connect to localhost port 80: Connection refused
the httpd.conf is set to LISTEN : 80
However I can connect using thin on localhost:3000 for a rails project
I've looked at other similar Q's and answers but cannot find a fix.
Check your Apache config with this command:
sudo apachectl -t
This tests the config files and tells you if there's an error. Running sudo apachectl start does not output config file syntax errors to the logs for some reason.
Do u have skype or pow installed ?
I just wanted to post my solution to getting localhost working again.
I used the following process to reinstall apache and update the ports.
It worked for me so I hope it can help someone else.
I do mention at the bottom that im still getting an unfound url error, so if anyone can help, that would be great.
RE-BUILDING APACHE
port search apache2
Warning: port definitions are more than two weeks old, consider using selfupdate
sudo port uninstall apache2
sudo port -v selfupdate
Ensure that Xcode command line tools are installed or else you get a warning:
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build.
xcode-select —install
sudo port upgrade outdated
sudo port search apache2
then i did a reinstall of apache2
sudo port install apache2
sudo port load apache2
This got Localhost back up and running on port 80 for me however I'm not out of the woods yet.
when i go to my dev sites using
localhost/~barrymcmahon/
im getting the following error
Not Found
The requested URL /~barrymcmahon/php_5_advanced/ was not found on this server.
I want to edit a website hosted on Ubuntu 12.04 Server from Windows 8.1 through NetBeans 7.3.1 using SSH
I tried this but getting this error.
I can successfully SSH to that Ubuntu machine through other PCs.
This issue is not related to NetBeans. Host Name ubuntu provided is not a valid hostname.
Try running this command on Command Prompt (cmd):
ping ubuntu
It will most likely return with this error message:
Ping request could not find host ubuntu. Please check the name and try again.
It works on other PCs you mentioned in the question because:
They have the host in their hosts file (C:\Windows\System32\drivers\etc\hosts). E.g:
192.168.0.16 ubuntu
They are using different DNS servers
You can get the IP address of the Ubuntu machine by logging into it and getting the IP address from the response of the following command:
ifconfig
You can update your hosts file using the IP.
I was trying to install XAMPP on my windows machine and while it is installing it says installing Apache server failed because port 80 and 443 are already in use.
Since Skype is also using this port, i have uninstalled Skype and started re-installing XAMPP server.
But still after uninstalling Skype i get the same error message when XAMPP server is installing. Could someone has faced this issue before share your ideas with me
Thanks in advance for any help
At a command prompt type
netstat -a -n -o
to see which process is using the ports.
It's probably IIS if you've got that installed.
One way to fix it is to specify non-standard ports for XAMPP to use, such as 8080 and 8443.
Have You IIS Service running?
just check that IIS Service, when it running just stop it, you can stop it from Computer managment > Services