127.0.0.1 Works But Not Localhost

Jul 7, 2009

I just installed wamp here on my laptop to set up a developer machine for my website. I am used to going into the browser and just typing in "localhost" and having it bring up the test website. I'm sure there is probably something wrong with the configuration of the wamp files because it works for 127.0.0.1.

View 4 Replies


ADVERTISEMENT

Apache :: Localhost Works - Remote Fails

Nov 22, 2013

My customer wants a Windows system - but I'm rusty at best in Windows.I downloaded VC11 x86 Thread Safe (2013-Nov-13 20:57:44), unpacked it, moved it to it's own directory, edited httpd.conf (no auto installation) and confirmed it was working (localhost/index.html)

I added PHP and ran a PHP info - a little trouble getting the php.ini found.Apache seems to work fine on the local system - either localhost/index.html or nn.nn.nn.nn/.But remote browsers timeout when attempting to connect.

1. I've opened command as administrator and run httpd.exe directly

2. I've installed httpd.exe as a service, opened it's properties window and started it from there

3. Changed the listen port to 8080

4. netstat sees the remote browser with a waiting connection - and the local service

5. The Windows system is on my Mac network (same systems where the remote browser is) and I have transferred megabytes of files between the two systems.

In Component Services - the Apache2.4 service shows Log On As 'Local Service' - I'm guessing it should show as 'Network Service.I tried changing this - used the local user login - restarted the service. I didn't see any way to change it to 'Network Service'. Perhaps this is the problem?

ODDLY - the remote browser worked briefly - then failed with the same 'time out'.I'm guessing this is something simple that I don't understand about Windows - (then again, since I don't understand much about Windows, it could be complicated too).

View 4 Replies View Related

Apache Virtualhost Order Deny - Allow Works Only On Localhost

Jun 17, 2013

I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.

I'm using a physical path to test from the public IP as follows:

xxx.xxx.xxx.xxx/~user/test/index.html

View 3 Replies View Related

Apache :: Virtualhost Order Deny Allow Works Only On Localhost

Jun 17, 2013

I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.

I'm using a physical path to test from the public IP as follows:

Quote:
http://xxx.xxx.xxx.xxx/~user/test/index.html

Apache v2.2
RHEL6
UserDir configured/running
SuExec configured/running

Below is the relevant vhost block in httpd.conf:

Code:
<VirtualHost *:80>
ServerName test
ServerAlias test
DocumentRoot /home/user/public_html/test
<IfModule mod_fcgid.c>

[Code] .....

I don't have a FQDN as yet, so I just made a entry in /etc/hosts as follows:

Code:
127.0.0.1 test

Here is an excerpt from the Apache error log:

Quote:
[Mon Jun 17 12:02:16 2013] [error] [client xxx.xxx.xxx.xxx] client denied by server configuration: /home/user/public_html/test/index.html

I've checked the firewall and the /etc/hosts.allow- that's not it. I've read the Apache docs and in the vhost block Allow should be evaluated last, and apparently is matching localhost but is not matching my IP.

View 5 Replies View Related

Www Does Not Works Http:// Works

Jan 9, 2008

I can access my web domain by typing...

[url]

But i get no server found error when i type....

www.mysite.com or [url]

I am using LxAdmin Panel, and have added (A) record for www

www A Server IP

View 7 Replies View Related

DSL + Localhost

Apr 27, 2007

A friend of me would like to setup a local server with my DSL. The problem is the IP address keeps changing and he does not want to purchase a static IP.

The script needs to detect the IP address and then email it to the admin over here daily.

View 2 Replies View Related

How Associate 127.0.0.1 To Localhost

Mar 27, 2009

I've installed WampServer on my Windows Vista machine.

Haven't used it for a while but now for some reason I can't access http://localhost, firefox tells me, "Firefox can't establish a connection to the server at localhost.".

I can access WampServer via [url]and the main WampServer default page appears.

Apache version : 2.2.8

PHP : 5.2.6

MySql : 5.0.51b

Which file(s) do I need to edit in order to associate localhost to 127.0.0.1

View 4 Replies View Related

Vietnamese Localhost

Jun 18, 2008

I am a Vietnamese girl and a new member. I'd just like to ask anybody knows about vietnamese localhost? I use appserv, but it does not have vietnamese language, so if I'd like to submit categories, etc. in Vietnamese into my phpmyadmin, it does not work.

Only languages are okay, like: English, Deutsch, French, Spain, .... but there are no Vietnamese language. What should I do?

We write with latin characters, but there are apostrophes which appserv cannot read.

Does it happen to any Vietnamese here in forum?

how can write a text in Vietnamese language into phpmyadmin,

View 4 Replies View Related

How To Catch Localhost Spammers

Jun 19, 2007

I am failed to catch this spammer, please help me to find out the source. There is no such domain on my server. User is using localhost in smtp, I am using mail enable standard on my server ....

View 2 Replies View Related

Limit Access To Localhost

Jun 9, 2008

I have a win2003 server running some apps in the 'default web site'

I have just installed PHP on the 'default web site' and I want to use it to run some admin jobs. BUT I do not want the PHP scripts to be accessible over the internet, they should only run from local machine.

Is it possible to set it up so that the files can be executed only by localhost?

View 4 Replies View Related

Bluescreen On Win XP Accessing Localhost

Sep 11, 2007

I just installed IIS on my Windows XP machine and any time I access localhost I get a bluescreen and my computer will restart. I have tried to uninstall IIS, reboot, re-install, reboot then try accessing localhost and that does not fix anything. This is on an almost fresh install of Windows. (The computer is only 1 week old)

View 5 Replies View Related

Accessing Blog On Localhost

Aug 18, 2007

I installed Wordpress on a local install of Apache so that I can play around with it and get my design down before I put it on the web. I can get to the admin and do everything, but I can't actually get to the site. I had an index.html in my htdocs directory, which was deleted, but now when I go to localhost, it just shows the directory.

View 2 Replies View Related

Loading Localhost With Apache

Dec 9, 2007

I've had a localhost server setup for awhile now, and all of a sudden when I access [url]it wants to download my "index.php" file. However, when I access it via [url]is loads fine.

View 7 Replies View Related

Apache :: No Localhost On 2.4.9 After Upgrading From 2.4.6

May 20, 2014

I have Apache 2.4.6 running without problem on Windows 7 Ultimate.

I upgraded to Apache 2.4.9 by:

Stopping Apache;
Renaming the 2.4.6 directory to "old";
Extracting the files from the zip to the Apache directory; and
Copying the old httpd.conf to the Apache directory.
After rebooting I found that I could not access localhost (or 127.0.0.1).

I then reverted to Apache 2.4.6. Localhost is now working.

View 2 Replies View Related

How IP Transit Works

Aug 3, 2009

how IP transit works? An EU IP transit company who has 5 pop in different country has different pricing for the bandwidth. when they own ASN and have pop in 5 locations.

Whom do these wholesale bandwidth player pays? To tier1 companies?

An US wholesale bandwidth company has same pricing for USA/NL/DE but the company in EU has different pricing for SE/FI/DE/Russia.

View 1 Replies View Related

Dual DNS Really Works

May 20, 2009

i have a domain with me..and the site is live..some times the HELM panel hosted site never responds..so i have a hosting panel of c panel i have uploaded the same site in c panel as i cannot change the dns frequently so can i put all the primary and secondary for HELM and 3 and 4 for c panel... do my site and mail service will work>>??

View 6 Replies View Related

Php Passthru() Works From PHP CLI But Not Web

Nov 16, 2008

php passthru() works from PHP CLI but not web

I have a script which I use to restart processes and I am trying to make it work by clicking a button on the word. It works from running it from php command line but I can never seem to get it to work through the click of a button. Does anyone know what may be the cause of this?

here is some other observations:

old php version 4 seems to work fine, but ever since around 4.3+ it just won't work from the web.

View 1 Replies View Related

Ssh: Reboot Never Works

Mar 7, 2008

I'm finding that my server doesn't like to reboot gracefully. Either selecting "graceful server reboot" in WHM or actually typing "reboot" in SSH, which then tells me the server is shutting down. My server is then incommunicato indefinitely until I actually do a hard reset remotely.

Is this common? Is there some way to find out why this is happening?

View 3 Replies View Related

Subdomain Works, But

Apr 2, 2007

I just managed to get my subdomains working using:

<VirtualHost *:80>
ServerName sub.domain.com
DocumentRoot "C:/www/apache2/htdocs/dir/sub_dir"
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>

however, I can't use the directories existing in the same folder.

For example, I can't view the 'dir_1' located at /htdocs/dir/sub_dir/ by visiting [url]

Gives a 404.

View 4 Replies View Related

Two Version Of My.cnf, Neither Of Them Works For Me

May 29, 2007

I got two version of my.cnf, but neither of them works ideally.

On one hand, If i used the old one, the swap memory will be used out after 5-7 days running and system halt.

On the other hand, the second copy of my.cnf will cause too much pain on cpu, even traffic is low, cpu could up to 70 or 80 percentage and hanging there for 1 minutes.

I did a lots optimization in the past (including httpd.conf, my.cnf, sysctl.conf ), and found that the only problem left on my server would be my.cnf, I have to get it right this time!

So I would be really appreciate if you guys can help me out.

here is two copies of my.cnf:

first one

[mysqld]
max_connections = 400
key_buffer = 64M
myisam_sort_buffer_size = 32M
join_buffer_size = 2M
read_buffer_size = 2M
sort_buffer_size = 3M
table_cache = 1024
thread_cache_size = 286
thread_concurrency=2
interactive_timeout = 60
wait_timeout = 60
connect_timeout = 30
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 128M
query_cache_type = 1
tmp_table_size = 48M

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 32M
sort_buffer = 32M
read_buffer = 16M
write_buffer = 16M

[mysqlhotcopy]
interactive-timeout

second one

mysqld]
skip-locking
max_connections = 400
max_user_connections=300
interactive_timeout=60
key_buffer = 64M
myisam_sort_buffer_size = 64M
join_buffer_size = 2M
read_buffer_size = 2M
sort_buffer_size = 3M
table_cache = 1024
record_buffer=2M
thread_cache_size = 286
thread_concurrency=2
interactive_timeout = 60
wait_timeout = 60
connect_timeout = 30
max_allowed_packet = 16M
max_connect_errors = 50
query_cache_limit = 4M
query_cache_size = 128M
query_cache_type = 1
tmp_table_size = 256M
max_heap_table_size = 128M

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer = 256M
read_buffer = 2M
write_buffer = 2M

View 8 Replies View Related

AT&T DSL Time Out.. Every Other ISP Works..

Dec 18, 2007

I have 2 business DSL lines at work with (formally SBC) AT&T. We use a linksys (dual-port, but disabled) and a D-Link router on basic DSL modems.

I run a php script that does a few things in the background that takes roughly 15 - 55 minutes to complete. When I click on the button to open the php script, firefox basically gives the hour glass until it finishes.

The problem is.. ANYWHERE besides our office when I click on the php script it works find. It finishes up in like I said.. 15 - 55 minutes. But for some reason (on any computer in the office.. windows and linux) I get a server time-out message after 12 minutes.

I even hooked up 1 windows machine and 1 linux server directly to the DSL modem (both got their on IP Addresses on different Class-C blocks) and it still times out.

I am curious how to even begin to investigate why it times out at 12 minutes. Do you think this is a specific DSL AT&T problem?

I've had 5 friends of mine try the script and every single one of them was able to run it without any problems. Like I said.. works 100% of the time on my home connection. But once I get into work.. 10-12 minutes... "server time out".. but the server is up.. no problems on the connection.

View 5 Replies View Related

Apache Not Works

Aug 23, 2007

I don't know why apache not works you can demo here : [url] Two command i've tested:

- /etc/init.d/httpd status

Quote:

Not Found
The requested URL /server-status was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
_________________________________________________________________

Apache/1.3.37 Server at server.xxx.org Port 80

-/etc/init.d/httpd start

Quote:

/etc/init.d/httpd start: httpd (pid 17885) already running

How to enable apache software .

View 3 Replies View Related

Configuring Subdomains In Apache On A Localhost

Apr 27, 2006

I'm currently trying to configure apache 2 to handle subdomains. This is on a local machine (not tied to any domain names) and I'm only doing it to research how the final structure of a site 'could' be setup.

Basically I have a single install of Apache 2 running. The outcome eventually should be to have specific sub domains that all point to the same document root as the actual domain name. So eventually I will have:

http://www.mydomain.com
http://subdomain1.mydomain.com
http://subdomain2.mydomain.com

with both subdomains showing the content at mydomain.com (there is reasoning behind this but I'm not gonna go into that).

I have apache setup as follows:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>


<VirtualHost *:80>
ServerName subdomain1.daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName subdomain2.daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>

Now on my local machine, only the top one works - the subdomains dont. if I add the following into my hosts file in windows, they all work:
127.0.0.1 daneastley
127.0.0.1 subdomain1.daneastley
127.0.0.1 subdomain2.daneastley

the problem being, that I wish to test this enviroment on the local network. How would I go about having every computer being able to access this? I'm assuming it comes down to DNS stuff.

View 0 Replies View Related

Mail Server & Webmail In Localhost

Jul 9, 2008

I want to run a local Mail Server + Webmail Client (opensource. I googled and I found hmailserver[server] and Roundcube [webmail]. the problem that i can't config any of them
How have an other alternative for mail server or a solution

View 4 Replies View Related

Iphone Lighttpd-no Localhost When Offline

Feb 23, 2008

Does anyone know where the seek order information is located on an apple iphone. I installed lighttpd on the mobile, however I can only see localhost when I'm online.

View 2 Replies View Related

Malicious Mail Sent Out Via MailEnable On Localhost

Jun 5, 2008

we received a report of a malicious mail being sent from our servers. Problem is that the sender and recipients are not hosted with us. What I'm trying to find out is how the mail got sent out. The ME logs shows that the connection was made from 127.0.0.1 to the smtp service, but that's it.

We don't run mail services (pop3/imap/webmail) on the web servers, if that helps any. Have run out of ideas after sifting thru lots of logs (was trying to find if anyone called an application to send the mail and attachments out), but came up empty.

View 7 Replies View Related

Unable To Connect Localhost(10061)

Apr 5, 2007

I am stuck in re-installing mysql server..... Everything I have removed even mysql service give reboot the machine but still not able to complete the installation.

At the end I receive error " Can't connect to Mysql server with LocalHost (10061)

By the way if port 3306 is not enabled in firewall can this issue be occurred because of this?

View 5 Replies View Related

Fast MySql Access- Localhost

Aug 2, 2008

I've been using Dreamhost for years and they're very good, but their MySql databases are quite slow. Then I moved to ServInt with a VPS, and my MySql is on localhost instead of on a different server. WOW! It's so fast!

However, now I'm trying to find a shared hosting package that has fast MySQL service.

I'm not sure if the requirement is that it's on localhost but it sure doesn't hurt.

Is there anyone who is familiar of a good solid shared hosting package with fast MySQL service?

View 11 Replies View Related

Local Mysql Server Name, IP Or Localhost

Jun 29, 2007

I am using localhost as mysql server name on my config file. then, when I enter [url], the address will automatically change to[url]that obviously getting error. when I change the mysql server name from localhost to the server public IP, everything seems ok.

My sql is 4.1.x with php 4.4.7, is that any way I may use localhost instead of IP?

or is there any potential danger using IP?

View 2 Replies View Related

Apache :: Redirect URL To Localhost / Images

Oct 10, 2013

I have a simple app where i am currently downloading some images from the internet. I want to use a local web server to host some of these images when i am not connected to the internet. I installed the apache web server and added the images folder under htdocs - my document root.

Now, i want something like when i continue to query images from www.examplesite.com/xyzimage.png within my app, it should be redirected to localhost/images. Is this possible? I tried doing this

In C:WINDOWSsystem32driversetchosts i added this line URL:...

Also in the httpd.conf i set the foll -

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?examplesite.com$ [NC]
RewriteCond %{REQUEST_URI} !^/examplesite
RewriteRule ^(.*)$ /images/$1 [L]

but it doesnt seem to work.

View 1 Replies View Related

Apache :: 2.4.3 - Localhost Responses Very Slow

Aug 4, 2013

I've very slow response (from 1-2 seconds to tens of seconds) from http://localhost using Apache 2.4.3/Win32 service on Windows 8/32bit (6.2 build 9200). It doesn't depend on the browser used. Responses from all other sites are much faster.

Because it seemed to me to be a DNS issue, I tried to uncomment "127.0.0.1 localhost" and/or "::1 localhost" line in the hosts file, put "http://127.0.0.1" or "http://[::1]" instead of "http://localhost" into the browser, flushing dns by ipconfig /flushdns, stopping DNS Client by "net stop dnscache", disabling IPV6, etc. but nothing worked.

It seems that hosts file is ignored and "localhost" is passed to external DNS. Ping localhost yields to "Reply from ::1: time<1ms" response, ping 127.0.0.1 yields to expected "Reply from 127.0.0.1: bytes=32 time<1ms TTL=128" response.

Finally, "unplugging the network cable" is the only solution I've found: then the connection to localhost is much faster.

How to get instant response when connected?

View 6 Replies View Related







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