localhost

Hosting multiple local sites with XAMPP

Hi, I'm new to using XAMPP so this may be simple to some people. I have a few php projects that I would like to be able to debug locally and view in the browser (not concurrently, but without having to change config files/copy project folders each time I want to work on a different project). On IIS, you could set up multiple sites to s...

How can step through an Action that is requested from JavaScript during execution?

There is this one action that is requested using javascript during the loading of a page, it takes over 25 seconds to resolve. Looking at the code makes me think there is a scaling issue, but I am wondering if there is any way I can step through the code during the request so I can see what is happening. I try clicking 'debug/start debug...

should $ip=$_SERVER['REMOTE_ADDR']; return ::1 on a mamp localhost?

Need to retrieve a users IP, and my localhost is returning '::1' as the IP, and I am curious as to if this is expected behaviour Running MAMP on Snow Leopard. ...

Can you reccomend me a book on asp.NET application deployment?

Hi, Can you advise a book or an article with full coverage of asp.Net application deployment? I mean consider you have developed your software on your local machine and now you want to host your application on a server. So I need a book, covering all the stages from selecting the right asp.net host to setting up the environment of your...

php silently ignoring include on localhost, but not on external server.

I'm running Ubuntu 10.04 with Apache2 and PHP5. I have a directory structure like this: \www\ \index.php \parts \head.php \body.php Inside my index.php I have a command <?php include("parts/head.php") ?> and the equivalent for body. These files both exist and they contain more php and html code. The on...

How can I host multiple sites on WAMP and CodeIgniter?

Hi everyone, I am currently developing a CoeIgniter website on WAMP (in offline mode). However, I would like to develop two more: One CI site And one Wordpress site For the CI site, I've read that you can have multiple application folders (all pointing to the same system folder), but I'm not sure how to direct the request to one or ...

Windows host name resolution

I was wondering how the windows host-name resolution system works. More precisely I wonder about the use, or lack thereof, of local caching in the process. According to Microsoft TCP/IP Host Name Resolution Order, the process is as follows: The client checks to see if the name queried is its own. The client then searches a local Hosts ...

Script not working in localhost

I found this site/tutorial/demo from another question here on SO. Very nice and clean code. However I am having problems with it when running from localhost where I test all changes to my sites. I am running pretty much the exact same code (I have all mine in /lib not /js). I've stepped through the code in FireBug and inspected the gen...

"Ad-hoc webserver" for static files on UNIX/MacOSX?

Is there such a thing as a tiny little webserver that I can invoke from the command line that just fetches files from the local filesystem and serves them via HTTP on specific port? I'd like to be able to do something like this: $ cd ~/Sites/mysite $ serve . 10.0.1.1 8080 This should fire up a webserver that listens on 10.0.1.1:8080 ...

Is it possible to create root domains with MAMP?

Currently, my workflow is to develop locally, and then place on remote server as key intervals. This has worked fine for a while, but since starting to do more AJAX work, I am finding it difficult to work with roots and hosts dynamically, and am having to write redundant code into my JS in order to make the same file work both locally an...

Local test server for PHP similar to Django's runserver

As a Python developer using mostly Django, I've grown accustomed to have a built-in test server for my projects, which spares me from setting up Apache for every single project I'm working on my local development machine. Is there something similar for PHP which let's me say "serve this directory as PHP project on localhost:8080"? I'm n...

Unable to login to admin site in localhost

I can't login to the admin site on localhost. I try with firefox, IE. I try using the 127.0.0.1:8000 address. Also, I set the SESSION_COOKIE_DOMAIN to localhost, localhost:8000 I change the host file to: 127.0.0.1 test.com and set: SESSION_COOKIE_DOMAIN = 'test.com' I can login in production (only after the SESSION_COOKIE...

How can I connect to localhost from a virtual machine?

Hi, I'm running some virtual machines using VMware workstation on my PC (using win 7), also I'm using a basic WAMP installation. I'm trying to connect to my Win7 Apache server from any of the VMs. I tried changing the following line on my httpd.conf file: <Directory "c:/wamp/www/"> Options Indexes FollowSymLinks AllowOverride a...

Wamp Put online

I have wamp installed on my pc. and i have used the put online option. But when i visit my ip address. it doesnt visit my local host. on my desktop it used to happen. when i got my laptop. not it redirects to my Router Modems login page. How to set wamp to access it via my ip address. ...

localhost :: cross domain ajax

Hi there, Is there any way to tell your localhost that it can do cross domain ajax calls? I need this for my testing. If it is a browser specific issue i am using google chrome. Cheers. ...

Set up https on the localhost.

I have an error occuring on a page that only happens when I access the page through https. I need to configure https on my local machine for testing but am not sure how to go about it? EDIT. Using IIS. Sorry for not including. ...

Apache on localhost: give virtual hosts specific servers name

Hi, Ok, I ask my question first and below are details of what I have so far trying to solve the thing: On Apache running on localhost, I want to have different virtual hosts that would be accessible through url: http://name-of-the-virtual-host.name-of-the-machine/ Details: So I have Apache running on port 8080 of my laptop. Linux Min...

How to run a leightweight ASP.NET MVC application that would be accessible only locally (not on IIS)?

We have a desktop client application and recent customer requests indicate that they would like to have some dynamic HTML content served and displayed by the application. We are considering hosting a simple ASP.NET application in a local process, accessible only from the local machine (similar to the ASP.NET development web server used ...

Setting up Mac localhost mail server on OS X.

I've been trying to get setup my Mac OS X (10.5.8) to send emails from localhost so that I can test my scripts. I normally get success messages, saying emails have been sent but they never reach their destination. They appear to just get stuck in the Postfix mailq: bash-3.2# mailq -Queue ID- --Size-- ----Arrival Time---- -Sender/Recip...

Send and receive emails from localhost using PHP running XAMPP

I am trying to make an application which can parse emails and update the database. I tried to set up the localhost to send and receive emails so that I can carry on from there. I am unable to do that. I tried configuring Outlook, Thunderbird to set up local email system using mercury mail server. Its not working properly. I would like ...