appwiki:xampp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
appwiki:xampp [2021/08/22 19:49] – created yingappwiki:xampp [2024/04/14 15:55] (current) – [configure file] ying
Line 63: Line 63:
 ^MySQL configuration |/Applications/xampp/etc/my.cnf | ^MySQL configuration |/Applications/xampp/etc/my.cnf |
  
 +  * enable PHPZip module for php <code>\xampp\php\php.ini</code>
 +    * remove ; from <code>;extension=zip</code>
 +    * save and restart
 ====== xampp customize htdoc location path ====== ====== xampp customize htdoc location path ======
  
Line 95: Line 98:
 </code> </code>
     * also make your rewrite module for php is loaded in httpd.conf <code>LoadModule rewrite_module modules/mod_rewrite.so</code>     * also make your rewrite module for php is loaded in httpd.conf <code>LoadModule rewrite_module modules/mod_rewrite.so</code>
 +
 +
 +====== xampp customize local domain for a local web path ======
 +
 +Steps:
 +  - use hosts file to point the domain to local 127.0.0.1, example "test.com", also include localhost to be safe <code>
 +127.0.0.1       localhost
 +127.0.0.1       test.com
 +</code>
 +  - in xampp/apache/conf/extra/httpd-vhosts.conf, add your local domain solver "test.com", and since localhost is default domain name for root dir, be sure add it as well to use localhost as usual <code>
 +<VirtualHost *>
 +    DocumentRoot "/App_Server/xampp/htdocs/wp_site_test_com"
 +    ServerName test.com
 +    <DIRECTORY "/App_Server/xampp/htdocs/wp_site_test_com">
 +    Order allow,deny
 +    Allow from all
 +    </DIRECTORY>
 +    ServerAlias www.test.com
 +    ErrorLog "logs/test.com-error.log"
 +    CustomLog "logs/test.com-access.log" common
 +</VirtualHost>
 +<VirtualHost *>
 +    DocumentRoot "/App_Server/xampp/htdocs"
 +    ServerName localhost
 +</VirtualHost>
 +</code>
 +  - now, restart apahce server, type "test.com" should visit your local path for test.com
 +  - extra tips:
 +    - for wordpress install at that path, it will pop up ask database server setting in wordpress initial step,
 +    - since wordpress alone dont create database for itself, you need go http://localhost/phpmyadmin/ to create a database for wordpress, i would suggest name as "wpdb_test_com" with collation setting
 +    - then, continue wordpress db connection with the db name you created, default db for xampp is root/no pass. rest as default should finish wordpress initialization
 ====== xampp customize http broadcast port ====== ====== xampp customize http broadcast port ======
   - edit xampp/apache/conf/httpd.conf;   - edit xampp/apache/conf/httpd.conf;
  • appwiki/xampp.1629661784.txt.gz
  • Last modified: 2021/08/22 19:49
  • by ying