|
|
|
| Home
|
Support Forum |
| |
I'm doing this installation on Windows XP/2003/2000,
(may work on other versions of windows as well) with
Apache 2.2.4 PHP 5.2.1 also make sure your not running IIS on your computer, if your not sure how to do this,
- Go to Start --> Run --> type "CMD" and enter,
- on the command line "type net stop http", say
"Y" to each question.
Before you can do any installations, make sure to
login to your computer as an Administrator. |
| |
|
| |
|
Downloading |
| first download Apache & PHP5 to your computer PHP5.2
Apache2.2
|
|
Installing Apache2.2 |
| Run the apache_2.2.X-win32-x86-no_ssl.msi
file
- On the Welcome Screen, Click Next
- On the License Agreement Page, Read the License
Agreement, Select "I accept the terms in the license
agreement", click Next
- Read the Read This First screen, and select
Next.
- Now On the Server Information page
- On Network Domain, enter your domain (e.g.
orbitsl.net) or if dont have a domain, enter "localhost"
- Server Name, enter somename.yourdomain (e.g.
myserver.localhost or server.orbitsl.net)
- Administrators Email Address, enter your email.
- Select "for All Users, on Port 80, as a Service"
(This will make Apache run on default port 80 and
start automaticaly when you start your computer)
then click Next
You can Change the above
setting at any given time
- On the Setup Type, select "Typical" and click
Next.
- Destination Folder, Click Next
- Ready to Install The Program, Click Install.
Once the installation is finished, open your favorite
browser, (e.g. Internet Explore, Firefox), type
http://localhost
- You should see some thing like "It works!" or
some thing similar.
|
|
Configuring Apache2.2 |
- Go to Start --> Programs --> Apache HTTP Server
2.2.X --> Configure Apache Server --> Edit the
Apache httpd.conf Configuration File (Then a File
will be opened in Notepad)
- First lets change the default document
directory (Where you will put your HTML/PHP
files.)
- Lets Change the comment types to .php .htm
- Now Save the File and Exit.
- Create a directory call wwwroot at drive
C: (C:\wwwroot)
- Create a HTML file call index.html at
c:\wwwroot\index.html
- Go to Start --> Programs --> Apache HTTP
Server 2.2.X --> Control Apache Server -->
Restart
- If you done every thing right, this
should work with out any errors.
- Open your favorite browser, (e.g. Internet
Explore, Firefox), type
http://localhost if you have done every
thing right, you should see your HTML files you
have created.
|
|
Installing & Configuration PHP5.2 for Apache2.2 |
- Go to Start --> Programs --> Apache HTTP Server
2.2.X --> Configure Apache Server --> Edit the
Apache httpd.conf Configuration File (Then a Files
will be opened in Notepad)
- Fine the "#LoadModule ssl_module modules/mod_ssl.so"
line, after the line add the below given lines (as
it is)
##### PHP5 ######
LoadModule php5_module "c:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/PHP"
##### PHP5-END ######
-
Save the Files and Close it.
-
Create a directory call c:\php
-
Now copy the files php5apache2_2.dll, php5ts.dll
& php.ini-recommended from c:\php5\ directory to
c:\php directory
-
Rename the php.ini-recommended file to php.ini
-
Create a file call phpinfo.php in
c:\wwwroot, open
the file with a PHP editor or with notepad/WordPad
& add the following text
<?php
echo phpinfo();
?>
-
Go to Start --> Programs --> Apache HTTP
Server 2.2.X --> Control Apache Server -->
Restart
- If you done every thing right, this
should work with out any errors.
-
Open your browser, enter
http://localhost/phpinfo.php, if you have done
every thing right, you should see PHP Installation
Information.
|
| |
|
Other Related Links |
|
|
|
|