Complete guide to wordpress, Apache , php, MySQL server on your computer
By simpy63
Apche php Mysql Wordpress
Ebooks
|
|
Murach's PHP and MySQL by Joel Murach and Ray Harris (2010, Paperback)
Current Bid: $30.00
|
|
|
PHP & MySQL Web Development All-in-One Desk Referen
Current Bid: $11.31
|
|
|
NEW - PHP & MySQL For Dummies, 4th Edition
Current Bid: $17.73
|
|
|
BOOK Head First PHP & MySQL Beighley Morrison Book NEW
Current Bid: $14.92
|
|
|
Head First PHP & MySQL, Lynn Beighley, Michael Morrison, Excellent Book
Current Bid: $20.49
|
|
|
NEW Murach's Php and Mysql - Murach, Joel/ Harris, Ray
Current Bid: $36.14
|
Now you can make your very own per sonal com puter as a server that hosts your web site. No wor ries about web space , as your hard Disk will pro vide you space , no worry on ftp account, as you can just trans fer data like “Copy & Paste” as sim ple as that , and sim ply no bounds to free dom. And on top of it its absolutely FREE!!
Your Computer a Simple Webserver!
You just need to fol low the fol low ing steps very precisely :
1) To set up your server need the fol low ing softwares:
a)Apache 2.2 httpd server which is a free ware can be down loaded.
b)php5.2.3 down load (Down load the thread safe for windows)
c)MySQL5 Server download
2) Installing apache
Click on the apache installer
1) Once you have the installer up and run ning:
Keep click ing next etc
2) A default domain will be cre ated, I would rec om mend you use the default.
3) Email can be what ever you want.
4) You should select the option to use it as a ser vice.
5) Keep going until it is installed and let it start the service.
6) Browse to http://localhost and you should get a mes sage that
It Works!
3)Installing PHP
Dur ing instal la tion if it asks for the server type, then select Apache 2.2x
give the path where you Apache con fig u ra tions files are present
My case : C:\Program Files\Apache Soft ware Foundation\Apache2.2\conf
this will auto mat i cally con fig ure httpd.conf if not then u can con fig ure it man u ally with the steps given below in Con fig ur ing PHP apache section
After installing you should have your php installed in C:\Program Files\PHP
2) Now go to that folder (where you installed php)
and open php .ini in Notepad
press Ctrl-F and type in ;cgi.force_redirect=1 When you find it, change it to cgi.force_redirect = 0 /* zero */
3) Now press Ctrl-F and type extension_dir = “./” When you find it change it to
PHP 5
extension_dir = “C:\Program Files\PHP\ext”
4) Next find ;upload_tmp_dir = change it to upload_tmp_dir = “C:\WINDOWS\Temp“
You will prob a bly need to change Temp folder per mis sions for ses sions etc to work if using Vista or win dows 7
5) Next find session.save_path = /tmp and change it to session.save_path = “C:\WINDOWS\Temp”
6) Now search for display_errors = Off change it to display_errors = On
7) search for ;extension=php_gd2.dll remove the ;
Search for extension=php_mysql.dll (impor tant) make sure there is no ; at the front
//If you can’t find it just add extension=php_mysql.dll to the exten sions list
9) Search for extension=php_mbstring.dll make sure there is no ; at the front
Here is a list that should not have ; in front
[PHP_DBA]extension=php_dba.dll[PHP_DBASE]extension=php_dbase.dll[PHP_GD2]extension=php_gd2.dll[PHP_LDAP]extension=php_ldap.dll[PHP_MBSTRING]extension=php_mbstring.dll[PHP_MIME_MAGIC]extension=php_mime_magic.dll[PHP_MING]extension=php_ming.dll[PHP_MSQL]extension=php_msql.dll[PHP_MYSQL]extension=php_mysql.dll[PHP_OPENSSL]extension=php_openssl.dll[PHP_PDO]extension=php_pdo.dll[PHP_PDO_MYSQL]extension=php_pdo_mysql.dll
10) We are done with php.ini so save the file
11) Find 2 files in your C:\Program Files\PHP folder .. php5ts.dll for PHP 5 libmysql.dll Copy both files to your C:\WINDOWS\system32 directory
4)Configure PHP-Apache
(May be auto mat i cally con fig ured while installing php5)
Manual configuration
1) Go to C:\Pro gram Files\Apache Soft ware Foundation\Apache2.2\conf
2) open up httpd.conf
Search for
#Load Mod ule mime_magic_module modules/mod_mime_magic.so and
add just above it
Load Mod ule php5_module “C:\Program Files\PHP\php5apache2_2.dll“ 3) Next search for AddType application/x-gzip .gz .tgz add below it
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
4) Next search for Direc to ryIn dex index.html add below it
Direc to ryIn dex index.php
5) Save the file
5) Restart apache then browse to the htdocs folder (this is your local host ) place in there a file called phpinfo.php con tain ing ..
<?php phpinfo(); ?>
browse to http://localhost/phpinfo.php If you get the PHP infor ma tion then it’s working
[NB: Trou ble shooting..
here are some of the prob lems i faced while star ing server.
a) if i get error like C:\Pr~\php5apache2_2.dll can not load mod ule into server then. u can must be using a apache2.2 server which is not com pat i ble with that php dlls . so just down grade your PHP 5.3 to php 5.2
it works!!
b) if u get errors related to per mis sions make_socket: no lis tener on 0.0.0.0:80 the u can try to stop/Uninstall IIS service
c) finally check if ever thing works by going to C:\Program Files\PHP and dou ble click php.exe you will see com mand prompt flash ing some errors (if there exits) like, unable to load modules… etc.. OR u get some asepll-15.dll, libcs.dll, sqllite3.dll file miss ing error.. then What u can do now is check whether those exten sions are selected which are nec es sary (see above)
]
5)Installing MySQL
Be care ful if you intend to install MySQL5 and you are using old/sub stan dard scripts. It is strict and many queries will fail.
Click on the exe cutable you down loaded n choose all the default options (or rather they are cho sen for you).
You needn’t have a pass word you can leave it blank, user name will be root automatically.
If it started up ok I would now reboot my PC.
start MySQL CUI n type in the
pass word:********
then cre ate a data base .. lets say “wordpress”
mysql> cre ate data base wordpress
check whether its working:
mysql>connect word press
mysql>select sys date() from dual;
it will show the your sys tems date n time
Browse again to http://localhost/phpinfo.php and make sure there is now a box for MySQL
Its all about mak ing your com puter a webserver..
6)What next!!
To get you started.. Go to Wordpress.org down load the lat est word press. Fol low the Instruc tion very sim ple. here is a clip
Installa tion: Famous 5-minute install
- Unzip the pack age in an empty directory.
- Open up
wp-config-sample.phpwith a text edi tor like Word Pad or sim i lar and fill in your data base con nec tion details.- Save the file as
wp-config.php- Upload every thing.
- Open /wp-admin/install.php in your browser. This should setup the tables needed for your blog. If there is an error, dou ble check your wp-config.php file, and try again. If it fails again, please go to the sup port forums with as much data as you can gather.
- Note the pass word given to you.
- The install script should then send you to the login page. Sign in with the username
adminand the pass word gen er ated dur ing the instal la tion. You can then click on ‘Pro file’ to change the password.( just remem ber your User name is “root” , pass word “[your choice]” ‚data base name “word press” u just cre ated that in the pre vi ous step , host name “localhost” )
7) Registration.
legal stuffs hun..
Its sim ple.
Go to Dyn DNS n resister your IP (for dynamic IP ser vice) there. and down load the client.
And thats it! you are done with your very own per sonal com puter as a Web server host ing your website!
please visit my website --> www.simplybits.co.cc <--for more interesting articles
Feed Back
Was the hub Useful to you?
See results without votingBloggers Guide
|
|
CUSTOM WEBSITE DESIGN PACKAGE. FREE LOGO DESIGN. ECOMMERCE, HTML 5, & WORDPRESS
Current Bid: $299.00
|
|
|
500 WordPress Themes With Unrestricted Private Label Rights - Make Money Online
Current Bid: $7.49
|
|
|
ESTABLISHED WORDPRESS ARCADE GAMING WEBSITE INCLUDING 25 THOUSAND GAMES
Current Bid: $31.00
|
|
|
NEW - WordPress For Dummies, 3rd Edition
Current Bid: $3.51
|
|
|
Professional Wordpress Plugin Development by Ozh Richard, Brad Williams and...
Current Bid: $15.00
|
|
|
500 Professional Wordpress Themes and Templates on CD-ROM Ready to Use +PLR
Current Bid: $7.95
|
Akash 2 months ago
Very good effort indeed.Here is a very good link to explain how to install and configure http://wordpress.tv/2009/01/26/installing-wordpres