Sunteți pe pagina 1din 7

Work-related Project

Installing a development version of WordPress on a USB stick


This is a convenient and portable solution to developing a WordPress website. It is also a quicker and easier solution than installing the server software on your own machine. ou should use a !"# stick of at least $%# to allow space for the software and the website files. ou can have other files on the !"# stick but make sure they are not taking up too much space. ou need just two pieces of software&

"erver'%o ( a portable webserver that will run directly from your !"# stick and includes P)P and *y"+,. WordPress.

The instructions below describe how to install the software and get your WordPress website up and running.

1. Download Server2Go
-pen the "erver'%o webpage at http&..www.server'go-web.de.inde/.html and review the features of "erver'%o. 0ick the 1ownloads tab to open the 1ownloads page where there are a number of packages you can choose from. 2or this installation we will use the second one in the list ( P)P 3.'.45 "+,IT65 *y"+, 3.7.8$ with the '.7.4$ version of 9pache. 0lick the link to start the download. :2ig $.;

Fig. 1 Download Server2Go package

-nce the file has downloaded5 un<ipit to your !"# drive. It will take up appro/imately '77*b of disk space. This will create a folder named server'go=a' with subfolders and files needed for the server installation inside it. :2ig. '; :>ote& in the illustration5 the sever'go folder is in a parent "erver folder. It is not necessary to install it in this way and your server'go folder will be in the root of your !"# drive.;
!pdated& $7.$$.7? Page $ of @ s'gInstructs

Work-related Project

Fig 2 server2Go folder str!ct!re

2. Start t"e Server


#efore starting the server you need to edit the pms#config.ini file :2ig ';. -pen the file in a te/t editor :e.g. >otepad; and set the following variables& "tart,ocalA $ ,ocal*irrorA7 !se 6dit B 2ind to locate these in the file. #y default5 the "erver will start up in Internet 6/plorer but if you prefer to use 2irefo/ you can set the #rowserType variable as follows& #rowserTypeA2IC62-D 9gain5 use 6dit B 2ind to locate the variable. -nce you have made these changes5 save and close the file. 1ouble-click the "erver'%o.e/e file icon :2ig '; to start the server. This should open the server home page in whatever browser you specified when you edited the config. ini file above. :2ig E;

!pdated& $7.$$.7?

Page ' of @

s'gInstructs

Work-related Project

Fig. $ Server2Go "ome page

%ote When you close the browser5 the "erver will shut down. This is probably the best option although you can set a variable in the config.ini file to prevent it from doing this.

$. &reate t"e WordPress data'ase


ou will use php*y9dmin to create the *y"+, database that will be used by your WordPress website. -pen this by clicking the php*y9dmin link in the Tools section in the right sidebar. :2ig. 8;. %ote Ignore the security hole message. 2or development on a memory stick as you are doing here5 it doesnFt matter that you are not using a password for the root account. In the 0reate 1atabase bo/ type the name of the database you want to create5 for e/ample5 wordpress. 0lick the 0reate button to create the database. 9 new window will open showing the blank database that you have just created and you will see its name in the dropdown list of databases on the left.

!pdated& $7.$$.7?

Page E of @

s'gInstructs

Work-related Project

Fig. ( &reating a data'ase !sing p"p)*+dmin

( Install WordPress
1ownload WordPress from http&..wordpress.org.download. Gersion '.4.E is the latest stable version. !n<ip the wordpress-'.4.E.<ip file into the htdocs subfolder of the server'%o folder on your memory stick. :2ig. ';. -pen the wordpress.folder which has been created as a subfolder of htdocs. :2ig.3;

!pdated& $7.$$.7?

Page 8 of @

s'gInstructs

Work-related Project

Fig. , WordPress folder str!ct!re

#efore installing WordPress you need to make some changes to the configuration file to enable it to find your database. -pen the wordpress folder and make a copy of the wp-config-sample.php file and rename it wp-config.php. %ote ItFs not strictly necessary to make a copy of the file5 you could simply rename the wp-config-sample.php file. )owever5 making a copy means that you can always revert to the original if you mess things up. -pen the wp-config.php file in a te/t editor :e.g. >otepad;. 6dit the following lines& define('DB_NAME', 'wordpress'); define('DB_U E!', 'root'); define('DB_'A define('DB_+) T', ',o-a,host'); -han0e this 1a,#e // The name of the database // "o#r M$ %& #sername // ../ -han-e $o# won't need to

()!D', ''); // ***and password

The name of the database is the name you gave to the database you created in step E above. The user is root and the password should be left blank as you did not create a password for the database. -nce you have made the changes5 save and close the file. "tart the server if it is not already running and open the Wordpress installation screen by
!pdated& $7.$$.7? Page 3 of @ s'gInstructs

Work-related Project

typing "ttp --local"ost (..1-wordpress-wp/admin-install.p"p into your browser. The WordPress installation screen should open :2ig. 4;.

Fig. 0 WordPress installation screen

Type the name of the website you want to create into the #log Title bo/ - e.g. "ample 0harity Website :you can change this later; and an email address :note5 this doesnFt need to be a FliveF email address when you are using WP for local development;. 0lick Install WordPress to start installation. 9fter a few minutes you should see the WordPress success screen5 confirming that WordPress has been successfully installed. :2ig. @;.

Fig. 1 &onfirmation t"at WordPress "as 'een s!ccessf!ll* installed

0opy the randomly generated password to the clipboard. ou will change this password to something more memorable once you have logged in so thereFs no need to keep a copy of it although you can paste it into a te/t file if you like.;. 0lick the ,og In button to open the ,og In screen :2ig. ?;.
!pdated& $7.$$.7? Page 4 of @ s'gInstructs

Work-related Project

Fig. 2 WordPress 3og In screen

6nter the username :admin; and paste in the password you copied from the previous screen. 0lick the ,og in button. ou will now see the 1ashboard :the main administration panel; for the WordPress website you have just created. :2ig. H;.

Fig. 4 WordPress Das"'oard

#efore e/ploring further you should change your wordpress password. :-therwise you will have to use the impossible-to-remember randomly generated one each time you want to login.; To change your password5 click admin at the top right of the screen to open the admin profile. "croll down to the >ew Password section at the end and enter your new password. -nce you have done5 click update profile. %ote 2or the development version on the memory stick5 you do not need to worry about the security of the password5 you need to make sure it is something you will remember. ou can now view the website you have just created.by clicking the Gisit "ite button. To return to the dashboard5 either use the back button or retype the url you used to start WordPress previously. ou now need to familiarise yourself with the 1ashboard and the components of a WordPress website.

!pdated& $7.$$.7?

Page @ of @

s'gInstructs

S-ar putea să vă placă și