Blog de Warticles

Leave a comment and help us improve.You can also visit the Blogster blog on Blogster.com at www.blogster.com/goutham

How To Run Your Own Web Server In A Few Minutes on Windows OS

Posted by warticles on November 19, 2010

A step by step guide on how to install PHP 5.x.x, Apache 2.2.x, phpMyadmin and MySql 5.x.

Have you ever thought of running your own web server before? Does that sound too geeky? Actually, configuring your own web server is an easy task if you have enough information to refer from especially when you encounter errors. Let me get straight to installions of softwares required to build a functioning web server. First you would need PHP and Apache. If you only plan to test your PHP scripts, then those two softwares are enough for you. You will use phpMyAdmin and MySql to store and handle databases such as log in information. O.K Let’s get started.

Note: If you’re new to programming, you should consider installing WAMP server. A pre-configured server package (Windows,Apache,MySql,PHP).
You don’t require any programming skills to install WAMP server. Click Here to go to WAMP server website.

Installation Guide
1.PHP
2.Apache Server
3.MySql Community Server
4.phpMyAdmin

Installing PHP

Download a Windows binary from http://windows.php.net/download. In this tutorial, I will use PHP 5.3.3 Win32 VC6 Thread Safe. Download. When you have finished download, follow the steps described below.
1. Unzip the folder into "C:/php". You can choose other direcotries as well such as "C:/server/php".
2. Rename "php.ini-development" to "php.ini"
3. Open "php.ini"
4. Search for and uncomment following lines,i.e, to delete ";" infront of each line.
* ;extension_dir = "/ext" (note:Add directory to "ext" folder. For example, "c:/php/ext".change it to your actual direcotory if different)
* ;extension=php_mysql.dll (e.g. change it to extension=php_mysql.dll. Follow the same procedure.)
* ;extension=php_mysqli.dll
* ;extension=php_pdo_mysql.dll
* ;extension=php_mbstring.dll
When you have finished, save and close php.ini.
5.Now you need to add path to PHP variables. Go to My Computer and go to properties (right-click) and then go to Advanced Settings. Click on Environmnet Variables tab (at the bottom in Windows 7). Chose PATH and click on Edit. You will see something like "C:\Program Files\". Append ";C:\php\ext" to that line. After editing, it should look like C:\Program Files\;C\PHP\ext. Do not forget to add ";" infront of C:/php/ext.
Since you have not installed any server you will not be able to run PHP scripts. Let’s get on to installing Apache server.

Installing Apache

1.Download Apahce MSI Installer
2.Follow the instructions (difficulty: Easy)
3.Add "yourname.xyz" for domain names or any other extension might work. For email address, add anything@yourname.xyz. These are just examples. You can choose your own names. Don’t worry about those names at the moment,you can edit later.
4. Choose Typical installation.
5. Wait for a while
6. You’re done. No, not yet.Let’s configure your Apache server to handle php scripts.
7. Go to your Apache folder (e.g C:/Program Files/Apache Software Foundation/Apache2.2/) and open "conf" folder and search for "httpd.conf" file to edit. 8. In "httpd.conf" file, search for a block of lines starting with #LoadModule and add the following block to the end of those lines.

# Load php module
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

Note: For older versions of Apache2 use php5apache2.dll
9. Add the following to the end of the file:


<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

This code ensures that only files that end in .php are executed, for example, "abc.php.txt" will not be executed as PHP file but rather as a text file.
10. Now restart your computer for changes to take effect.

Testing your server

<?php
echo "Welcome to my Web Server!"; ?>
?>

Copy and paste the above code in Note Pad and save as "test.php" in your Apache htdocs directory. C:/Program Files/Apache Software Foundation/Apache2.2/htdocs
Now load your web server by entering http://127.0.0.1 or http://localhost in your browser. If your server is configured correctly it will out put the following code.

Welcome to my Web Server!

Cheers!
If you have any problem installing your server, you can contact me using Contact Us page. I will respond to your message.

Installing MySql Community Server

1. Download MySql 5.5.7 MSI Installer
2. Choose Typical Installation
3. Launch Configuration Wizard
4. Click Next. Choose Detailed Configuration.
5. Choose Developer Machine
6. Choose Multi-functional Database
7. Set directory path to "C:/Data".Click Next
8.Choose Decision Support (DSS)/OLAP. Click Next
9.Tick Enable TCP/IP networking and Add firewall exception for this port and Enable Strict mode. Click Next.
10.This step configures MySql as a Windows service. Check both boxes. Click Next.
11.Change root password. Do not allow root access from remote machines if you’re not sure about what to do with this.
12.Execute. Finished!

Installing phpMyAdmin

1.Download phpMyAdmin
2. Unzip the folder into htdocs folder under Apache folder. (e.g. C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/phpmyadmin)
3.You’re done.
4 You should be able to load phpMyAdmin by entering http://localhost/phpmyadmin in your web browser. If you encounter an error, it is possible that you did not configure PHP correctly. Make sure that mbstring.dll is loaded and "MySql/bin" is added to the PATH in environment variables as described above in PHP installation section.

If you have any question about this tutorail, you may contact me by using Contact Us page. I will respond to your messages. Thanks for visiting Any Web website. Happy Coding!

www.anyweb.tk
www.anyweb.de.tf

Posted in Uncategorized | Leave a Comment »

Any Web,Inc

Posted by warticles on October 16, 2010

Hello, Everyone
I would like to introduce you to a new website. Any Web,Inc has just launched a new website.
You can ask question about Computing and business. It is a free counseling service.
There are also a few gadgets like currency converter, ip address locator, whois domain look up,etc and you cal

also play free flash games. Though the website is still underconstruction, you can see that
it is gonna rock soon.
Take a visit now.
www.anyweb.tk
www.anyweb.de.tf

Posted in Uncategorized | Leave a Comment »

something about life – goutham’s Blog – Blogster

Posted by warticles on October 8, 2010

something about life – goutham’s Blog – Blogster.

Posted in Uncategorized | Leave a Comment »

Windows 95

Posted by warticles on October 8, 2010

i need to run registry and disk cleaner in my head. Deep-freeze is no good in 21st century. PHP5 is missing php5isapi.dll file. There is an IP address conflict between two religions that use the same protocol. Some softwares installed are not legitimate. Some are copied under GNU license. Some are Made In Here. Everday, at least one program crashes or slows down. It is not optimized for current problems; it is either outdated or prepared for the invisible future. Ah, there is also no anti-virus, firewall is outdated. Connection ports do not listen carefully and restrict free flow of ideas.

Copy Right. Allowed free flow of ideas. Can be copied anywhere any time if you agree to put author’s name and blog addresses.

Posted in Uncategorized | Leave a Comment »

About Life

Posted by warticles on October 6, 2010

Is it better to go with the flow rather than going your own way? Is it easier to follow than lead? Are irrational people happier than rational and pragmatic ones? Suppose, you’re a young man and you have plans to build a prosperous life. How much can you be sure of your own goal? Do all people achieve their goals in life? Or just a few? Suppose, you become a CEO of a large firm, you will still be struggling. Would you be happier if you had a small firm in the suburbs and run a small business of your own that pays you less than a CEO’s job? What kinds of things make you happy at the moment and what parts of your plans and your own attitude will change over years? After 20 years, will you still be willing to work for something that you dream now.

Posted in Uncategorized | Leave a Comment »

Persistence

Posted by warticles on October 3, 2010

"Keep going, when you fail again and again; until you get what you want." That has been one of the most helpful words in my life. It is more encouraging than the words of people who try to encourage me. Since my childhood, I felt like I am always struggling to get something unusual or just to get a higher place, to distinguish myself from others.

When playing soccer, everybody knew that I was a bad player and I always had to be a goal keeper or a defender since I could not make any goals. That couldn’t keep me from playing it. I only knew one thing; if I keep playing and playing I will improve and at least, I will become a better player.

When I was in high school, I wasn’t doing very good in Maths and I was often annoyed by students who has already learned the lessons somewhere else and try to convince teachers that they’re smart. That is ridiculous, I thought. When everybody has finished the quizzes, I would often sit in silence, in the back rows, and think of how can I cope with these monsters who can finish in 3 minutes, it takes me 30 minutes and in the end, with an error. I felt like an idiot trying to cope with normal kids.

Weeks after the classes has started, I got angrier and started to think like an egoist. "Even if these morons can finish, why can’t I?" I admit that it is not a good attitude. However, there were some people, who helped me think that way; the smartest guys in the class. In my eyses, they looked so proud. And I got angry because I never wanted to be inferior to anyone.

At home, I would sit down with a blank paper and there would be scratches everywhere. Sometimes it took me about 2 hours to solve a trigonometry problem which other students can solve in less than 10 minutes. I wouldn’t move to the next lesson until I finish the lesson I am doing now, however difficult it may be. That was a blind confidence and it helped me a lot during those years. In the final exam, I could achieve one of the highest scores in mathematics, in my school.

That experience gives me the courage to keep going when my plans turn out to be a failure or when things seem impossible. It is no exageration to say that it helped me survive the worst days of my life; when I tried to leave med school to go abroad for study. Many people scoffed at my idea since I do not have enough financial resources. I see it as a similar math problem that I solved 5 years ago. I solved my high school maths and now I have grow up to solve today’s math problems.

These days, I study business and economics papers, which , at some points, make no sense at all. It gets worse in programming with all the strange codes. When I unpack a software, I feel terrible.” How will I be able to write such complex programs? Will I even learn in this life? “It is so overwhelming that I feel like it is impossible. Now I remember how I struggled with Maths during my high school days and it is a great lesson I learned from a great experience. Nothing is impossible if you persist! That is simple,”never give up!”.

Posted in Uncategorized | 1 Comment »

Business Course Materials

Posted by warticles on October 3, 2010

After studying at a university for one month, I came back home because of financial problems. These days I am learning from course materials from some universities that are available for free download. Some business papers are so so……

Their way of writing is like "1+2=3, as 1,2 and 3 are numbers, they have their own values which are different, if you add 1+3 it would equal to 4 but in this situation we add 1+2, therefore the result is 3." I don’t know why they write like that. They could have skipped many sentences.

That may not be strange to you, however, it drives me crazy.

Posted in Uncategorized | 1 Comment »

$50Bn for infrastructure

Posted by warticles on October 1, 2010

Copied From www.blogster.com/goutham (Posted about a month ago)

I was watching BBC last night and I learned about Obama’s plan to rebuild railroads and runways to reduce unemployment rate which is now 9.6% in America. It’s quite an unusual rate for a country like US. Obama says that his plan to invest $50 in infrastructure would create new jobs and stimulate the economy. But how? What is the effect of $50bn investment in such a huge economy? It would probably reduce unemployment to some percent and profit companies that the gov choose to work with. I tried to draw a concept map. As $50bn comes or will come from tax cut, it is using federal deposit, which will go to the companies and workers. And workers will spend the money they get which would surely be a very low amount and the money gov gets from tax would also be low . It would somehow stimulate the economy and help some people. Is it all about getting votes? Is he gonna spend more money on infrastructure to produce a better effect on economy?If yes,where would thatmoney come from? Higher taxes on large firms? Maybe not. I could draw a concept map however cannot understand how much it can serve to the sluggish economy. How the circulation of $50bn will affect the world’s largest economy?

Posted in Uncategorized | Leave a Comment »

Alcoholism Studies

Posted by warticles on September 4, 2010

When there is nothing to do around, 99% of people who has a history of drinking, readily resort on drinking to overcome pressures of lonliness, stress, anxiety, boredom and or other unnamed factors. And number of cigarettes smoked is also increased by at least 100% in most cases. Due to continuous drinking and smoking, body and mind experiences stress from unhealthy situation, it is more likely that one will continue drinking before finding an interesting activity other than drinking. Only a few people create activities for themselves in situations where it seems there is not much to do around. Many people remained unaware that drinking and smoking can be replaced by many other productive activities that are healthy and fun at the same time.

Studies based mainly on college-aged, unmarried, unemployed people. There may be slight or significant differences according to age,sex, location and social status.

Posted in Uncategorized | Leave a Comment »

Sharp wire brushes leave your caviar looking clean

Posted by warticles on July 28, 2010

Sharp wire brushes leave your caviar looking clean…..

I’m coming back soon.. . been busy applying for colleges, still unfinished. But i will write about my experience in preparing.

Posted in Uncategorized | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.