Ubuntu :: See Which Program Is "using" The Localhost?
May 28, 2010
I have LAMPP installed, It was working fine, until I installed something that is running a web server right now and it replace the LAMPP server port I guess.nd BTW, how can I see the system services so can I disable some of them and see what is starting with my OS? -.- (I remember a console app for that, but I cannot remember the name
I have an application which is separated to several parts (processes) communicating over TCP/IP, using a pre-defined port on localhost.Is this always safe? Can some kind of a firewall (corporate, locally installed, Windows firewall, etc) block this traffic? Or can some user settings in the OS that can block this traffic?The OSes I'm interested in are Windows (XP through 7) and Linux (Ubuntu, RHEL, SUSE)
Get the usual message of when theres network/connection problems:Unable to connect Firefox can't establish a connection to the server at localhost. I could access it a few hours ago, but now I cant Have not restarted the computer since, have not really done anything out of the ordinary either. Why is it doing that and how to solve it? I have never got this problem before.
I have a problem with showing localhost (my website is on it) on the internet, so that everyone can see it. On Windows all you have to do is:open httpd.conf change ServerName 127.0.0.1 for your own IP and it works.On Linux there is is empty httpd.conf, and configuration file apache2.conf doesn't have any address to change.It looks like, that I have to enter my IP somewhere or some of my settings are wrong:first computer (vista) second computer (ubuntu 9.10), cable net providerwhat I did:-activated DMZ, in my router settings and added Host IP Address: 192.168.1.100 -active dhcp (no changes)Windows side:in TCP/IPv4 instead of automatic ip and dns I have entered my own:
I have two machines running Ubuntu 9.1, both with Firefox 3.5 fitted, working well, apart from an error on one machine.When trying to download a Torrent I get the error "Firefox can't establish a connection at the server at localhost: 12322".The other machine is fine without this error.I have searched the Firefox files and this forum, plus a variety of sources but cannot find an answer, apart from "use the other machine".
Everytime I turn on the computer, the hostname is getting changed back to localhost.
Code: cat /etc/hosts 127.0.0.1najilelocalhost # The Following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet
[Code]....
(side note: man hosts says that the name is based off the hostname file, but that's clearly not the case here. It's being named off the /etc/hosts file. Why did we move away from /etc/hostname? It's SOO much easier)
These computers (It's more then one) were all installed with the minimal Ubuntu disk and then installed basic software such as xorg, nautilus, gdm, and openoffice.
I tend to forget stuff if I don't work with it for awhile. somehow I struggled through and figured out (with a lot of help) how to set up Ubuntu Intrepid server edition on my computer, and am serving my website from my computer. For times when the free DNS nameserver is 'closed' (often lol) I use localhost and can see/work on my site. Suddenly, when I type localhost into the address bar, I get a blank page, nothing! I'm not sure what to do....can someone please help because am going to use my website to present a class project, and was going to use localhost (bring my computer) in case the nameserver was down, I have to be able to display it.
My local server isn't displaying images or proper css for my web pages. The pages display just fine on the webserver, but locally no images show, most of the css declarations aren't there and some of the php includes won't show on the page either. It's as if it's 10% working. All the files are in the right place. I changed directory permissions and tried restarting apache but that didn't help.
if I should ask this in the server section. But since I use the desktop version of Ubuntu I will ask here. Basically my server is going on pension. Hardware is outdated and all that. Since it's main job was serving me with MySql databases with web interfaces I sommer want to shift all of that over to my desktop and run my databases on the desktop. It's only me that access it so don't see why I can't run it localhost.
My question is. The three main things I need, apache, Mysql and php, are they in the repositories in Synaptec ? If not how hard will the install and config of those three apps be on Ubuntu Desktop? (I've always used Fedora as server with everything build-in so have no experience of installing mysql, apache and php from scratch)
I'm doing development on a site, let's call it mysite.com. mysite.com and www.mysite.com works fine, but proxy.mysite.com and dev.mysite.com point to the LAMP stack running on my computer. Pinging mysite.com gives me:
Code: 64 bytes from server.myhost.com (64.64.0.102): icmp_req=1 ttl=47 time=47.4 ms Whereas dev.mysite.com gives me: Code: 64 bytes from localhost.localdomain (127.0.0.1): icmp_req=1 ttl=64 time=0.031 ms Subdomains of any other site work fine. I am absolutely baffled. What in the world could be causing this? I haven't been messing around in /etc/hosts or anything like that.
I'm in way over my head and have absolutely no idea what I am doing.I set up a lamp server earlier today on ubuntu 10.10 and I'm trying to upload files to wordpress which I installed at local host using vsftpd. I am so lost.Something about this entire process has not clicked in my head;
When i try to connect to MySQL database with MySQL Workbench using root@localhost i get following message: Failed to Connect to MySQL at localhost:3306 with user root
Access denied for user 'root'@'192.168.0.1' (using pasword: YES) which is ok, becouse 192.168.0.1 is not listed as a host from which MySQL server should accept connections.
I am a little confused, becouse i tell MySQL Workbench to connect using localhost, so server should (at least i think so) receive connection from 127.0.0.1
I think i had similar issue with PostgreSQL some time ago, but i just allowed connections from 192.168.0.1 then.
My host file is: Code: 127.0.0.1 localhost 127.0.0.1 localhost.localdomain localhost #::1 ent-pc localhost6.localdomain6 localhost6 127.0.0.1 ent-pc
I've tried untinstalling and reinstalling the package for ampache.
I still cannot get localhost/ampache to display in my browser. I can't even get localhost to display in my browser. I've tried checking around in config files to see if i have ports open for listening. (i'm a noob at all of this)
My router has the port open that i specified. on code - service apache2 start i get:
(..Address already in use: make_sock: could not bind to address 192.168.1.65:8000 no listening sockets available, shutting down
I can't find any other config files. I don't know what else to do with the amapche installation. (which included an install of mysql-server package, even tho i NEVER got a prompt to enter in root passwd for the mysql db.)
i re-installed ubuntu 11.04 two days ago, to join 2 partitons into 1,anyway i then setup vnc and ssh as normal but now it just times out on both when trying to connect is there a firewall or something in place by default?ports show as open when scanning my external isp address, ubuntu box is in the dmz so no need for ports being forwarded.i also cannot connect via localhost, the above testing i could not connect from my worki can also netcat to my external ip via ssh/vnc ports and read the banners fine?
I've just reinstalled XAMPP in my machine. Now, I can't get phpmyadmin to work. Before this was okay. But since I lost its password I need to reinstall it again. Now I got it reinstalled, another problem occured. When I enter localhost/phpmyadmin in my browser, it tells me to open the file with a program which is obviously something must be wrong during the installation or the system is screwed. Here's the screenshot:
Another problem is I can't get Apache and MySQL to run using the XAMPP wizard. But by using shell I can get it worked, but when I see the wizard, it just says stopped. What's wrong? Although I have pressed Execute it still can't be run.
From terminal: Code: me@me-laptop:~$ sudo /opt/lampp/lampp start [sudo] password for me: Starting XAMPP for Linux 1.7.4... XAMPP: Another web server daemon is already running. XAMPP: Another MySQL daemon is already running. XAMPP: XAMPP-ProFTPD is already running. XAMPP for Linux started.
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
I have a very strange problem.Few days ago everything was working fine.Now every site I'm developing under /var/www doesn't open at all.If i have a file /var/www/siteone/index.php, when i try to open http://localhost/siteone/index.php it's not opening. And IT USED TO OPEN few days ago.It seems that php is working: http://localhost/index.php is working.I'm using .htaccess in subfolders. I remove it for tests - nothing changed.What new i did to my Ubuntu:Installing of VMware Server 2.0.2 + Windows XP as a guest. Works fine.Strange error/warning from error.log in apache2 folder:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/apc.so' - /usr/lib/php5/20060613+lfs/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0[Sun Jan 24 18:34:02 2010] [error] [client 127.0.0.1] File does not exist: /var/www/siteone/localhostWhy this localhost appears at the end of line?I'm using linux/ubuntu for about 3 months already - i'm not confident with it.
Have basic LAMP setup on 9.10 box. I want to have a publicly accessible website AND I want to have phpmyadmin available. The only thing is I would rather not have the phpmyadmin interface available on the internet. I usually open a ssh port forwarded tunnel when I need to use phpmyadmin on this server. I want to add a directive to make phpmyadmin bind only on localhost. I have found the phpmyadmin config file in /etc/apache2/conf.d
phpmyadmin.conf -> ../../phpmyadmin/apache.conf
I have tried adding some LISTEN directives, but apache does not like my directives-- I am obviously not doing it right. I have looked for a bit on the internet and can't find out how to disable external access to a configured site in Apache.
I have a laptop with Apache, MySQL, PHP, etc, and I'm able to work on web programming on my local server while at home, connected to my network. But I would like to be able to work on the local websites when I'm not connected to any networks, both for demonstrating a site, or simply working on it.
I was surprised to find that I could not connect to localhost at all without a network connection. I tried my normal Google for a solution, but, of course, that was futile without a network.
Now, I'm at home, and of course, it works because I have wireless. I don't really want to disconnect that to figure it out, so I thought maybe some nice soul here might know how to do this. Surely it can't be hard, can it? But, it's certainly not obvious.
I am running the version 10.4. As I am learning mySQL and PHP, I installed Apache2, mySQL and PHP, as discribed in this link. The problem is I have to have any sort of Network, either LAN, WiFi or Mobile Broadband to access my localhost. When I am connected to internet, my local host works fine, without any problem, but as soon as I get disconnected from internet, localhost is not available. I have googled a lot, but could not find a solution.