Local installation of LAMP and WPMU

  
under Ubuntu Linux 8.04

1. Install LAMP


System->System Management->New Stand Package Manager, Open Synaptic, Edit –> ; Use the task grouping tag package –> Check the LAMP Server.


During the installation process, you will be prompted to set the password of the root user of mysql.


The configuration file is in the /etc/apache2 directory


Add a line in /etc/apache2/httpd.conf: ServerName 127.0.0.1


2. Install phpmyadmin


sudo apt-get install phpmyadmin


Automatically create virtual directory configuration file phpmyadmin.conf in /etc/apache2/conf.d directory after installation


After installation, directly enter http://localhost/phpmyadmin to log in, create a wpmu database


3. Start mod_rewrite module


sudo A2enmod rewrite


4. Install WPMU


(1) Download WPMU from the official homepage, extract it to ~/blog directory (/home//blog)


(2) Modify the directory attribute: chmod 755 /home//blog /home//blog/wp-content


(3) Configure the WPMU virtual directory. Modify /etc/apache2/httpd.conf or create a wpmu.conf file in /etc/apache2/conf.d and add the following:


Alias ​​/blog /home//blog

/blog>

Options Indexes FollowSymLinks

DirectoryIndex index.php

AllowOverride FileInfo Options


(4)Modify/Etc/hosts file (because wpmu must use domain name format)


Modify 127.0.0.1 localhost

127.0.0.1 www.my.com my.com localhost


(5) Enter in firefox: http://my.com/blog. Install WPMU


OK.

Copyright © Windows knowledge All Rights Reserved