Ubuntu :: Can't Get Apache To Respond To Outside Requests
Sep 6, 2010
I've been scouring the message boards and trying different things for two days and haven't found a solution. I set up Ubuntu 10.04.1 a few days ago using the server iso and selected the LAMP installation option. I will be using it as a sandbox to try out things from a PHP/MySQL book I purchased.
I have installed Gnome since sometimes I just can't get the command prompt to let me do things and Gnome may at least tell me why. I also installed PHPMyadmin.
My problem is that I can work with this thing all I want in any way I want - HTTP, SSH, SFTP, etc. - from within my home network but Apache refuses to respond to an outside request. Since it's only a test box it usually wouldn't be that big of a deal but I am going out of town for a couple of days and would really like to start working with my new book.
I am 99% sure my ISP is not blocking any ports. I have a ComTrend ADSL modem with router. I have given my Apache server a static IP on the NAT (xxx.xxx.x.101) and set up a dyndns address so I don't have to keep remembering the IP address.
Here is what I have tried so far: Setup a virtual server (port forwarding) on the router to to direct traffic on port 80 to internal IP .101The router told me its interface is using 80 so it would move itself to 8080 Made sure to also add port trigger for port 80 Made sure to save/reset the router Used my iPhone to connect via 3G - didn't work using IP or dyndns name Used iPhone to connect to 8080 and router responded
Set port forwarding/triggering for 8080 -> 80. No joy there, either Tried changing listening port to 8000Set port forwarding and triggering to allow port 8000 Changed ports.conf to read NameVirtualHost *:8000 and Listen 8000 Changed first line of /etc/apache2/sites-enabled/000-default to <VirtualHost *:8000> Restarted Apache service
Apache responded to dyndns.com:8000 from home machine No response when trying same on iPhone (sorry, it's the easiest way for me to test from outside my home network)
At one point, I added "ServerName localhost" to the otherwise empty httpd.conf file but that didn't seem to do a darn thing.
Many of the posts I have perused are at least a couple of years old and have included information on taking action with files that are not there or are no longer where they were. I have interpolated where I can but so far nothing has worked.
View 1 Replies
ADVERTISEMENT
Apr 16, 2010
I recently set up a new web/file server with 9.10 server x64 with 2 NICs and I am trying to configure eth0 to respond to my LAN for internal samba filesharing and eth1 to handle website/ftp requests on my static IP, but whenever eth0 is up the server is not accessible at 173.XX.165.65 for web or ftp but both work fine at 10.1.10.100. When eth0 is down, public IP works fine. I have set /etc/network/interfaces like this:
Code:
# The primary network interface
auto eth0
iface eth0 inet static
address 10.1.10.100
[Code].....
View 1 Replies
View Related
Jul 16, 2010
Question 1: Hey. I noticed i have quite a few logs that end with .[number] for example "syslog.1" "mail.info.1" etc, why is this and why are they there since almost nothing is logged in them ??
Question 2: on my server im running a script like imagebam and imageshack with hosts images so i have quite a few apache requests to my server. I am wonder why apache takes up so much CPU for some of the requests ? in Htop some requests take up 1.2% CPU while other take up 3-5% etc, so the total load is about 1.50 0.58 0.84 to 2.61 1.08 1.14 with about 128-150 apache requests all the time while sometimes the CPU load can be almost 0 with the same ammount of requests. is this normal? what could cause this in apache ?? the server is just running apache2. MYSQL is running on another server.
View 6 Replies
View Related
Apr 29, 2010
I have Centos 5.4 installed on my server. Everything works perfect, however sometimes apache does not work properly. When I write my domain to browser it tries to reach the site, however it can't get any result. (There is no "browser couldn't find" error). The browser just tries to get the content.
When I login to my server with ssh using my domain name, there is no problem. (Named works.) When I give the "service httpd restart" command the problem disappears.I looked at httpd log files but there wasn't any problem at that time.I use the API's of the Facebook and Twitter, so there are many Curl requests are made with PHP. Could that be the reason?
View 2 Replies
View Related
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
Oct 16, 2010
my server into the public internet and must have my webserver [2.2.9 (Debian)] act secure. But this does not look very easy [I am searching, reading and working on it already the whole day ]. I read the apache docs, but there is a lot of stuff, which is different in Debian [lenny, 5.0.6]. Apache ignores the host-header given by the browser: [URL] are all served, but should be blocked. I new new to apachy, but on my IIS this works as expected. All browsers act equal [so no browser header problem].I configured two VirtualHosts, an excerpt:
NameVirtualHost hugo:80
<VirtualHost hugo:80>
DocumentRoot /usr/share/doc
[code]....
The I go to my hosts file on any box, and add hugo's ip-address under the new name x. Then, x is served, although the host-header in apache Every user coming from the internet could make the same!
View 13 Replies
View Related
Mar 7, 2011
For some of the files that I share using Apache, I want to make sure that they are served ONLY via https.
How can I configure this for Apache?
View 1 Replies
View Related
Mar 30, 2010
I noticed i have quite a few logs that end with .[number] for example "syslog.1" "mail.info.1" etc, why is this and why are they there since almost nothing is logged in them ??
Question 2: on my server im running a script like imagebam and imageshack with hosts images so i have quite a few apache requests to my server. I am wonder why apache takes up so much CPU for some of the requests? in Htop some requests take up 1.2% CPU while other take up 3-5% etc, so the total load is about 1.50 0.58 0.84 to 2.61 1.08 1.14 with about 128-150 apache requests all the time while sometimes the CPU load can be almost 0 with the same ammount of requests. is this normal? what could cause this in apache ?? the server is just running apache2. MYSQL is running on another server.
View 1 Replies
View Related
Feb 6, 2011
I'm trying to figure out how I can get a request count per CIDR/24 from an apache log in combined format - e.g.:
Code:
24.147.44.122 - frank [10/Oct/2011:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "[URL] "Mozilla/4.08 [en] (Win98; I ;Nav)"
I'm stuck using BASH for this and I generally write everything in Python, or even Perl if necessary so BASH isn't the most comfortable for me. I've got enough to extract the IPs and get a count I just need a slick way to come up with a sum on a per CIDR basis.
View 3 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
Nov 14, 2009
I'm working on a thorny mod_rewrite problem. I have a mac connected to my LAN running MAMP (Mac/Apache/MySQL/PHP). I request a non-existent file:
Code:
http://192.168.1.2:8888/careers/db/1.html
I see this in the mod_rewrite log file:
Code:
192.168.1.102 - - [14/Nov/2009:13:46:07 --0800] [192.168.1.2/sid#807df8][rid#8ec850/initial] (2) init rewrite engine with requested uri /careers/db/1.html
192.168.1.102 - - [14/Nov/2009:13:46:07 --0800] [192.168.1.2/sid#807df8][rid#8ec850/initial] (1) pass through /careers/db/1.html
Note that the requested uri is /careers/db/1.html
If I change just the file extension on my request to PHP like so:
Code: [URL]
Then the request uri is totally different now. Here's the rewrite log:
Code:
192.168.1.102 - - [14/Nov/2009:13:47:23 --0800] [192.168.1.2/sid#807df8][rid#8fc850/initial] (2) init rewrite engine with requested uri /Applications/MAMP/htdocs/careers/
192.168.1.102 - - [14/Nov/2009:13:47:23 --0800] [192.168.1.2/sid#807df8][rid#8fc850/initial] (1) pass through /Applications/MAMP/htdocs/careers/
Note that the requested uri now has a full path which does not include the actual filename, /Applications/MAMP/htdocs/careers/
What the heck? More info. If I request [URL], I can actually access p1.php. The requested uri is /careers/db/p1.php. The problem appears to be because the filename starts with a number. I can also request [URL] and get thru to 1.php with requested uri /careers/db//1.php. Does mod_rewrite think /1 refers to a backreference or something? Why can apache handle the html file request properly and not the php file request?
View 8 Replies
View Related
Jun 26, 2010
1-Can I have the shell command which allows me to have the number of reques ts/seconds under the Apache server?
2-And the number of sons threads in service/wait?
View 3 Replies
View Related
Apr 1, 2011
On my server I provide OCR file conversion service but the problem is when a user uploads a file and it's being converted then if you open another tab and try to load the site it won't respond until that conversion is completed. In other words until the PHP script finishes execution apace doesn't serve any other request to the same browser.
Here is my apache configuration:
Code:
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
[code]....
You can check what I mean if you try to upload and convert a file and while the file is converting try opening the site in another tab.
View 2 Replies
View Related
Dec 28, 2010
I've had a VPS running Ubuntu 9.10 x64 server, hosting 3 websites of mine for a few months now. This problem has been happening for a while. Every once in a while, probably every 2 or 3 days, I'll wake up in the morning, and apache won't be responding, no web pages will load. /etc/init.d/apache2 status, reports that apache is functioning properly. Every time I simply have to restart the daemon and things run fine for another few days.
I thought maybe it was a memory issue, so I lowered the MaxClients in the prefork module from 50 to 30 a few days ago, but the same thing is still happening. My VPS has 512MB of ram, burstable to 1GB, and according to Virtuozzo, there was only one night of high traffic where I even came close to that soft limit. I've checked my syslog, and there's absolutely nothing in there about apache. I've checked apache's error.log as well, and there's nothing in there that would indicate a problem either.
View 3 Replies
View Related
Nov 16, 2010
I have CentOS 5.5 x86_64 with Apache, php and mysql.
I have just installed OTRS (helpdesk - trouble ticket system) on that server and no users.
This system works with perl, apache and mysql.
I notice that is slow to respond and at times unresponsive the apache welcome page. code...
View 5 Replies
View Related
Mar 18, 2010
A Linux (CentOS5.3) server is setup with apache reverse proxy. The reverse proxy server is opened to outside and an internal server is mapped to ProxyPass configuration. SSL certificate is also installed on the Apache reverse proxy server. The problem is, it is extremely slow in serving http requests through reverse proxy. There is no problem with server resources or bandwidth. When the internal server is directly accessed through Internet, there is no delay. The backend server and the reverse proxy server are also on the same switch (same subnet). When I searched the Net, there were recommendations to enable cache in Apache. I did so as follows in httpd.conf.
<IfModule mod_disk_cache.c>
CacheEnable disk /
CacheRoot "/var/cache/mod_proxy"
CacheDirLevels 5
CacheDirLength 3
</IfModule>
But still there is no progress. Do I want to enable cache in ssl.conf too? Or is there any other workaround to speed up Apache reverse proxy. Is there a way to check that caching is happening?
View 4 Replies
View Related
May 26, 2010
the Lucid Lynx - released in April 2010 I acedentally pull my scool folder into Trashï (i think the folder is 5 gb or omething.)i haven't empty my trash yet. But now i cant open trash, i press the Trash icon and then the window comes up, and then it does not respond?d to get in root but i cant get permissions. I have tried some ways in the terminal tget root permissions, i have password, but i still cant came inRoot
View 2 Replies
View Related
Aug 8, 2010
I'm having some weird problems with my mouse and keyboard. I'll be moving the mouse and keyboard about and all of a sudden the keyboard won't respond and the mouse moves and is fully working, but it seems to be a problem with the desktop, more then the mouse, because it'll highlight stuff and certain stuff will open when I click them, but when I go down to the toolbar, and try to click applications, places, and system, it'll highlight it but not respond when I click it. This happens about every 45 Minutes, to 1 hour of time with ubuntu running [10.04] [Additional details]
- I'm using an HP Pavilion Dv6000 Laptop, 64 Bit Ubuntu 10.04
- My drivers are all up to date
- Could it be because my Laptop gets really hot? But it dosen't happen ever when I'm running Windows, so I'm not so sure about that.
View 2 Replies
View Related
Jan 7, 2011
I just setup Ubuntu 10.04, and immediately installed OpenSSH using synaptic. I edited the /etc/ssh/sshd_config file e.g. no password authentication, non-standard port, etc. Using /etc/init.d/ssh restart I restarted the daemon, and everything worked perfectly. However, now it's almost like there is a lock on my service somehow. I edited the config file and added "PrintMotd no" and "Banner none". I killed all my active ssh sessions, restarted, and still saw the motd and the banner.
I then tried sudo /etc/init.d/ssh stop. The script reported ok, but netstat reported sshd as still listening on the port I had defined. I could still login. At this point, I don't know what else to do. I have tried looking at auth.log, I don't see anything funny there. I tried rebooting, and the config changes are (apparently) not loaded, I still see the motd upon ssh login. This is a totally clean system so I don't know what I am doing improperly.
View 7 Replies
View Related
Jan 26, 2011
I'm the only one who uses or has access to my computer, so I don't need the password security that others might. Frankly, it pisses me off to have to enter my password every time I leave the computer for a few minutes, or want to make the many tweaks that are necessary to get a system going, whether it's installing software or anything else. How do I stop it?
View 7 Replies
View Related
Mar 28, 2011
ubuntu always requests my pass 2 times ...(in terminal, login page, security msgs ...)
View 3 Replies
View Related
May 13, 2011
I'm running Xmonad and just recently it has stopped responding. None of my shortcuts are working at all. So I deleted my ~/.xmonad/xmoand.hs file, and still no luck. So I decided to log in as root and Xmonad works perfectly. Anyone know why Xmonad isn't working under my normal user? Is there a button i accidently pressed turning off the mod key?I was just browsing the web, then after I closed my browser nothing has been working, even after reboot.
View 1 Replies
View Related
Jul 4, 2011
I have two servers, both running Ubuntu 11.04 Server. One is a web server, running only a LAMP stack and openssh-server. The other is running server daemons for TeamSpeak and Minecraft. Today, the game server just went down. I can access the LAN by using SSH to connect to the web server, and ping it from there. However, it won't respond to SSH or anything else. The server is a few kilometers from here, so I will be going there tomorrow.
This happened once before, probably about a month ago or something. That time, the web server was running just fine, but the game server was powered off. I thought there had been a power disruption, because when I checked the BIOS settings of the game server, it wasn't set to resume after AC power loss. The web server was set to do this, so it made sense that it would be up and running again after a brief power loss. There were also some news reports about power disruptions in my area.
The thing is, I changed the BIOS settings of the game server to make sure this wouldn't happen again. When I go there tomorrow, I will bring the server back up. However, I would like to know what caused this so that I may prevent it from occurring again. Is there a logfile or something that I can check tomorrow to find the problem?
View 2 Replies
View Related
Jan 21, 2010
I am trying to get a server to boot off the lan (pxe). I added a tftp server and tested it as operating successfully. I just plugged the pxe-server in and see the dhcp request/response as expected. The pxe-server then sends out an arp to the same address as the dhcp exchange, but the server never responds.
1. as the pxe-server already has info on the mac/ip-addr, why is it now sending another arp
2. why doesn't the server respond? I have most of my network setup the same way and the dhcp exchange is fine.
3. I'm guessing that the arp is triggered by the bootp exchange (next-server).
I do not have the server in the host table under that address.
127.0.0.1 localhost
127.0.1.1 ubuntu-desktop
192.168.5.101 windows1
Do I need to add 192.168.5.120 with a name to get arp to respond?
View 1 Replies
View Related
Feb 25, 2010
i'm trying to run ubuntu 9.10 64-bit on my 64-bit machine from a live cd, when i boot from the disk i select ENGLISH and the first option on the menu, which is try ubuntu without making any changes (or something to that effect). it then goes off to the black screen with the white ubuntu symbol, following that the brown login window appears requesting a user mane and password, now as its a live cd session i have not set a user name or password! so how do i login?
View 3 Replies
View Related
May 4, 2010
I am running Ubuntu 10.04 and yes, I am upgraded fully. But every time I go to look at the items in my trash bin, it doesn't respond and goes dark.
View 3 Replies
View Related
Jul 11, 2010
I use Ubuntu 10.04 and I want to be able to move around the system without having to frequently enter my password. For example, when waking up the system from a power save state or when accessing Synaptic Package Manager I do not want to be asked to enter my password. There is nothing on my system that matters if its security is breached. Is there a way to turn off these requests for a password?
View 9 Replies
View Related
Oct 15, 2010
I changed my password in the last few days using passwd. I still haven't gotten used to typing the new one, and entered the old one by accident to unlock the screen saver. I've been able to do this a bunch of times, and I'm quite sure it will still take the old password.This seems to be a serious security issue, and I'm not sure where I should raise this. I hope this is the right forum.I am using Ubuntu 10.04.$ uname -aLinux thunder 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux$ gnome-screensaver --versiongnome-screensaver 2.30.0
View 2 Replies
View Related
Oct 27, 2010
My Thinkpad R32 keyboard & trackpad will not work when booted off the HD with 9.04, I can plug in an external USB keyboard & that works fine.
If I start the laptop from a Ubuntu LiveCd the keyboard & trackpad work fine.
There must be some system file disabling the onboard keyboard, I have used Keyboard Preferences to try different keyboard models.
View 3 Replies
View Related
Jan 18, 2011
For some reason I get two requests for key chain unlocks when I boot? I only have to "sign" one of them but the second one still appears.
View 1 Replies
View Related