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
ADVERTISEMENT
Jul 5, 2011
I am following this howto to install Apache, MySQL, and PHP5:
[URL]
I have just installed Apache and I am pointing my browser to:
http://192.168.0.100
but I am getting the error message that the server is taking too long to respond.
View 1 Replies
View Related
Nov 2, 2009
Recently my home PC crashed and I had to re-installed it. I put a "clean" install of Fedora11, then copied my /home directory and some other stuff over from the old installation.I have a couple of PHP scripts I wrote, and one of them stopped working. It uses cURL, and when I enable error tracking I get:cURL error number:6cURL errorouldn't resolve host 'www.host.com'I started digging around and I found out Apache doesn't resolve anything at all, so it's not only a cURL problem. For example,
$ip = gethostbyname('host.com');
echo $ip; die();
returns "host.com" and not an IP address.My best guess so far is that Apache has no access to the DNS service (from command line and in browsers everything resolves). had a suspicion it's a SElinux issue and disabled it, but that didn't change anything.I found some old forum posts mentioning problems with chroot-ed Apache, but I haven't done anything to mine and in any case couldn't figure out what the problem was, or the solution, so I'm stuck.
View 7 Replies
View Related
May 27, 2010
This is a RHEL 5.4 install. I did a fairly routine install setting up a static IP address of 10.5.96.10, a subnet mask of 255.255.254.0, and a gateway of 10.5.96.1 with the standard DNS setup for this network. These are all standard network setting for this network and otherwise work fine on other systems. The IP, gateway, and subnetmask all appear correctly on all relevant configuration files. This server can not ping any other system on the network and can not ping its default gateway. No other systems can ping this one either. Also this system can not ping "localhost" or its own hostname. The hosts file contains the line:
[code]...
I can ping 127.0.0.1 and 10.5.96.10 and it works fine. Also the firewall is disabled. I know I probably can't get a straight forward fix with the information I have on hand right now, I'm more of a Debian guy, so there might be some Red Hat intricacies I'm not familiar with. I think I had a CentOS install some months back that had this issue and I don't remember how I fixed it, or if I even did. I might have just replaced it with Debian. That's unfortunately not an option this time around since it's not my box.
View 4 Replies
View Related
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
View Related
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
May 31, 2010
I am planning on installing an Apache server today. I know how to get it to point to addresses like "localhost" or my outside ip, but how do I get it to point to a URL like [URL]? (That's just an example URL)
View 4 Replies
View Related
May 4, 2010
I set up a mail server today. Everything works except I can't access the damn squirrelmail web interface from the internet.
I followed this guide here: [URL]
I can access http://192.168.0.50/squirrelmail just fine from a computer on my local network.
*BUT*
When I access http://mywanip/squirrelmail, i get a connection timeout.
When I access http://mywanip, I get the standard Apache "IT WORKS!" Page. (Rules out port forwarding)
According to the guide, that should allow me to access squirrelmail from the internet on my server. Its as if Squirrelmail is only available on my local interface and not on my wan interface? How do I check?
View 5 Replies
View Related
Mar 15, 2011
I know what I need to do I just cant seem to achieve it and that is correctly setup a DNS server that works over the internet, I'm using BIND9 with webmin. I have Fedora 14 - Apache is install its all working locally, so this final step I just can't grasp to be honest.
View 14 Replies
View Related
Feb 9, 2010
We installed CentOS 5 at our school and are attempting to get 2 simple DNS servers online. These are simple name resolution servers for our network. We installed the needed caching nameserver packages via Yum and all seems to be well, but for some reason when the server is online, it fails to resolve DNS records except when we direct the requests to its 127.0.0.1 (localhost) interface. As for the server specs, the DNS server is running on a Virtual Machine, and the ESXi server has 2 quad-core Xeon CPU's with 48 Gigs of RAM (in short.. hardware is adequate.)
Here's more details:
When the box boots up, we can confirm that the named service is running and it resolves DNS records when we direct queries to its localhost address:
[root@ns1 ~]# dig hotbot.com @localhost
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> hotbot.com @localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55510
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 0 .....
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> hotbot.com @66.186.176.2
;; global options: printcmd
;; connection timed out; no servers could be reached
What would cause the Named service to not answer DNS queries from the physical IP but only from it's internal IP?
View 1 Replies
View Related
Aug 2, 2011
I used my computer this morning before leaving for the office, but when I returned this evening, I am unable to reach the internet. Also the light on the mobo where the ethernet cable is plugged in is steady yellow.
My limited experience would tell me it is a hardware failure, but it seems so strange with nothing happening during the day. How might I best diagnose the problem from within Ubuntu (10.04)?
View 4 Replies
View Related
Dec 23, 2010
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)
View 2 Replies
View Related
Feb 12, 2010
I have a Windows XP virtual machine under Virtualbox PUEL 3.1.2. I have always been able to browse the Web or do anything else I wanted over the network.
Suddenly, the guest XP machine can't reach the Internet any more. There is no indication of any problem with the network connection. I checked my router, and the virtual machine is indeed getting assigned an IP address. So why can't it reach the internet?
Yes, the virtual network adapter is in bridged mode. It always worked that way before. I can see local network shares from the virtual XP machine, and even reach the Apache server running on the host OS (Ubuntu 9.10 64-bit).
Also possibly significant: Even though the virtual XP machine is detected by the router & assigned an IP address, the printer attached to the virtual XP machine cannot be seen by another Windows machine (a real one, not virtual) on the network. I never had a problem sharing the printer before. I have to share it from a virtual Windows XP machine when I'm running Ubuntu because there are no Linux drivers available (it's a Winprinter).
View 2 Replies
View Related
Feb 27, 2011
I use Fed 14. I have China Telecom internet. The wired dsl connection works fine, but the wireless won't work. It has WPA security. The password taken from beneath the router is n2nqrcqx. This password is accepted. Network Manager says I am connected to ChinaNet-TRtk, but in fact, I can't reach the internet via wireless. If I disconnect the cable, I can't get through. I have the settings on automatic dhcp. I have nothing in BSSID, I don't know what that is. I unchecked the box 'require ipv4 addressing for this connection to complete' Ditto that for ipv6.
View 2 Replies
View Related
Mar 4, 2010
I recently upgraded my HP DV7 to 11.2. I did the install with wired network connection, my WiFi is always on as well. Install went fine, ran updates via YAST. I am running KNetworkManager, it loaded, configured eth0 and wlan0, prompted me for WEP keys and showed both connections working OK. I later found that when eth0 was disconnected, wlan0 was still connected but I could not reach internet sites. My router address was set as the gateway address and the DNS server address. Following several items on the forum, I tried 'dig' and 'route' commands.
I found that
Code:
HPDV7-Linux:/etc # dig [URL]
; <<>> DiG 9.6.1-P3 <<>> [URL]
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28307
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 .....
;; Query time: 12 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Thu Mar 4 07:01:19 2010
;; MSG SIZE rcvd: 69
returned a valid URL for that server - DNS seemed to me working properly via my router.
I found that
Code:
route
returned:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 * 255.255.255.0 U 2 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
No default route showing.
I then opened the Network Manager connection editor, went to edit for the wireless connection and found under the IP_Address tab, Routes option box that both
Code:
Ignore automatically obtained routes
and Use only for resources on this connection were enabled, I believe by the install process.
Unchecking these yielded
Code:
HPDV7-Linux:/etc # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 * 255.255.255.0 U 2 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
default DD-WRT.capenet 0.0.0.0 UG 0 0 0 wlan0
and internet connectivity now working.
View 1 Replies
View Related
Jan 13, 2011
I have installed fedora 14 minimum install and I have configured my machine for Static IP but now i cant reach any external sites or repository, in fact all i can do is ssh to the box. below is the configuration in my /etc/sysconfig/network-scripts/ifcfg-eth0 file:
DEVICE="eth0"
BOOTPROTO="static"
BROADCAST="10.27.18.255"
IPADDR="10.27.18.117"
NETMASK="255.255.255.0"
[Code]....
and my DNS is setup to point to my ISP's primary and secondary DNS servers. I have brought the interface down then up after each change but still cannot ping anything.
View 4 Replies
View Related
Jun 23, 2011
I have just installed ubuntu Server with Apache2, PHP5, MySQL and PhpMyAdmin.
Everything works fine when I access the server on the LAN. I have forwarded port 80 in my router to the LAN ip of this server. (I have other windows based web servers so I am familiar with port forwarding) however when I try to access the server from the true static IP outside the LAN I cannot reach it and the connection just times out with the Ubuntu server connected if I use canyouseeme it says port 80 is closed. If I replace the Ubuntu server with another server I can reach this just fine from outside and canyouseeme says the port is open. So I am pretty darn sure the router is correct and that there is some config problem with the Ubuntu box, but I cannot find it. the ports.conf file has listen 80 in it and the apache2.conf includes the ports.conf file.
View 2 Replies
View Related
Feb 3, 2010
Suse 11.2 > updated Feb 2 using the Update UI applet.
I had internet connectivity prior to installing the updates. Now I can't reach the internet since installing the updates. I can reach my router, log in to the router I also ping the router but I can not ping the WAN side ip on the router.
When I boot into redmond, no issues, which is what I'm using as I write this.
I have security enabled, WPA2 Personal, not that I think that is an issue as I can reach the router, my server, network printers, and PC's.
I am running a Linksys router but have replaced the standard Linksys software with DD-WRT v24-sp2 build date 12/28/09 std. One note, DD-WRT does hand out IpV6 address but I have disabled FF from using IpV6 address along with the network connection configuration applet from accepting them. (I don't remember the applets name)
In the redmond world this would be a certificate error, is this the same type of an issue? If so how do I fix it?
View 9 Replies
View Related
Jan 11, 2011
I have ubuntu Linux xxxx 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 / GNU/Linux / Ubuntu 10.04 LTS installed on two identical hardware machines. SSH server work, ping work, oracle11g server works, but on one of mi servers one port of a application that develp here can be reach, the port is 2809 (corba). If i do telnet xxx 2809 on the machine, port is responding, but if i do the same in any machine in LAN, dont respond. This only happend on one server!!! the other just work fine I have all firewall disabled!!
Code:
root@xxx:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
[code]....
View 5 Replies
View Related
Mar 29, 2009
I have installed apache. The problem is that localhost works but not the ip for viewing my hosted sites.
How can i rectify this error?
View 5 Replies
View Related
Nov 28, 2010
I have Apache2 running on my server and can serve up pages on that box, but cannot seem to access them from other PCs on the network.
View 1 Replies
View Related
Sep 21, 2010
I have set up my guest OS in VirtualBox so that it has a static ip and is using a bridged adapter. As a result, I can see the webserver that's hosted in guest from my host OS's web browser. However, for some reason my current setup does not allow my guest to reach the internet. What settings do I need to enable both?
View 1 Replies
View Related
Jun 28, 2011
I have installed VirtualBox on a MacBook and installed RHEL6 on a guest server ("Orion") in VirtualBox. I am trying to follow the tutorial at xenocafe on Apache Web Server Tutorial for Linux. I've checked a few other websites for port forwarding, and have used VBoxManage to set
Apache/GuestPort" 80
Apache/HostPort" 8888
Apache/Protocol" TCP
[code]...
I am able to ssh into the Virtual Box guest server using:
$ ssh -l rmt1 -p 2222 localhost
I believe this means that the port forwarding works. I am able to start and stop httpd on the guest with no warnings. I retired a problem with DocumentRoot by setting SELinus to disabled. My trouble is that: When I bring up a browser on the host and try localhost 8888 and expect to see my sample html page housed on the guest server (located under root / www), what I get is a spinning wheel.
And when I bring up a browser on the guest and try localhost 80 and expect to see the sample page I made, what I get is the well-known Apache test page. I am stuck in knowing (1) how to cause port 80 output from the guest to be interpreted by the host browser searching port 8888 (Or, Why does ssh into the guest work but http out of the guest not work), and, (2) how to arbitrarily determine the location of what the very first webpage is that will be loaded.
View 2 Replies
View Related
Oct 7, 2009
I'm running wordpress and have gone to the painstaking effort of setting up the ftp server on my 5.3 machine so it can do its own updates and download plugins. However, I've found that if I try to download anything, I get a "unable to resolve host..." error from the script. If I watch Iptraf while making the request, I see all the port 53 requests going to 127.0.0.1. Pings are too.
However, if I ssh in, I can ping and wget and whatever I want all day long and all the DNS requests to go the router (Clarkconnect 3.2 gateway machine). The web browser in the terminal works fine too. What is it about the php scripts that is causing them to misdirect pings and dns requests? I've never seen anything like it and can't find anything on the web about it either.
[Code]....
View 2 Replies
View Related
Dec 27, 2010
I have setup a Linux Centos with apache server on it in a home network. Everything works fine. When I access the webserver I put in the address bar the IP address of the server which is 192.168.0.150 and when hit enter, it prompts the page where I have to put login information. The login information is set to: username: admin@localhost.local password: *************
It takes long time for authentication go through and load the page eventhough I am accessing the site in a same home local area network with fast ethernet connection. How can I change the localhost.local to something else like maybe [URL] instead and if I have to change settings in other files as well?
View 5 Replies
View Related
Jan 30, 2010
I'm trying to give some windows users a permanent connection to a samba share behind a firewall over the public Internet. I know I can give them access with something like winscp (which they have done) but really I'd like to do it with a VPN so it seems seamless to the user. However I have no idea how to set up the server to support this and am finding the documentation a bit confusing. The samba share is on a Debian box and the firwewall is a Linksys WRT54GL.
View 1 Replies
View Related
Jan 29, 2011
i have installed apache and bind on my server and i've also registered a dynamic domain through dyndns as jan27.dyndns.biz. i am able to successfully host my own webpages using this method.
then i registered a domain name (lets call it "blah.com") through namescheap.com and have registered my nameserver to my ip address. after reconfiguring the my external zones in bind and restarted my services, i am unable to reach my webpages through the new domain name.. www.blah.com and blah.com would lead me to a opendns.com page but interestingly ns1.blah.com loads my webpages successfully.
View 8 Replies
View Related
Jan 19, 2011
I've just upgraded my laptop to Fedora 14 and installed LAMP on it for a test environment. I've followed the official instructions to install but seem to have a problem that I didn't have on F13 or Opensuse. Each time I try to access index.php on localhost I get a permission denied message and an SElinux alert. I have tried 7 different solutions on various forums and just can't view anything in a browser.
/var/www/html has been set to chmod 777
/var/www/html/index.php has also been set to chmod 777
A standard user can definitely read and write to the above files/folder. Until I commented it out the Welcome/Test page was working perfectly.
View 5 Replies
View Related
Aug 2, 2011
I used my computer this morning, but when I returned this evening, I am unable to reach the internet. Also the light on the mobo where the ethernet cable is plugged in is steady yellow.
My limited experience would tell me it is a hardware failure, but it seems so strange with nothing happening during the day. How might I best diagnose the problem?
View 8 Replies
View Related
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