Method of manually recovering XAMPP after system reload

Source: Internet
Author: User

Recently to the Computer Configuration upgrade, add an SSD to do the boot disk, re-installed the system, the result of the XAMPP in the directory drive letter changed (d disk became F), all applications are not working properly. Here's where you can share the manual changes.

First open the xampp\properties.ini file, and all of the disk characters from D: Change to F:

[general]installdir=f:\xamppbase_stack_name= Xamppbase_stack_version=5.6.3-0base_stack_platform=windowsrequire_root_privileges=1base_user=xiaobase_user_ Name=xiao[email protected]hostname=[apache]apache_server_port=80apache_server_ssl_port=443apache_root_ Directory=/xampp/apacheapache_htdocs_directory=f:\xampp/htdocsapache_domainname=127.0.0.1apache_configuration_ Directory=f:\xampp/apache/confapache_unique_service_name=[mysql]mysql_port=3306mysql_host=localhostmysql_root_ Directory=f:\xampp\mysqlmysql_binary_directory=f:\xampp\mysql\binmysql_data_directory=f:\xampp\mysql\datamysql _configuration_directory=f:\xampp/mysql/binmysql_arguments=-u root -p 3306mysql_unique_service_ Name=[php]php_binary_directory=f:\xampp\phpphp_configuration_directory=f:\xampp\phpphp_extensions_directory=f : \xampp\php\ext 

At this point, Apache and Tomcat still fail to try to start. The reason Apache failed is because I installed WordPress. WordPress configuration file is not modified, Apache boot will be error. So open the xampp\apps\wordpress\conf directory. Modify the path of the four configuration files. This will allow Apache to run normally.

There is no Tomcat in the initial configuration of the XAMPP, so Tomcat needs to be individually modified to run the configuration. Because the system is re-installed, the JDK is not reinstalled, but the original hard disk's JDK directory is configured in the system path. When Tomcat starts, it detects the registry, so manually create the Hkey_local_machine\software\javasoft\java development Kit to avoid errors.

The startup script for Tomcat is as follows:

@echo  offif  "%os%"  ==  "windows_nt"  goto winnt:win9xecho don ' t be  Stupid! win9x don ' t know servicesgoto exit:winntecho [xampp]: searching  jdk home with reg query ...set keyname=hkey_local_machine\software\ javasoft\java development kitreg query  "%keyname%"  /sif %errorlevel% ==  1  (  echo . [XAMPP]: Cannot find current JDK  Installation!   echo . [xampp]: cannot set java_home. aborting  ...  goto :end) set  "current_dir=%cd%" set  "catalina_home=%current_dir%" set  cmd=reg query  "%keyname%"  /sfor /f  "tokens=2*"  %%i in  ('%cmd% ^|  find  "Javahome" ')  do set java_home=%%jecho.echo [xampp]: seems fine! Echo [xampp]: using %javA_home%echo. set jre_home=%java_home%echo [xampp]: using java_home=%java_home%echo  [xampp]: using catalina_home=%catalina_home%echo [xampp]: using jre_home=%jre_ home%echo installing tomcat as an service.\bin\service.bat install  Tomcat7goto exit:end:exit




Method of manually recovering XAMPP after system reload

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.