Running local copy of web apps (other than WP)
Learning Web programming (PHP, Perl, Ruby, Python)
NOT RECOMMENDED: running a local production server </li></ul>
WordPress Requirements WordPress XAMPP PC OSX Version 3.1 3.2 1.7.7 1.7.3 PHP 4.3 5.2.4+ 5.3.8 5.3.1 MySQL 4.1.2 5.0+ 5.5.16 5.1.44 Optionally, you may also need mod_rewrite and email capabilities, depending on how you want to configure your installation, or what plugins you want to test.
Introducing XAMPP <ul><li>Collection of open source apps
XAMPP Control may even show it as started, but it hasn't.
On OSX it actually tells you why: </li><ul><li>There's another process listening to port 80 . You need to find that process and terminate it with extreme prejudice. </li></ul><li>Chances are good that process may be Skype .
Quit Skype , and start Apache again. You should be good to go. </li></ul>
table prefix (wp_) </li></ul></ul><ul><li>If the install program can't write your wp-config.php file, it'll display the text, and ask you to cut and paste it into the file, using an editor of your choice. </li></ul>
Virtual Hosts <ul><li>Chances are you'll want/need more than one web site/app hosted on your machine.
Virtual hosts (aka vhosts) allows you to host multiple web apps or sites, on the same machine.
This is what the hosting companies use for shared hosting. </li></ul>
Virtual Hosts: Files <ul><li>hosts - shortcuts DNS </li><ul><li>Win: C:WindowsSystem32driversetchosts
OSX: /Applications/XAMPP/xamppfiles/etc/extrahttpd-vhosts.conf </li></ul><li>After modifying these files, restart Apache </li></ul>
Virtual Hosts: hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 127.0.0.1 lphsgrads 127.0.0.1 lphsgrads2.dev 127.0.0.1 aaa <ul><li>The 127.0.0.1 IP address is your localhost machine
Just add another line with the localhost IP, a space or two, and your desired domain name </li></ul>
Virtual Hosts: httpd.conf <ul><li>This is the main configuration file for Apache
Insure the include for httpd-vhosts.conf is uncommented: </li></ul>
Virtual Hosts: httpd-vhosts.conf NameVirtualHost *:80 <VirtualHost *:80> ServerName mybloggittyblog.blog DocumentRoot " /Applications/XAMPP/xamppfiles/htdocs/myblog " <Directory " /Applications/XAMPP/xamppfiles/htdocs/myblog " > Options Indexes FollowSymLinks ExecCGI AllowOverride FileInfo Order allow,deny Allow from all </Directory> </VirtualHost> <ul><li>For a new vhost: </li><ul><li>Copy the VirtualHost segment, and change the ServerName
DocumentRoot and Directory must be the same, and point to the document root of your virtual site
Use forward slashes between dirs, even on Windows. No slash at the end.