How to Change localhost to a Domain Name Complete, Concrete, Concise. This tutorial is for XAMPP 1. Windows XP with Service Pack 3. It may be similar for other version combinations, but no guarantee is made. Assumes you have installed XAMPP. Instructions can be found here. UPDATE 1. 7 March 2. On two recent installation attempts on iis6 on win2k3 i followed the php manual and windows configuration steps exactly and php would still not run. XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. Its that easy. XAMPP for Windows 5. 6. 31, 7. If you are running Windows 7 and possibly Vista the default security settings prevent you from running applications with administrative privileges. This means that you wont be able to save changes made to the hosts file. For instructions on opening the hosts file for reading and writing please see this article. Installing XAMPP allows you to develop, test, and play around with web server code on your local machine. You can configure and test out your website locally, instead of live somewhere on the web. It does have the drawback that to access your website you have to type localhostmy web site, where my web site is actually the directory you installed your website in. You can setup the Apache Server in XAMPP to serve up web pages as though they were actually located on www. This is a two step process first, you have to redirect the web site name to your computer next, you get Apache to redirect the web site address to your installed directory. Redirecting the Web Site to Your Computer. When you type a web site name into the URL field say, www. WAMP Windows, Apache, mySQL, PHP is all in one packages which installs the. Do you want to create a local WordPress site on your computer Learn how to easily create a local WordPress site using XAMPP on Windows, Mac, or Linux.
Domain Name Server that looks up the text name www. Internet Protocol IP address for it 7. Your browser then connects to IP address 7. Before your browser queries the Domain Name Server, it first checks a file called hosts on your computer. If the requested web site name is found, it uses the IP address found in the file. Locate your hosts file. In Windows XP, this file is located in C WINDOWSsystem. NOTE Different versions of Windows may store the file in a different directory. Open the file with a plain text editor like Notepad. Using a word processor, like Word, can mess up the file when you save it. It is very likely that the file is empty, except for the default comment and examples the section in the green box 3 Add lines containing the domain names and IP address to redirect to. See the section in the red box in the image above. Each line must begin with the address 1. After the IP address, type the name of the domain you wish to redirect to this address. You may only enter 1 name per line. Addresses like my site. Your address does need to be a valid top level domain i. It just needs to be composed of letters a z, numbers 0 9, hyphens but not as the start or end of a name and periods. In the examples above, I used. You can redirect existing domains to your machine. If you entered the line 1. URL field, your browser would redirect the request to your machine instead of going to Googles web site. NOTE this redirection only happens on your computer everyone else in the world will still go to Googles home page. You can also redirect on your computer only one website to another. For example, suppose you are boycotting Google, so you decide to redirect google. You would do that by entering Bings IP address in your host file followed by the web site you want to resolve to that IP address 1. Save the changes. Restart your browser if it was open when you made the change to your hosts file. Getting Apache to Serve Your Web Site. These instructions are for XAMPP 1. Other versions or XAMPP, or different Apache Server installations may have the files in different locations, or may even have the files named differently. Locate the httpd vhosts. For most XAMPP 1. C xamppapacheconfextra in my case, I installed XAMPP on my D drive, so the folder is D xamppapacheconfextra 7 Open the file using a plain text editor like Notepad. Using a Word processor, like Word, can mess up the file when you save The file will contain some documentation and sample virtual hosts. Add, at the bottom of the file, new virtual hosts for each domain you added in step 3 above. Each host will have the following form lt Virtual. Host 8. 0. Server. Name www. joomla. Server. Alias joomla. Document. Root d xampphtdocsjoomla. Virtual. Host Server. Name following this label, add the name of the domain you added in step 3Server. Alias following this label, you may add as many alternate domains separated by spaces as you like that are supposed to resolve to this virtual host. Remember that www. Document. Root following this label, add the path where your website is located. You can use an absolute path as in the example above, or a relative path but relative paths can be trickier to set up, so I prefer to use an absolute path. Save the file. 1. Restart the Apache Server to have the change take effect. Do this by clicking on the Stop button on the XAMPP control panel and then clicking on the Start button. You could also just reboot the computer, but that is overkill. You should now be able to type the domain name into your URL field and go directly to your locally hosted web site For more information on configuring virtual hosts, you can read the documentation at the Apache Foundation here. There is a lot more you can do with virtual hosts such as adding an IP address. Budget web hosting providers use virtual hosts to host multiple websites on the same server and same IP address. Share this post because its fun to do. PHP Installation Manual. Re. Compiling PHP4 to have oracle 8 support oci. Debian Linux, using the Oracle 1. Log in as root. PACKAGES REQUIRED. OTHER PACKAGE REQUIREMENTS. Oracle Client Libraries i used Oracle 1. Server, but you should be able to use, as has been previously said, any set of the oracle client libraries from 8i onwards. ENVIRONMENT REQUIREMENTS. ORACLEHOMEwhere u installed the oracle client. LDLIBRARYPATHLDLIBRARYPATH ORACLEHOMElib. LDPRELOADlibclntsh. ORACLEHOMElib to the list of paths. RDBMS is my ORACLEHOME. PHP4 Version. in my case, PHP4 Version php. Find section labeled COMMONCONFIG. and add with oci. ORACLEHOME, LDPRELOAD and LDLIBRARYPATH. IF YOU GET. if you get an error saying something about apache cannot load libclntsh. ORACLEHOMElib path is in there, and has been reloaded with ldconfig. OSs. but with a few debian specific paths and commands thrown in.