Thursday, April 26, 2012

Install Appserv for Php and Mysql Webserver with testing

at this post i will explain about installing Appserv on windows.
Appserv is web server include Php 5 , Mysql and Phpmyadmin.

After you download the setup.
1. Run setup
2. Click Next
3. Click i Agree
4. Input Destination Folder, default is in drive C:\appserv. if you want your data save at other drive ( in drive D or E ) you may change to d:\appserv . usually i change to drive D for safety if the my windows need to re install. so your data safe.
Click Next
5. Check all components. Click next
6. Apache Configuration fill the server name localhost , administrator email address admin@localhost.com (or your email , but not affects ) , Port 80 .
the important things at this step is server name and port. if you input server name localhost then you can access your webserver at browser input //localhost/ , if you change to myserver then to access it input //myserver/.
by default port is 80 you can access your webserver with standart address ( //localhost/ ).
if you change the port to other port eg : Port 1200 . then you access your webserver with port //localhost:1200/
the port may change if you have two webserver or the port already use with another program or service like IIS windows  server.
Click Next
7.  MySql Configuration . input your root password and check enable innoDB.
By Default MYSQL user is root (lower case) you can access Mysql DB with user root and your password.
Click next.
8.Install  Progress will run and after that . Check all for start apache and mysql. then Finish
your webserver is ready to try and test.

you can check with your Browser and type //localhost the you can see page Appserv home

to go phpmyadmin click phpmyadmin or type /localhost/phpmyadmin and input your password with username root

for upload your php files you can put your files at c:/appserv/www/
you can create folder at www folder

to try you can try create hello world php
<?php


echo "Hello World ";
?>
save it with name hello.php
then put at c:/appserv/www/

then access at browser type  /localhost/hello.php

Tadaa Hello world

No comments:

Post a Comment