Home made server

Learn how to Install Apache, PHP, MySQL and phpMyAdmin:

This tutorial will show you step-by-step how to install:

  • Apache 2.2.4
  • PHP 5.2.11
  • MySQL 5.1.41
  • phpMyAdmin3.2.4

The Apache Server combined with the power of PHP, MySQL, and phpMyAdmin, creates one of the best possible development environments for a web programmer. Getting everything properly configured can take 20-30 minutes, so make sure you have enough time set aside before beginning the installation.

Don't be intimidated by the length of this page. I'll walk you step-by-step through each part of the installaton. All you need is a basic understanding of HTML and computers, and if any part of the installation isn't clear to you, just
mail me at This email address is being protected from spambots. You need JavaScript enabled to view it.
.

Start the Installation:

  • Installing Apache
  • Installing PHP
  • Installing MySQL
  • Configuring PHP to work with MySQL
  • Installing phpMyAdmin

Installing Apache:

Installing Apache version 2.2.4.

Follow the steps carefully.

1. Go to www.apache.org and download "Win32 Binary (MSI Installer): apache_2.2.4-win32-x86-no_ssl.msi" to your desktop.

Note: Make sure that you download Apache version 2.2.4 (Win32 Binary MSI Installer)! The rest of the tutorial is written using this version.

2. Double click "apache_2.2.4-win32-x86-no_ssl.msi", and if prompted, click "run".

3. An installation wizard will appear:ap-1

Click "Next".

4. The next page contains the terms of agreement. Select "I accept", and click "Next".

5. Read about the Apache Server, and click "Next"

6. The next screen will ask you for specific server information. Enter the values seen below:ap-2

Click "Next".

7. On the next screen, select "Typical Installation" and click "Next".

8. Click "Next".

9. Click "Install".

10. Open up Internet Explorer and type in "http://localhost". If you see a page that says "It works!" then the Apache server has been installed successfully.ap-3



A few notes on your Apache Server Configuration:

  • Apache is installed by default in your "C:\Program Files\Apache Software Foundation\Apache2.2" directory.
  • Inside that directory there is a folder called "htdocs" (the equivilant of your \www\ or \public_html\ directory). You can develop your applications inside this folder and access them by going to http://localhost/your_file_name.php
  • The Apache Configuration settings are defined in a file named "httpd.conf" located in the "conf" directory. Do not attempt to change these settings unless you know what you're doing. An error in this file will result in the Apache Server not functioning correctly!

Installing PHP:

Next we will be installing PHP version 5.2.11. Follow the steps carefully.

1. Go to www.php.net and download the "PHP 5.2.11 zip package" to your desktop. (Be patient while it downloads, the ZIP file is over 10MB!)

Note: Make sure that you download the PHP 5.3.0 zip package! The rest of the tutorial is written using this version.

2. Create a new folder called "php" in your C Drive. Copy the "php-5.2.11-Win32.zip" file to there ("C:\php") and extract it using WinZIP or a similiar program.

3. Your "C:\php" directory should now look like:ap-4


4. Next copy the "php.ini-dist" file from "C:/php/" to "C:/WINDOWS" and rename it to "php.ini". This is your PHP configuration file. We'll come back to this later.

5. Now it's time to tell Apache that PHP exists. Open up your Apache configuration file ("C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf") in notepad and add these four lines to the bottom of the "LoadModule" section:LoadModule php5_module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/windows"

6. In your "htdocs" directory, create a file called "info.php". Open it in notepad and add this line of code to it:<?php phpinfo(); ?>

7. Restart your Apache Server for the changes to take effect: Start > All Programs > Apache HTTP Server 4.2.4 > Control Apache Server > Restart

8. Open up Internet Explorer and type in: http://localhost/info.php. If your browser takes you to a page that looks like this, then PHP has been installed successfully!ap-5

Modifying your PHP Configuration File:

  • Your PHP configuration (php.ini) file is located in "C:/WINDOWS/php.ini". You can modify it with notepad or a similiar text editor.
  • Open it up and find the line that says:

extension_dir = "./"and change it toextension_dir = "C:\php\ext"

  • Find the line that says:

;session.save_path = "/tmp"and change it tosession.save_path = "C:\WINDOWS\temp"

Installing MYSQL:

Next we will be installing MySQL version 5. Follow the steps carefully.

1. Go to www.mysql.com and download the "Windows (x86) ZIP/Setup.EXE (version 5.1.41)" to your desktop. (To do this you'll need to register an account with MySQL.)

2. Once "mysql-5.1.41-win32.zip" has finished downloading, you can extract it using WinZIP or a similiar program.

3. Once extracted, double click on the "Setup.exe" file. An installation wizard will appear.ap-6


Click "Next".

4. Select "Typical" Installation and click "Next".

5. Click "Install". (Be patient, this can take up to several minutes).

6. The next screen will ask you to "Sign Up". Select "Skip Sign-Up" for now.

7. The next screen will tell you that the installation wizard is complete. Make sure that the "Configure the MySQL Server now" field is checked before clicking "Finish".ap-7

8. The MySQL Server Instance Configuration Wizard should appear. Click "Next".

9. Select "Detailed Configuration" and click "Next".

10. Select "Developer Machine" and click "Next".

11. Select "Multifunctional Database" and click "Next".

12. Click "Next".

13. Select "Decision Support (DSS)/OLAP" and click "Next".

14. Select "Multifunctional Database" and click "Next".

15. Make sure "Enable TCP/IP Networking" is checked, the Port Number is set to "3306", and "Enable Strict Mode" is checked. Click "Next".

16. Select "Standard Character Set" and click "Next".

17. Check "Install As Windows Service", set the Service Name to "MySQL", and check "Launch the MySQL Server automatically". Make sure that the "Include Bin Directory in Windows Path" is NOT checked. Click "Next".

18. On the next screen, check the box that says "Modify Security Settings". Enter a password for the default "root" account, and confirm the password in the box below. Do NOT check the boxes "Enable root access from remote machines" or "Create An Anonymous Account". Click "Next".

19. Click "Execute". (This may take a few minutes. Be patient).

20. Click "Finish".

21. To test if MySQL was installed correct, go to: Start > All Programs > MySQL > MySQL Server 5.0 > MySQL Command Line Client. The MySQL Command Line Client will appear:ap-8

22. It will ask you for a password. Enter the password you created in step 18. (If you enter an incorrect password MySQL will automatically close the command line)

23. Next, type in the commands shown below: (shown in blue)ap-9



If you don't get any errors, and it returns the information shown above, then MySQL has been successfully installed! Next we will need to configure PHP to work with MySQL.

Configuring PHP to work with MySQL:

Now that both PHP and MySQL are installed, we have to configure them to work together.

1. Open up your php.ini file (C:/WINDOWS/php.ini) and find the line:;extension=php_mysql.dll

To enable the MySQL extension, delete the semi-colon at the beginning of that line.

2. Next we must add the PHP directory to the Windows PATH. To do this, click: Start > My Computer > Properties > Advanced > Environment Variables. Under the second list (System Variables), there will be a variable called "Path". Select it and click "Edit". Add ";C:\php" to the very end of the string and click "OK".

3. Restart your computer for the changes to take effect.

4. Create a new file in your "htdocs" directory called "mysql_test.php".

5. Copy the following code into "mysql_test.php" and click save. (Make sure to replace the MYSQL_PASS constant with the MySQL Password you specified during the MySQL installation).

<?php

# Define MySQL Settings
define("MYSQL_HOST", "localhost");
define("MYSQL_USER", "root");
define("MYSQL_PASS", "password");
define("MYSQL_DB", "test");

$conn = mysql_connect("".MYSQL_HOST."", "".MYSQL_USER."", "".MYSQL_PASS."") or die(mysql_error());
mysql_select_db("".MYSQL_DB."",$conn) or die(mysql_error());

$sql = "SELECT * FROM test";
$res = mysql_query($sql);

while ($field = mysql_fetch_array($res))
{
$id = $field['id'];
$name = $field['name'];

echo 'ID: ' . $field['id'] . '<br />';
echo 'Name: ' . $field['name'] . '<br /><br />';
}

?>

6. Open up Internet Explorer and type in "http://localhost/mysql_test.php". If the "mysql_test.php" page returns something similiar to:ID: 1
Name: John
Then PHP & MySQL have been successfully configured to work together. Congratulations! The next and final step is to install phpMyAdmin.

IMPORTANT NOTE:- Don’t forget to copy your all php related .dll files to the root of windows system32 folder. Otherwise php wont integrate with windows.

Installing phpMyAdmin 3.2.4:

Now that both Apache, PHP and MySQL are installed, we can install phpMyAdmin, a tool that allows you to easily manage your MySQL databases.

1. Go to www.phpMyAdmin.net and download "english.zip" under the phpMyAdmin 3.2.4 section to your deskto.

2. Create a new folder called "phpmyadmin" in your "htdocs" directory. Extract the contents of the "phpMyAdmin-3.2.4-english.zip" ZIP file here. Your C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin" directory should now look like:ap-10

4. Create a new file in the "phpMyAdmin" directory (above) called "config.inc.php". Place this code inside it and be sure to replace "YOUR_PASSWORD_HERE" (in both places below) with your MySQL Password:

<?php

/* $Id: config.sample.inc.php 9675 2006-11-03 09:06:06Z nijel $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use scripts/setup.php
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.cihar.com>.
*/

/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
* Servers configuration
*/
$i = 0;

/*
* First server
*/
$i++;

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'YOUR_PASSWORD_HERE'; // Your MySQL Password


/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'YOUR_PASSWORD_HERE'; // Your MySQL Password
/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';

/*
* End of servers configuration
*/

/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>
5. phpMyAdmin has now been successfully installed! To use it, open up Internet Explorer and type in "http://localhost/phpmyadmin". This will bring you to the main phpMyAdmin page. If you have any questions, refer to the phpMyAdmin website or the "Documentation.html" file in the /phpMyAdmin/ directory. If you can't find your answer there mail me at This email address is being protected from spambots. You need JavaScript enabled to view it. .

6. Enjoy using Apache, PHP, MySQL, and phpMyAdmin!

Members Login
Site Updates
  • party6favor9 created a new topic ' paper drinking straws' in the forum.
    Taiwan Network (microblogging) March 11 (Strait Herald reporter Xu Qiaona) As of yesterday, Malaysia Airlines passenger plane lost contact with the situation remains uncertain, the event becomes confusing, lost contact cause of all parties concerned.crash in the history of Taiwan, unsolved mysteries and even there are many strange events.
    Taiwan's China Airlines was established in December 1959,paper drinking straws, is the largest airline in Taiwan, but in the past 20 years, but nearly 10 major flight safety incidents.2002 Year "China Airlines crash" event, even a four-year deadline Taiwan's China Airlines (or "four-year curse") legend, the content is speculated that: "Every four years, China Airlines passenger plane may occur wholly major aircraft crash killed hundreds of people. "This is because of a plane crash in 2002, China Airlines in 1994 and 1998 have also been a major air disaster killed more than 200 people, were separated by three times just four years, so the air industry and civil society have heard this rumor, and it was predicted that in the next deadline is 2006, but in fact in 2006 China Airlines crash did not occur, this legend also proved unfounded.
    2002 in May, "China Airlines plane crash,&quot,paper straws; the most bizarre, is the first in a plane crash the day before seven, Pingtung a man received a mysterious phone message,Striped Paper Straws, which lasted one minute message in a man's sobs and sound of the waves, that is, "China Airlines crash" dead "spiritual message."Later it was discovered that China Airlines plane was transporting the dead back to Taiwan Qiandao Lake incident, after the aircraft crashed in Nagoya. China Airlines also sent another aircraft transporting dead bodies back to Taiwan, that plane is China Airlines CI611 flight.
    subsequent December 22, 2002, Taiwan's TransAsia Airways ATR72 aircraft flying from the French-made cargo plane en route to Macau, unfortunately crashed in the early hours in the sea southwest of Penghu. Paradoxically, this aircraft cargo plane had crashed, "China Airlines crash" in charge of carrying the remains of more than 200 victims returned to Taipei in May 2002. ATR72 crash site is only about 10 miles from Taiwan's China Airlines plane crash in May of locations.
    2002's &quot,pink drinking straws;China Airlines crash", but also triggered a discussion of another mystery that crash site - known as the Pescadores "devil sea" mystery airspace.
    fact, "the devil sea" was not only now, back in Japan occupied Taiwan during the Japanese naval and military pilots have a nearly 30 sea miles southwest of Penghu sea airspace classified as "less to better" zone because there is always some strange things happen near, such as a magnetic compass crazy spin, the sea appeared white, spherical cloud rendering and other supernatural phenomena. Taiwan's air force in modern times and more repeat incidents here, so the area is also known as the "Bermuda Triangle Taiwan Strait.
    相关的主题文章:


    drinking straws without providing proof of identity of danger


    Read More...
    20 hours 33 minutes ago
  • party6favor9 created a new topic ' party favor bags produce erroneous readings' in the forum.
    When MH370 missing a few days, all kinds of rumors flying. Finally in the 12th, the Chinese side expressed the hope that the Malaysian side to unify the timely release of authoritative sources, specific information. 15, according to information provided by the Prime Minister Marfan search range from Malacca to expand to Kazakhstan - Thailand, Indonesia - a wider expanse of the Indian Ocean region Find time to work into the fifth day , a Brazilian aviator, was found floating in a sea of ​​debris, which confirmed the debris from Air France 447 aircraft, also confirmed that everyone on the 447, with no survivors.
    addition to debris floating in the sea, the search also found a number of life jackets intact, indicating that the passengers did not make drowning preparation, they did not even have time to wear a life jacket. tail is also important to come back, and fracture traces show: tail is drowning in the rip, that is, before the plane fell into the water and did not disintegrated, it is not because of a bomb or turbulence triggered.
    only way to locate the black box of the aircraft to locate the battery life of only 30 days. France sent a U.S. Navy nuclear-powered submarines equipped with monitoring devices and two French boats, and some sonar boat,party favor bags, capturing the weak signals coming from the seabed. However, in search of more than 22,000 square kilometers of seabed, the searchers were ruefully admitted that they found nothing. before actually find MH370, people are unable to get the truth. Now grasp the message, still can not confirm the whereabouts of the aircraft and cockpit what happened, so that the disappearance of the plane waves investigators will bet on the last search. Exploration ship "Alou West Road," Li Mosi 6000 with three submarines - the world's most advanced underwater detection equipment, as well as underwater detection experts, set sail.
    Air France nearly two years after the events of the past, BEA was caught in a dilemma, search job to spend 22 million euros, the lack of any breakthrough. studied thousands of pieces of the wreckage, the investigators can only speculate that the aircraft crashed into the sea in the overall. In addition, the evidence investigators also owned the aircraft before the crash SCARC maintenance data is sent to the 24 Air France. Data show that the aircraft had a blocked pitot tube problems (pitot tube located outside the body, is a small cylindrical sensors, air flow from the fluid in the pipe is calculated airspeed outdated accounting.) Pitot tube was frozen, but "will not" cause crash [/b], BEA investigator Alain said, "Air France has notified the performance had a pitot tube was frozen after the pilot, and what should be taken to deal with Measures. " clues to form a mystery to be solved, after the exclusion of many possible problems back to square one: To find the black box. BEA hopes will last a marine research institutions in the United States: Woods Hole Oceanographic Institute?. This institute is located in Massachusetts, it is over 12,000 feet deep they found the underwater wreckage of the Titanic.
    3 25 March this mission, get the financial support of more than 10 million euros. They selected the location of the aircraft finally lost the signal radius of 37 km of the search area. Submarines and exploration vessels working separately.week later, revealing the submarine acoustic. a huge object: the object is very straight, looks, unlike the naturally formed object. Under
    4 on 3, the last position in the aircraft beyond 12 km to the northeast, the depth of nearly 4,000 meters from the sea, Air France 447 images depicting the show in front of a search team: engines, landing gear, fuselage wreckage ......
    subsequent search team found the wreckage of Flight 447's two flight recorders: specialized flight recorder records various data; between the pilot and the cockpit recorded cockpit voice recorder. Inside this black box is orange people two years to pursue the truth.
    data and recordings show that the pitot tube is indeed frozen, produce erroneous readings, prompting the autopilot off, the pilots know when trained Pitot tube automatically thawed after one minute, after which the data will be normal airspeed , as long as the pilot stabilized the aircraft on the line. But pilots Boonen has pulled back the lever to lift the nose, the plane up and rushed over 2500 feet, causing slowdowns, and then stall warning is triggered, the state of aerodynamic stall, the wing loses lift, they more than 12,000 per minute foot speed fall. This time if they let down the nose to get the lift to accelerate the disaster may be avoided, but the captain could not come quickly grasp the situation, and the co-pilot Boonen continues to pull back the lever, the aircraft stalled last "like a stone Like fell down. BEA announced the final results of the investigation,paper drinking straws, the crew found the crash was due to a lack of adequate training, did not follow the procedural guidelines and ignore the flight stall warning caused. So far, a total cost of over 35 million euros in the investigation, and finally be drawing to an end. After missing the first three days .
    MH370, a family member called the brother to take the flight telephone,paper straws wholesale, phone rang three times after a long broken. He then dialed twice, the display on the phone the same signal, but after ringing long ring three times, a voice prompt call can not be connected. Families who just want an answer.
    Air France is difficult to victims' families have experienced, Patricia knew the missing aircraft, but also try to hit her husband's cell phone, the phone is also switched on, she could not believe her husband with the aircraft sink into the seabed . People know that he can get through continued after her husband phone call, hoping someone can pick the phone,paper straws outlet.
    Patricia said: "If the phone to ring, it means that the phone is not in the sea it is my hope that I can not bear the fact that he can not go back home.." aircraft disappeared from, crash [/b], search and rescue, salvage, has found 154 bodies of the victims returned to their loved ones, which means that there are 74 477 passengers and their families "lost contact" as the "Lost Flight" eternal passengers.
    相关的主题文章:


    paper straws outlet is unprecedented in the true sense.

    paper straws bulk Outside
    Read More...
    yesterday
Top

eskisehirescortu.com escortlariankara.com ankaradaescortlar.net escortelitankara.net