Official Method
Portable Method
Default Password for MySQL
Create a Database for Wordpress site
Download from http://www.apachefriends.org
click on the xampp-control application to go. start web
xampp start apache
start sql
xampp start mysql
start web
xampp stop apache
start sql
xampp stop mysql
in Linux, extract the LAMPP with sudo, or “MySQL couldn't start” error will pop-up later.
sudo tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt # or if you want to extract here sudo tar xvfz xampp-linux-1.7.3a.tar.gz
Enter in Browser like
ServerName.local
or
192.168.1.machineIP
or
ServerName
Apache configuration | /Applications/xampp/etc/httpd.conf, /Applications/xampp/etc/*.conf | |
---|---|---|
Apache logs | /Applications/xampp/xamppfiles/logs/access_log, /Applications/xampp/xamppfiles/logs/error_log | |
PHP configuration | /Applications/xampp/etc/php.ini | like upload_max_filesize |
MySQL configuration | /Applications/xampp/etc/my.cnf |
\xampp\php\php.ini
;extension=zip
# DocumentRoot "/App/xampp/htdocs" DocumentRoot "/SiteDir"
# <Directory "/App/xampp/htdocs"> <Directory "/SiteDir">
# ServerRoot "/xampp/apache" ServerRoot "/PATHTOHERE/xampp/apache"
<Directory "/Dev/WebSys2"> Require all granted </Directory> Alias /web2 "/Dev/WebSys2"
<Directory "/Dev/WebSys2"> AllowOverride All Require all granted </Directory> Alias /web2 "/Dev/WebSys2"
LoadModule rewrite_module modules/mod_rewrite.so
Steps:
127.0.0.1 localhost 127.0.0.1 test.com
<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>
ServerName localhost:80
Listen 80
ref: http://blog.foxxtrot.net/2010/02/blocking-domain-smacks-in-apache.html
RewriteEngine on RewriteCond %{HTTP_REFERER} smackingdomain.com RewriteRule .+ [F] # Return 403 Forbidden RewriteRule .+ http://jokestersite.com/ [R] # Redirect back on the joker.
xampp security
tables | MySQL access control | ||
---|---|---|---|
user | host name + user name + password | select,insert,update,delete rights | which means knowing user and pass wont grant access, and possible to set local only access from its php server; also it mean sets foreign server call possible with maybe coincided names |
db | database level access control | ||
table priv | table level access control | ||
columns_priv | column level access control | ||
procs_priv | procs access control |
SHOW GRANTS FOR 'joe'@'office.example.com';
upload_max_filesize = 50M post_max_size = 50M