Wednesday, January 26, 2011

Let WordPress in Ubuntu on the run

Help WordPress station were built based on Ubuntu local testing environment, the way to the WP friends recommended under Ubuntu Linux operating system open source this super-help build local Ubuntu fans Apache2 + Ubuntu + PHP5.1.6 + MySQL5.0.24a environment, so that you can do what you want to do work, if you want to build the site, by the way recommended by WordPress this open source super blog procedures-webmaster should have an experience when you develop a good website to upload files to server, later if you make changes to the layout or module, you must change the content uploaded on the server, there is a problem, you changed the test work do? can't modify, side while passing the test on the? if you change the error, add your site traffic is good, will scare innocent people to the site has had a negative impact on the image, the best solution is to build a WordPress locally on Ubuntu in a test environment, so that you can solve the above problem.

Closer to home, here's how to make WordPress for said in the run up on Ubuntu: [Apache2 + Ubuntu + PHP5.1.6 + MySQL5.0.24a] reference: NetworkAdvancedSerivce-UbuntuChinaWiki1, install Apache2 + PHP5 + MySQLsudoapt-getinstallapache2libapache2-mod-securitylibapache2-mod-php5php5php5-gdmysql-serverphp5-mysqlphpmyadmin2, configure php.inisudogedit/etc/apache2/php5/php.ini if not following this sentence or a comment, add this sentence or cancel previous English semicolon ";" Extension = mysql.so3, configure apache2.con sudogedit/etc/apache2/mod_rewrite module loaded apache2.con, adding the following statement: LoadModulerewrite_module/usr/lib/apache2/modules/mod_rewrite.so mod_deflate module is loaded, add the following statement: LoadModuledeflate_module/usr/lib/apache2/modules/mod_deflate.so what modules need to be added, remember they are/usr/lib/apache2/modules/here. Joined a virtual host: DocumentRoot/var/www/OptionsFollowSymLinksAllowOverrideall complete installed apache and mysql will start automatically. What optimization, security, do not have to consider that they are able to act according to their own needs to be configured, the key to this Server only your own. Later if you need to change the configuration, you only need to remember the commands. Sudo/etc/init.d/apache2restart # restart apacesudogedit/etc/apache2/php5/php.ini # configuration php.inisudogedit/etc/apache2/apache2.conf # configuration apache2.con/var/www/# home directory location 4, install WordPress last downloaded WordPress into a directory, use/var/www/http://localhost/wordpress/or http://127.0.0.1/wordpress/access can be a normal installation. My space used by MySQL and the local version are 4.0/5.0, so I'm inside this wp-includes/wp-db.php setting not garbled. Find: $ dbh = this-> & nbsp @ mysql_connect ($ dbhost, $ dbuser, $ dbpassword); in the following plus: $ this-> query ("SETNAMES ' utf8 '"); Server-well, now you can use it to debug plug-ins, templates, you can Rewrite.

No comments:

Post a Comment