ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Complete guide to wordpress, Apache , php, MySQL server on your computer

Updated on November 5, 2012

Apche php Mysql Wordpress

Apche php Mysql Wordpress
Apche php Mysql Wordpress

Now you can make your very own personal computer as a server that hosts your web site. No worries about web space , as your hard Disk will provide you space , no worry on ftp account, as you can just trans fer data like “Copy & Paste” as simple as that , and simply no bounds to freedom. And on top of it its absolutely FREE!!

Your Computer a Simple Webserver!

You just need to follow the following steps very precisely :

1) To set up your server need the following softwares:

a)Apache 2.2 httpd server which is a freeware can be downloaded.

b)php5.2.3 download (Download 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 running:
Keep clicking next etc
2) A default domain will be created, I would recommend you use the default.
3) Email can be what ever you want.
4) You should select the option to use it as a service.
5) Keep going until it is installed and let it start the service.

6) Browse to http://localhost and you should get a message that

It Works!

3)Installing PHP

During installation if it asks for the server type, then select Apache 2.2x

give the path where you Apache configurations files are present

My case : C:\Program Files\Apache Software Foundation\Apache2.2\conf

this will automatically configure httpd.conf if not then u can configure it manually with the steps given below in Configuring 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 probably need to change Temp folder per missions for sessions etc to work if using Vista or windows 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 (important) make sure there is no ; at the front
//If you can’t find it just add extension=php_mysql.dll to the extensions 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 automatically con figured while installing php5)

Manual configuration

1) Go to C:\Program Files\Apache Software Foundation\Apache2.2\conf

2) open up httpd.conf

Search for

#Load Module mime_magic_module modules/mod_mime_magic.so and

add just above it

Load Module 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 DirectoryIndex index.html add below it

DirectoryIndex 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 containing ..

<?php phpinfo(); ?>

browse to http://localhost/phpinfo.php If you get the PHP information then it’s working

[NB: Troubleshooting..

here are some of the problems i faced while staring 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 an apache2.2 server which is not com pat i ble with that php dlls . so just downgrade your PHP 5.3 to php 5.2

it works!!

b) if u get errors related to per missions make_socket: no listener 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 double click php.exe you will see command prompt flashing some errors (if there exits) like, unable to load modules… etc.. OR u get some asepll-15.dll, libcs.dll, sqllite3.dll file missing error.. then What u can do now is check whether those extensions are selected which are necessary (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 password 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 create a database .. lets say “wordpress”

mysql> create database wordpress

check whether its working:

mysql>connect wordpress

mysql>select sys date() from dual;

it will show the your systems date n time

Browse again to http://localhost/phpinfo.php and make sure there is now a box for MySQL

Its all about making your computer a webserver..

6)What next!!

To get you started.. Go to Wordpress.org down load the latest wordpress. Follow the Instruction very simple. here is a clip

Installa tion: Famous 5-minute install

  1. Unzip the package in an empty directory.
  2. Open up
    wp-config-sample.php
    with a text editor like Word Pad or sim i lar and fill in your database connection details.
  3. Save the file as
    wp-config.php
  4. Upload every thing.
  5. Open /wp-admin/install.php in your browser. This should setup the tables needed for your blog. If there is an error, double 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.
  6. Note the pass word given to you.
  7. The install script should then send you to the login page. Sign in with the user­name
    admin
    and the pass word generated during the installation. You can then click on ‘Profile’ to change the password.

( just remember your Username is “root” , password “[your choice]” ‚database name “wordpress” u just created that in the previous step , host name “localhost” )

7) Registration.

legal stuffs hun..

Its simple.

Go to Dyn DNS n resister your IP (for dynamic IP service) there. and down load the client.

And that's it! you are done with your very own personal computer as a Web server hosting your website!

Feed Back

Was the hub Useful to you?

See results

Comments

    0 of 8192 characters used
    Post Comment

    • Supertech90 profile image

      Supertech90 

      5 years ago from Orange County New York

      I found the info useful and the spacing errors didn't bother me :)

    • simpy63 profile imageAUTHOR

      Abhilash Nayak 

      5 years ago from Bhubaneswar, india

      @Elenore:: thanks for pointing the mistakes..

    • profile image

      Elenore 

      5 years ago

      there are a lot of errors in this document... words with spaces in them (com puter wor ies to name just 2 of several dozen). If you fix these obvious errors, this page would then be a 5 out of 5

    • profile image

      Akash 

      6 years 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...

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)