HOW TO INSTALL XAMPP AND SETUP LOCALHOST

The XAMPP control panel for start/stop Apabịt, MySquốc lộ, FileZilla & Mercury or install these VPS as services.

Bạn đang xem: How to install xampp and setup localhost

Installing from ZIP

Unzip the zip archives inkhổng lồ the folder of your choice. XAMPPhường is extracting lớn the subdirectory "C:xampp" below the selected target directory. Now start the file "setup_xampp.bat", khổng lồ adjust the XAMPP configuration to your system.

If you choose a root directory "C:" as target, you must not start "setup_xampp.bat".

Like with the installer version, you can now use the "XAMPP. Control Panel" for additional tasks.

Does XAMPP include MySquốc lộ or MariaDB?

Since XAMPP 5.5.30 and 5.6.14, XAMPPhường ships MariaDB instead of MySQL. The commands and tools are the same for both.

How can I start XAMPPhường. without setup?

If you extract XAMPP in a top level thư mục like "C:" or "D:", you can start most servers lượt thích Apađậy or MySquốc lộ directly without execution of the tệp tin "setup_xampp.bat".

Not using the thiết lập script, or selecting relative paths in the cài đặt script, is preferred if you are installing XAMPP on a usb drive. Because on each pc such a drive can have an other drive sầu letter. You can switch from absolute to lớn relative sầu paths at any time with the cài đặt script.

Using the installer from our Downloads page is the easiest way lớn install XAMPP.. After the installation is complete, you will find XAMPP.. under Start | Programs | XAMPP.. You can use the XAMPPhường Control Panel lớn start/stop all VPS and also install/uninstall services.

The XAMPP control panel for start/stop Apache, MySQL, FileZilla và Mercury or install these VPS as services.

How vì I start and stop XAMPP?

The universal control center is the "XAMPPhường Control Panel" (thanks www.nat32.com). It is started with:

xamppxampp-control.exe

You can also use some batchfiles khổng lồ start/stop the servers:

Apabít và MySquốc lộ start: xamppxampp_start.exe Apabít & MySquốc lộ stop: xamppxampp_stop.exe pháo Apabịt start: xamppapache_start.bat Apađậy stop: xamppapache_stop.bat MySQL start: xamppmysql_start.bat MySQL stop: xamppmysql_stop.bat Mercury Mailserver start: xamppmercury_start.bat Mercury Mailhệ thống stop: xamppmercury_stop.bat FileZilla Server start: xamppfilezilla_start.bat FileZilla Server stop: xamppfilezilla_stop.bat

How can I thử nghiệm that everything worked?

Type in the following URL at your favourite website browser:

http://localhost/ or http://127.0.0.1/

You should see the XAMPP. start page, as shown below.

*
How can I install a VPS as a service?

Each server in XAMPPhường. you can install also as Windows service. You can also install it from the XAMPP Control Panel. In this case it is necessary lớn run the scripts or the Control Panel with Administrator privileges.

Apađậy service install: xamppapacheapache_installservice.bat

Apabịt service uninstall: xamppapacheapache_uninstallservice.bat

MySQL service install: xamppmysqlmysql_installservice.bat

MySQL service uninstall: xamppmysqlmysql_uninstallservice.bat

FileZilla service (un)install: xamppfilezilla_cài đặt.bat

Mercury: No service installation available

Is XAMPP. production ready?

XAMPP is not meant for production use but only for development environments. XAMPP is configured lớn be open as possible khổng lồ allow the developer anything he/she wants. For development environments, this is great but in a production environment, it could be fatal.

Here a danh mục of missing security in XAMPP:

The MySQL administrator (root) has no password. The MySQL daetháng is accessible via network. ProFTPD uses the password "lampp" for user "daemon". The default users of Mercury và FileZilla are known.

All points can be a huge security risk. Especially if XAMPP is accessible via network và people outside your LAN. It can also help to use a firewall or a (NAT) router. In case of a router or firewall, your PC is normally not accessible via network. It is up lớn you khổng lồ fix these problems. As a small help there is the "XAMPPhường Security console".

Please secure XAMPP. before publishing anything online. A firewall or an external router are only sufficient for low levels of security. For slightly more security, you can run the "XAMPP. Security console" và assign passwords.

If you want have your XAMPPhường. accessible from the internet, you should go to lớn the following URI which can fix some problems:

http://localhost/security/

With the security console you can phối a password for the MySQL user "root" & phpMyAdmin. You can also enable a authentication for the XAMPP.. demopages.

This website based tool does not fix any additional security issues! Especially the FileZilla FTP server & the Mercury mail VPS you must secure yourself.

How vì chưng I uninstall XAMPP?

If you installed XAMPP using the installer version, please use the Uninstaller. The Uninstaller will delete all XAMPPhường entries from your registry and it will uninstall some installed services included with XAMPP. We highly recommkết thúc that you use the Uninstall program for removing XAMPP.. installations from the Installer version.Please backup all the data you want lớn keep before uninstalling XAMPP..

If you installed XAMPPhường using the ZIP và 7zip versions, shut down all XAMPP. servers và exit all panels. If you installed any services, uninstall và shut them down too. Now simply delete the entire folder where XAMPPhường is installed. There are no registry entries and no environment variables to lớn clean up.

What is the "lite" version of XAMPP?

XAMPPhường Lite (means "light" as in "light-weight") is a smaller bundle of XAMPPhường. components, which is recommended for quichồng work using only PHPhường và MySQL. Some servers or tools such as Mercury Mail and FileZilla FTPhường are missing in the Lite version.

Where should I place my website content?

The main directory for all WWW documents is xampphtdocs. If you put a tệp tin "kiểm tra.html" in this directory, you can access it with the URI "http://localhost/thử nghiệm.html".

And "test.php"? Just use "http://localhost/test.php". A simple testscript can be:

emang đến "Hello world"; ?>

A new subdirectory for your web? Just make a new directory (e.g. "new") inside the directory "xampphtdocs" (best without whitespaces & only ASCII), create a chạy thử tệp tin in this directory & access it with "http://localhost/new/demo.php".

Further specifics

HTML: Executable: xampphtdocs Allowed endings: .html .htm => basic package

SSI: Executable: xampphtdocs Allowed endings: .shtml => basic package

CGI: Executable: xampphtdocs & xamppcgi-bin Allowed endings: .cgi => basic package

PHP: Executable: xampphtdocs và xamppcgi-bin Allowed endings: .php => basic package

Perl: Executable: xampphtdocs & xamppcgi-bin Allowed endings: .pl => basic package

Apache::ASP Perl: Executable: xampphtdocs Allowed endings: .asp => basic package

JSPhường. Java: Executable: xampp omcatwebappsjava (e.g.) Allowed endings: .jsp => Tommèo add-on

Servlets Java: Executable: xampp omcatwebappsjava (e.g.) Allowed endings: .html (u.a) => Tomcát add-on

Can I move the XAMPPhường. installation?

Yes. After moving of the XAMPP directory, you must execute "setup_xampp.bat". The paths in the configuration files will be adjusted with this step.

Xem thêm: Tập 60: Conan Đối Đầu Với Siêu Trộm Kid, Thám Tử Lừng Danh Conan

If you have sầu installed any server as Windows service, you must first remove sầu the Windows service, và after the moving you can install the service again.

WARNING: The configuration files from your own scripts, like PHPhường applications, are not adjusted. But it"s possible to lớn write a "plug-in" for the installer. With such a plug-in, the installer can adjust such files too.

What are "Automatic start pages" for the WWW directories?

The standard filename for the Apabít function "DirectoryIndex" is "index.html" or "index.php". Every time you are just browsing to lớn a folder (e.g. "http://localhost/xampp/"), & Apabịt can find such a file, Apache is displaying this file instead of a directory listing.

Where can I change the configuration?

Almost all settings in XAMPPhường you can change with configuration files. Just open the tệp tin in a textedit & change the setting you want. Only FileZilla và Mercury should be configured with the application config tool.

Why can"t XAMPP. work on Windows XPhường. SP2?

Microsoft delivers a better firewall with service pachồng 2 (SP2), which starts automatically. This firewall now blocks the necessary ports 80 (http) và 443 (https) & Apabịt can"t start.

The fast solution:

Disable the Microsoft firewall with the toolbar & try to lớn start XAMPP onces more. The better solution is lớn define an exception within the security center.

The following ports are used for basic functionality:

Apache (HTTP): Port 80 Apađậy (WebDAV): Port 81 Apache (HTTPS): Port 443 MySQL: Port 3306 FileZilla (FTP): Port 21 FileZilla (Admin): Port 14147 Mercury (SMTP): Port 25 Mercury (POP3): Port 110 Mercury (IMAP): Port 143 Mercury (HTTP): Port 2224 Mercury (Finger): Port 79 Mercury (PH): Port 105 Mercury (PopPass): Port 106 Tomcát (AJP/1.3): Port 8009 Tommèo (HTTP): Port 8080

Why doesn"t XAMPP work on Vista?

User Account Control (UAC)

In the directory "C:program files" you don"t have full write privileges, even as Admin. Or you have only limited privileges (e.g. for ".xampphtdocs"). In this case you can"t edit a tệp tin.Solution: Raise your privileges within explorer (right cliông chồng / security) or disable the user account control (UAC).

You have sầu installed Apache/MySquốc lộ in "C:xampp" as Windows service. But you can"t start/stop the services with the "XAMPP Control Panel" or can"t uninstall them.Solution: Use the service management console from Windows or disable UAC.

Disabling the User Account Control (UAC)

To disable the UAC, use the program "msconfig". In "msconfig" go to lớn "Tools", select "disable user tài khoản control" & verify your selection. Now you must restart Windows. At the same time, you can enable the UAC again.

How bởi I kiểm tra the md5 checksum?

To compare files, often checksums are used. A standard to lớn create this checksum md5 (Message Digest Algorithm 5).

With this md5 checksum you can demo, if your tải về of the XAMPP package is correct or not. Of course you need a program which can create these checksums. For Windows you can use a tool from Microsoft:

Availability & mô tả tìm kiếm of the File Checksum Integrity Verifier utility

It"s also possible khổng lồ use any other program which can create md5 checksums, lượt thích the GNU md5sum.

As you have installed such a program (e.g. fciv.exe), you can bởi vì following steps:

Download XAMPP (f.e. xampp-win32-1.8.2-0.exe) Create the checksum with: fciv.exe xampp-win32-1.8.2-0.exe pháo And now you can compare this checksum with that one you can find on the XAMPPhường for Windows homepage.

If both checksums equal, all is ok. If not, the tải về is broken or the tệp tin has been changed.

Why have changes in my php.ini not taken effect?

If a change in the "php.ini" has no effect, it"s possible PHP is using a different one. You can verify this with phpinfo(). Go khổng lồ the URI http://localhost/xampp/phpinfo.php and search for "Loaded Configuration File". This value shows you the "php.ini" PHPhường is really using.

Note: After changing the "php.ini" you have to lớn restart Apache so that Apache/PHP.. can read the new settings.

Help! There is a vi khuẩn in XAMPP!

Some antivirus programs mistake XAMPP. for a virus, typically flagging the tệp tin xampp-manager.exe cộ This is a false positive meaning that the antivirus erroneously identified it as a vi khuẩn, when it is not. Before we release each new version of XAMPPhường we run it through virut scanning software. At the moment we are using Kapersky Online Virus Scanner. You can also use the online tool Virus Total for scanning XAMPPhường or send us an email to lớn security (at) ingamemobi.com (dot) org if you find any issue.

How do I configure my antivirut application?

We have sầu included all dependences and servers required for running the bundled website application, so you will find that XAMPPhường installs large numbers of files. If you are installing a XAMPPhường application on a Windows machine with an antivirut tiện ích enabled, this may slow down the installation significantly, and there is also a chance that one of the servers (web server, database server) may be blocked by the antivirut software. If you have an antivirus tool enabled, kiểm tra the following settings for running XAMPP without performance issues:

Add exceptions in the firewall: for Apađậy, MySquốc lộ or any other server. Scan files when executing: If you have enabled the antivirus scan for all files, the executable files for the servers may slow down. Scan the traffic for different URLs: If you are developing with XAMPP.. on your own machine, you can exclude "localhost" traffic in the Antivirut settings.

Why doesn"t the Apache hệ thống start on my system?

This problem can be one of several reasons:

You have started more then one HTTP Server (IIS, Sambar, ZEUS and so on). Only one Server can use port 80. This error message indicate the problem:(OS 10048)... make_sock: could not bind lớn adress 0.0.0.0:80no listening sockets available, shutting down You have other software, such as the Internet Telephone "Skype" which also blocks the port 80. If the problem is "Skype", you can go in Skype lớn Actions --> Options --> Connection --> remove the kiểm tra mark at "use port 80 for an alternate port" & restart Skype. Now it should work. You have a firewall which blocks the Apache port. Not all firewalls are compatible with Apađậy, & sometimes deactivating the firewall is not enough & you must deinstall it. This error message indicates a firewall:(OS 10038)Socket operation on non-socket: make_sock: for address 0.0.0.0:80,apr_socket_opt_set: (SO_KEEPALIVE) Also if Apabịt can start, but your browser can"t connect to it it could be due to lớn one of the following:

Some vi khuẩn scanners can cause this in the same way that firewalls can interfere. You have XP Professional without service paông xã 1. You must have at least SP1 for XAMPP.

Tip: If you have problems with used ports, you can try the tool "xampp-portkiểm tra.exe". Maybe it can help.

Why is my CPU load for Apabít almost 99%?

There is one of two scenarios at play here. Either your CPU is maxing out, or you can browser connect khổng lồ the VPS, but not see anything (the system is trying unsucessfully khổng lồ load the page). In either case you can find the following message in the Apabít log file:

Child: Encountered too many AcceptEx faults accepting client connections.winnt_mpm: falling back to "AcceptFilter none".

The MPM falls baông xã to a safer implementation, but some client requests were not processed correctly. In order to lớn avoid this error, use "AcceptFilter" with accept filter "none" in the "xamppapacheconfextrahttpd-mpm.conf" tệp tin.

Why are pictures & style-sheets not displayed?

Sometimes there are problems with displaying pictures and style-sheets. Especially if these files are located on a network drive. In this case you can enable (or add) one if the following lines in the tệp tin "xamppapacheconfhttpd.conf":

EnableSendfile offEnableMMAPhường off

This problem can also be caused by programs for regulating bandwidth, lượt thích NetLimiter.

How vì chưng I send gmail with XAMPP?

To configure XAMPP to use the included sendmail.exe pháo binary for email delivery, follow these steps:

Edit the XAMPPhường. "php.ini" file. Within this file, find the section and replace it with the following directives. Change the XAMPPhường installation path if needed. sendmail_path = ""C:xamppsendmailsendmail.exe" -t" Edit the XAMPP "sendmail.ini" file. Within this tệp tin, find the section & replace it with the following directives: smtp_server=smtp.tin nhắn.com smtp_port=465 smtp_ssl=tự động error_logfile=error.log auth_username=your-gmail-username