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.
Related
Absolute beginner here, correct me if I've done mistakes.
I'm trying to create a login system on an apache2 server (OS: Ubuntu server 20.04 LTE) and I can access all pages from another computer(OS Win10 home) in the same WiFi-net but they won't connect to each other even though they're in the same folder. Chrome says
Not Found
The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at 192.168.0.184 Port 80
Meaning I can't switch between pages using links nor use a php-file to handle the form-input. http://ip-adress shows all the avaliable files in /var/www/html but they can't connect to each other.
Opera says above too
You need to enable mod_rewrite, To enable run the Following command:
sudo a2enmod rewrite
Then restart apache2 by the Following command :
sudo service apache2 restart
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
Hello guys is me again now I have some problems configuring LAMP
first of all i have install everything but I cant run test.php to see if php works according to ifconfig command my addr is: 192.168.1.77 So in browser when I try to run 192.168.1.77/test.php nothing happens.I follow the instructions in this video to do that. How to set up a Debian LAMP Server
Second when I try to change the password on mysql I got this error by the way I can't do anything that has to do with mysql. when I run this command apache2 -v && mysql -v && php -v
I got this error.
Server version: Apache/2.2.22 (Debian) Server built: Feb 1 2014
21:26:04 ERROR 2002 (HY000): Can't connect to local MySQL server
through socket '/var/run/mysqld/mysqld.sock' (2)
when I try to run this command /usr/bin/mysqladmin -u root password 'mypassword' i got this error.
/usr/bin/mysqladmin: connect to server at 'localhost' failed error:
'Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and
that the socket: '/var/run/mysqld/mysqld.sock' exists!
I follow this guide to LAMP, Linux Apache MySQL PHP But since I have those problems with mysql i can't finish the proper configuration. so thank you very much for any help or comments have and have a nice day.
Doing a quick search might be able to point you the right direction, did you install this?
apt-get install mysql-server
It seems to be complaining about mysqld which is the mysql-server program perhaps try this too:
service mysql start
You will see this:
[ ok ] Starting MySQL database server: mysqld ..
[info] Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
Notice how it says mysqld
If that doesn't work try this maybe:
apt-get install --reinstall mysql-server
Hopefully this helps a bit
Kali blacklists services by default using sysvinit, so if you've been rebooting it could be tripping you up:
http://docs.kali.org/policy/kali-linux-network-service-policies
I just upgraded my PHP version from 5.3 to 5.5.8
When i was trying to connect back to phpMyAdmin i got the message:
Not Found
The requested URL /phpmyadmin/ was not found on this server.
Apache/2.4.6 (Ubuntu) Server at 192.168.168.59 Port 80
What can be the problem?
I restarted to apache2 server and updated all the apps with sudo apt-get update
Try reinstall phpmyadmin and it was the simple way to do so.
Because, it maybe PHP5.5.X removed PHP/APACHE virtual host. If you know how to put it back the virtual host, you may try it. else try reinstall it
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