neogranas Posted October 23, 2008 Share Posted October 23, 2008 Sorry to keep side tracking you, but have you tried commenting out the line in /etc/hosts for mike-server then restarting your services? Quote Link to comment Share on other sites More sharing options...
trq Posted October 23, 2008 Share Posted October 23, 2008 Sorry to keep side tracking you, but have you tried commenting out the line in /etc/hosts for mike-server then restarting your services? Â You can have as many entries pointing to 127.0.0.1 within your /etc/hosts file. All it does is create another name to access your machine by. Quote Link to comment Share on other sites More sharing options...
neogranas Posted October 23, 2008 Share Posted October 23, 2008 Sorry to keep side tracking you, but have you tried commenting out the line in /etc/hosts for mike-server then restarting your services? Â You can have as many entries pointing to 127.0.0.1 within your /etc/hosts file. All it does is create another name to access your machine by. I know that, but since it is not a fully qualified domain name, and not on the same line as localhost, wouldn't his system try to then assign it as a domain name and with the absence of a TLD extension fail? I admit that I may be wrong, but just trying to help. Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 23, 2008 Author Share Posted October 23, 2008 Sorry to keep side tracking you, but have you tried commenting out the line in /etc/hosts for mike-server then restarting your services? @ neogranas: I will try this. And post results  @ thorpe: No i do not have any hardware or software firewall installations. Is there a way to test the throughput of a certain port. I am still able to access my server using www.mikesgreatgifts.com in PuTTY and VNC Viewer.  Here is the iptable root@mike-server:~# iptables -L Chain INPUT (policy ACCEPT) target  prot opt source       destination Chain FORWARD (policy ACCEPT) target  prot opt source       destination Chain OUTPUT (policy ACCEPT) target  prot opt source       destination root@mike-server:~#   Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 23, 2008 Author Share Posted October 23, 2008 This is the commented hosts file... 127.0.0.1 localhost.localdomain localhost #127.0.0.1 mike-server 127.0.0.1 www.mikesgreatgifts.com 127.0.0.1 www.mendezmartialarts.com # The following lines are desirable for IPv6 capable hosts ::1  ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts  And this is what i got in terminal. I went ahead and undid this since i got this error after doing this. root@mike-server:~# /usr/sbin/apache2ctl configtest apache2: apr_sockaddr_info_get() failed for mike-server apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK root@mike-server:~# /etc/init.d/apache2 reload * Reloading web server config apache2                     root@mike-server:~# Quote Link to comment Share on other sites More sharing options...
trq Posted October 23, 2008 Share Posted October 23, 2008 Whats the output of....  sudo tail -n 200 /var/log/apache2/error.log  ? Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 24, 2008 Author Share Posted October 24, 2008 This is what i get root@mike-server:~# tail -n 200 /var/log/apache2/error.log (2)No such file or directory: apache2: could not open error log file /home/mike/www/www.mendezmartialarts.com/logs/error.log. Unable to open logs root@mike-server:~# Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 25, 2008 Author Share Posted October 25, 2008 Ok the specified directory for the error logs was non-existant for www.mendezmartialarts.com. I created the directory and the two files error.log and access.log. but now i get this. What permission group should i set for apache to be able to write??? tail -n 200 /var/log/apache2/error.log (2)No such file or directory: apache2: could not open error log file /home/mike/www/www.mendezmartialarts.com/logs/error.log. Unable to open logs root@mike-server:~# /home/mike/www/www.mendezmartialarts.com/logs/error.log -bash: /home/mike/www/www.mendezmartialarts.com/logs/error.log: Permission denied root@mike-server:~# Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 27, 2008 Author Share Posted October 27, 2008 I did a port scan to check for open ports on my static ip from a remote location, and the only ports that showed open were 21 & 22. Is there a way to see if the ISP is now blocking this port??? what settings to I need to check to make sure these ports are being used by apache? Is there any other reason why I would get these results? Quote Link to comment Share on other sites More sharing options...
trq Posted October 27, 2008 Share Posted October 27, 2008 Considering you have no firewall in place (iptables), I would say your isp is definately blocking port 80. Â Is there any router between your machine and the net that might be blocking port 80? Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 27, 2008 Author Share Posted October 27, 2008 only router is the one provided by the ISP. I had configured it to forward the WAN static ip to the machines static lan IP. I figure that it forwards all ports(considering that i had it working and i have not made any changes to the router.) Can i run anything on the server to see if i can send out through 80? Quote Link to comment Share on other sites More sharing options...
trq Posted October 27, 2008 Share Posted October 27, 2008 http request do not go back out through port 80. Â Only in comming request are handled via that port. Â If a port scan reviels your not listening on port 80 its likely your not. Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 27, 2008 Author Share Posted October 27, 2008 Now i performed a port scan on the lan using the lan IP and I get the same results. 21 & 22 open and the rest closed. So i am assuming that there is a problem with the server not my ISP. Any Ideas on where to go from here??? Quote Link to comment Share on other sites More sharing options...
trq Posted October 27, 2008 Share Posted October 27, 2008 Nope. As Ive said before. I see nothing wrong with your config and neither does apache. Â Sorry. Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 28, 2008 Author Share Posted October 28, 2008 Ok finally i have some good news. I am back where i started. www.mikesgreatgifts.com resolves but my second site is showing my mikesgreatgifts.com site. I am able to hit the server via external connection, through the domain names. I had to Uninstal apache completely. then re-instal via synaptic package manager. and it fired right up with no config modifications yet.  Last time I incurred my problem when i ran a2ensite www.mendezmartialarts.com.  Right now i dont have any files in my sites-enabled directory. I am not sure how it is serving this page since this is my default file in /etc/apache2/sites-available directory? instead of showing the default "IT WORKS!" i get my site???  NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On   Alias /doc/ "/usr/share/doc/"   <Directory "/usr/share/doc/">     Options Indexes MultiViews FollowSymLinks     AllowOverride None     Order deny,allow     Deny from all     Allow from 127.0.0.0/255.0.0.0 ::1/128   </Directory> </VirtualHost>   Quote Link to comment Share on other sites More sharing options...
SLEDGEHAMMER84 Posted October 28, 2008 Author Share Posted October 28, 2008 I did not do a2ensite command. I just added  namevirtualhost *  to my /etc/apache2/apache2.conf file and everything works great now. www.mikesgreatgifts.com and www.mendezmartialarts.com is working via external computer. I guess i do not have to enable the site in order for them to work.???? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.