Ubuntu Servers :: Apache2: Localhost Responds Only When Connected To Internet?

May 12, 2010

I am on Ubuntu 10.04 LTS. Installed LAMP yesterday using:

Code:
sudo tasksel install lamp-server
Tested Apache, PHP, MySQL then, all worked fine.

[code]....

View 1 Replies


ADVERTISEMENT

Ubuntu :: Apache2 Localhost Not Available When No Internet Connection

Jun 12, 2010

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.

View 5 Replies View Related

Ubuntu Servers :: Firefox Can't Open Php File From Apache2 On Localhost

Mar 31, 2010

I've just moved on to 10.04 from 9.10. The program worked fine in 9.10. I *may* have overwritteen a conf file in the upgrade...

I now get the error as below:

My userdir.conf is like this:

<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>

[Code]....

and I have the PHP5 module installed. I vaguely recall that I may have had PHP4 installed - would the upgrade have removed it? Is there anywhere I can get it from to try? Anything else to do?

View 9 Replies View Related

Ubuntu Servers :: Apache From Localhost Can't Reach Internet / Resolve This?

Jul 11, 2011

I've installed apache2 on ubuntu 10.04 and everything works fine, but when I use functions that needs to connect to Internet, it doesn't work. Is there a simple setup I've forgot? I've been searching and looking for a solution, but I'm stuck!

View 9 Replies View Related

Fedora Servers :: Localhost Httpd Server Doesnt Have Internet Connection

Jan 5, 2010

i have installed apache and php in my fedora 11 system and httpd works fine except that it doesnt have internet connection for example rapileech doesnt work it says "cannot connect via port 80" and if i put an rss feed collector in a website it doesnt work but everything else works fine , also when i put the same file in a shared web host it works fine

View 3 Replies View Related

Ubuntu Servers :: 10.4 Needs Connected To Local Network And Internet?

Jul 2, 2010

I jsut installed 10.4 Server. I want to hook it to the network. I want to hook up through wlan0. my router is WPA and is my DHCP.

View 4 Replies View Related

Ubuntu Servers :: DHCP Connection Sharing - Connected To The Internet Via Wireless?

Dec 29, 2010

I did search, but could not find a solution.Right I've installed Ubuntu Server 10.10 on an old machine, installed fine and the system is running. I have a windows 7 desktop that is connected to the internet via wireless. The desktop then has an ethernet connection which is shared to the ubuntu server. The network looks like this.

Modem > Router > Desktop > Switch > Ubuntu Server My problem here is that there appears to be no connection from the server to the desktop. The server cannot connect to the internet.

When i ifconfig the ubuntu machine shows.eth0 link encap:Ethernetinet address: 192.168.137.2 Bcast:192.168.137.255 Mask 255.255.255.0 However on the windows desktop (the machine sharing the internet) these are the details for the connection to ubuntu server.ip 169.254.170.50 mask 255.255.255.0

is this a dhcp problem? is my server configured wrong?

View 4 Replies View Related

Software :: Apache2 Won't Connect To Localhost Or 127.0.0.1

Mar 16, 2009

1. I use a cable modem with a specific IP address & a router with port 80 forwarded to my home Linux development machine. From outside my house (e. g., from my office), I can connect no problem.

2. My home development machine is IP 192.168.1.20- if I use this address in the browser (on the home development machine) it connects. However, on the same machine, neither localhost nor 127.0.0.1 connect.

Nothing shows up in the regular log (even with logging set to "debug"), but this shows up in the error log for both localhost and 127.0.0.1:

Quote:

[Mon Mar 16 19:05:28 2009] [error] [client 127.0.0.1] File does not exist: /htdocs

This is particularly odd, since I have NO reference to htdocs in any of my configuration files. I have grep'd all over the place, and the only reference that shows up is in the apache2 binary. When I do 192.168.1.20, I get this in the error log:

Quote:

[Mon Mar 16 19:10:24 2009] [error] [client 192.168.1.20] File does not exist: /var/www/localhost/scripts, referer: http://192.168.1.20/

Which should be OK, because in this initial, very immature test environment, I don't have the /scripts directory defined; I don't think it has anything to do with my problem. I get the web page. My sites-enabled/000-default (appropriately linked per convention to a file in sites-available) has been completely stripped down. I have exactly the same situation with the default sites-* file. Here's the minimal version:

Code:

NameVirtualHost *
<VirtualHost *>
ServerName localhost
DocumentRoot /var/www/localhost

[code]....

View 14 Replies View Related

Ubuntu Networking :: Apache2 And Localhost - Network Manager Kept On Messing Around And Disconnecting

Mar 14, 2010

a while ago, Network manager kept on messing around and disconnecting me etc. I attempted to setup a static network (wired) and since then, everything worked fine. I also have apache running and have had no problems with that. I know there were some apache auto updates this week but I have been doing no dev work. I went to check out one of my local sites to do some work yesterday and there was just nothing happening.

I checked everything with apache, it is all running etc. I have stripped back the conf files to be clean and fresh and netstat is showing apache as listening on 127.0.0.1:80 as it should for a single default site that I have on there now. BUT if I try to ping localhost by name or by 127.0.0.1 I am getting "Destination Port Unreachable" Since I have been trying to fix this, I have been trawling the internet to try and clean up my network setup from scratch (I have also had problems with https sites that has turned up to be the MTU setting on my eth0 interface) but to be honest I am not sure exactly what should be set between ifconfig, route, netstat and apache. should I be able to ping localhost independantly of running apache2 (i.e if it is stopped) or would a successful ping rely on apache working correctly.

View 6 Replies View Related

Ubuntu Networking :: Can't Ping Localhost When Not Connected To Network

Jul 8, 2010

I'm having trouble pinging localhost, specifically, pinging localhost when I'm not connected to a network. When I try it keeps telling me the operation is not permitted:

Code:

matt@mubuntu:~$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

if I connect to the network, start pinging then disconnect it continues pinging. Google seems to think it could be something to do with my iptables setup:

Code:

matt@mubuntu:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

[code]....

When not connected to network

Code:

matt@mubuntu:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

But as far as I can tell there isn't anything in there which would stop me connecting to the localhost (I also can't connect to my local apache instance when offline)... (It's worth mentioning that a couple of weeks ago I had the pc setup to share it's internet connection with a laptop, ala this guide, however I've since disabled the iptables rules and disabled ip forwarding.)

View 4 Replies View Related

OpenSUSE Network :: Connected To Internet And Also Connected Pcs Might Want To Use Internet?

Aug 21, 2010

I want to set a up a network of inter connected pcs, for example on pc A linux is installed.now pcs B, C , D, etc should connect to A and do there work, for example A want to do C/C++, development, whereas B wants to do some PERL development or whatever, this is just an example, 2 different pc users might do same work also, and the connecting pcs may have Windows or linux or bsd.OSes now what h/w or s/w is required and what steps are required to set up this network, main pc would be connected to internet and also connected pcs might want to use internet also..have installed opensuse edulife , and use this as PC A for testing.. and I use bridged dsl Broadband connection to connect to internet , by the username and password provided by the ISP, in windows its easy to setup this connection, however not able to do on linux,

View 9 Replies View Related

Ubuntu Networking :: Internet Connection - Run Playonlinux It Says You Do Not Seem To Be Connected To The Internet

May 1, 2011

I seem to have is trying to get the internet to work. I can go to ..... ect but when I try to run playonlinux it says you do not seem to be connected to the internet, please post if you have anything useful, as I said I am very new to linux so be as detailed as possible.

View 4 Replies View Related

General :: PCLinux 2009 Booting Ends At "localhost Login:" When Connected To A 2nd PC?

Jul 3, 2011

I have a serial ATA hard drive which was installed into a external enclosure and several Linux installed from 2008-09 when connected by eSATA to a 06 Gateway. I then removed that drive and connected it in a different computer to test that PC due to a hard drive failure. So then at the grub boot menu I did select PCLinux 2009 which then ends at "localhost login:".

This 2nd PC is a 2008 ZT 7263Xi-40 and has fairly different type of hardware components which is likely why the run level 5 or graphical login did not complete. Is localhost login: the run level 3 text mode type login then ? But when I did try to enter my user name and wait for a password request, it failed to login in, ( it said login timeout expired ), and some times when I type my user then hit enter, then it does not ask for my password, just times out.

View 4 Replies View Related

Ubuntu :: Localhost Not Working With No Internet Access?

Aug 18, 2010

I recently installed Ubuntu (normal version) on to my netbook (Samsung N140) and I'm sharing my wireless connection over ethernet to my desktop using the method outlined in the Ubuntu wiki on ICS.

However, I do Ruby on Rails development, so run a local server on the netbook. I found out yesterday while working remotely that I cannot access 'localhost:3000' while I have no internet connection, and I get an error about 'sendmsg: operation not permitted' if I try to ping localhost. Likewise, I cannot access 127.0.0.1 the same way.

View 3 Replies View Related

Server :: Exchanging Data Between Internet And Localhost

Jun 5, 2011

I have an Apache 2 server setup in Ubuntu 10.04 LTS on my lab computer. The server listens on port 80, by default. I also have another process listening on port 4000 - this is a special server that executes some Matlab and other application scripts. However, due to university policy (or some licensing/faculty regulation - not really sure), this port 4000 has been set as one that listens only to the localhost. Now, we need to allow a few of the scripts to be run by people remotely.

We tried to setup a web interface - they enter a few values into a HTML form and submit. This form has action="URl... (basically, we were hoping the external form turns data over to the internal form), thereby keeping everyone happy. However, it turns out that this didn't work - the server on port 4000 realizes that the request isn't internal.

What would be the best way of handling it? While we did consider port forwarding, we didn't want everything to be accessible from the internet - i.e. we wanted a tightly controlled interface when accessed from outside, but if someone writes a program on localhost, we want everything to go through as normal (i.e. the current setup). Is there a way to do this without duplication (i.e. setup a new port 5000, that has only the components we want the external users to access)?

View 2 Replies View Related

Ubuntu Servers :: Telnet Localhost 110 Says Trying ::1?

Aug 14, 2010

I am trying to set up postfix on my ubuntu server.When I try to login to the pop accounts through telnet

Code:
user@ubuntu1:/$ telnet localhost 110
Trying ::1...

[code]....

View 3 Replies View Related

Ubuntu Servers :: PHP IRC Bot, Not Connecting To Localhost?

Jun 3, 2011

For some rather odd reason, my IRC bot wont connect to the local irc server, but it will connect to IRC.FREENODE.NET, I have no idea why...

PHP Code:
<?php/** PHPIRC Class Simple IRC Bot * * @author Ferdinand E. Silva 

[code]...

View 1 Replies View Related

Ubuntu Servers :: Bind Phpmyadmin To Localhost Only?

Mar 18, 2010

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.

View 2 Replies View Related

Ubuntu Servers :: No Frontpage Is Displayed At Localhost?

Sep 6, 2010

Instead of XAMPP or LAMP, I installed a local web server to my Ubuntu 10.04. Apache and phpmyadmin works well.

I copied the files of my Joomla website to /var/www folder. When I go to administrator panel, it works. But when I type in the browser "http://localhost/[folder_name], a blank page appears and nothing else.

View 2 Replies View Related

Ubuntu Servers :: Why Can't Get Netcat To Work Even On Localhost

Oct 22, 2010

OK here's what I'm doing:

On terminal 1, I enter:

$ nc6 -vlp 5000
nc6: listening on 0.0.0.0 5000 ...

On terminal 2, I enter:

$ nc6 -v localhost 5000
nc6: ygt-asfandq (127.0.0.1) 5000 [5000] open

Now, as SOON as I make the connection on terminal 2, both netcats immediately quit back to the command prompt. The return code for both is 0.

I do not have ANYTHING in my firewall (I checked with sudo iptables -v -L)

I have attached a wireshark trace of the conversation..

View 2 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Apache2 - 98 - Address Already In Use

Aug 29, 2010

I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.

Code:

I get the following error.

Code:

To correct the problem I do this.

Code:

From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.

Code:

Next, when I run this command.

Code:

The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.

Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.

Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.

View 5 Replies View Related

Ubuntu Servers :: Apache2: Php Not Parsing

Oct 18, 2010

I've reinstalled my system and installed apache. I've installed php5. 'a2enmod php5' returns with a message telling me that php5 is already enabled.

However, this code does not parse:

Code:
</php
phpinfo() ;
/>

I get a blank page. When I view the source code for the page, I see the php code.

How do I get php to work?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Removed Apache2 But It's Still There?

Mar 8, 2011

I'm very baffled by this, I was setting up my mumble server since my old one had a hard disk failure. I was messing around with web registration but decided I didn't want it since this server is really only for a few friends.

So I removed all the mumble-django and apache2 packages required for web registration, but for some reason apache2 is still on my system and listening for connections.

terminal output below to further clarify.

Code:
Linux voiceserv 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Apache2 Not Accessible From LAN

Apr 1, 2011

I have a problem with apache server. The thing is - I can connect to my server on localhost, but when I try to connect from local network, it doesn't reply.

I can ping my web server from lan. I can ssh my web server from lan.

I haven't modified iptables since install except these commands>

Code:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d $MY_SERVER_IP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s $MY_SERVER_IP --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Cant Uninstall Apache2?

Apr 9, 2011

So i want to remove Apache2 so i can compile my own edited version. But when i do it says that it cant remove it. here is a 'log':

Code:
geisst@ubuntu:~$ sudo apt-get purge apache2
Reading package lists... Done

[code]....

View 5 Replies View Related

Ubuntu :: Can't Get Connected To The Internet

Aug 10, 2010

I've installed Ubuntu server edition 10.4 to one of my older computers and When I go to install something I get the error message Package could not be found. I'm assuming it's not connected to the internet. It doesn't Show up on my router. I'm trying to install Ubuntu-desktop using the code "sudo apt-get install ubuntu-desktop.

View 8 Replies View Related

Ubuntu Servers :: Mysql Only Allowing Connections From Localhost

May 11, 2010

Howcome mysql by default is only allowing connections from localhost? I want to access it remotely from another account (not root).

View 1 Replies View Related

Ubuntu Servers :: Firefox Can't Connect To Localhost But Chromium Can

Jul 28, 2010

After spending what seems like an eternity trying to learn how to host a couple of webpages on my laptop for no better reason than to practice creating them without paying for a server. .for the time being, I kept getting the usual errors (stuff I have seen lots of tutorials on) and this time kept getting

"The connection was refused when attempting to contact localhost"

Just by random chance I happened to open up Chromium for one of my attempts and low and behold, I get the much awaited

Quote:

It works! This is the default web page for this server.The web server software is running but no content has been added, yet. I can even login to phpMyAdmin from Chromium. So what's going on with Firefox? Doesn't work in Seamonkey either. Using 10.04

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved