Installing Apache, PHP, MySQL, Perl on Windows

Let's start with the installation Apache (HTTP server). You can download Apache installations on www.apache.org download the version you like, I recommend version 2 .  Here is a link to it.

For faster downloads, visit.
After uploading the file . MSI installer(), run it. Setup wizard next, next, finish "work"...

The installer will give you some details like the name  Server yours, your server address and the administrator's mail address. if you have a domain name or hostname, enter info like this:

Server name: your_domain.org
Server address: www.your-domain.org

Admin Email: This email address is being protected from spambots. You need JavaScript enabled to view it.

if you don't have one, you should get a free address at e:

http://www.no-ip.org/

Check option 'runs as a service for all users on port 8080 "and press the button Next, Finishto complete the installation. Council: Install it on disk C: (it creates a folder for it, don't worry) to make sure you set it up easyer. When you're done, open your browser and write in the address bar:

http://localhost/
If you see "Test Page for Apache installation", everything is working.

Install PHP:

Let's set PHP. download archives from www.php.net. Here is a direct link to Version 4.3.9:

Make sure you download the archive and don't install. OK! after downloading it, extract the archive to C:/PHP (this is to simplify the path). Now open C:/apache/conf/httpd.conf and search for this line:

#LoadModule Ssl_module modules/mod_ssl.so

below this line, add this:

LoadModule rewrite_module modules / mod_rewrite.so
LoadModule php4_module "C:/php/sapi/php4apache2.dll"
addtype application /x-httpd-php .php
addtype application /x-httpd-php .php3
addtype application /x-httpd-php .php4

Now search along this line:

<Directory "C:/apache2/HTDOCS">
Now Change:

Options Indices FollowSymLinks
#
# AllowOverride controls what directives can be placed in the .htaccess file.
# It cannot be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

at:

Options Indexes Includes FollowSymLinks MultiViews ExecCGI
#
# AllowOverride controls what directives can be placed in the .htaccess file.
# It cannot be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

This will allow ..htaccess support on your server and make sure you can see the contents of the folder without getting error.

Now search:

DirectoryIndex index.html index.var.html
and change it to:

DirectoryIndex index.html index.php

Save the file and reload Apache. (you can restart it by pressing restart server Apache menu shortcut Start or in writing:

Clean Apache Restart

in the command line window. OK!

you have PHP works for your server. Now let's set up PHP and make sure it really works! open C:/php/php.ini (php.ini-distance renamed) and search for this item:

max_execution_time = 60; Maximum execution time for each script, in seconds max_input_time = 60; Maximum time each script can parse a data request memory_limit = 5M; The maximum amount of memory the script can consume (8 MB)

You must change this to whatever you want. here's the option i use:

max_execution_time = 300; Maximum execution time for each script, in seconds max_input_time = 300; Maximum time each script can parse a data request memory_limit = 5M; The maximum amount of memory the script can consume (8 MB)

Now search:

register_globals = Off

and change it to:

register_globals = On

Search :

extension_dir = ". "

and change it to:

extension_dir = "c:/php/extensions"

if you installed PHP in C:...

Search :

,Windows
extensions; Note that MySQL ODBC and support is now built in, so no DLL is required for this.
and uncomment (remove; front) the following modules:

extension=php_bz2.dll
extension=php_db.dll
extension = php_gd2.dll
extension=php_java.dll
extension=php_msql.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension = php_sockets.dll

OK! Now let's change the SMTP search settings (it's good for you mail () you need it !!!.)

[mail]; For Win32 only.

SMTP=
smtp_port=25
; For Win32
only.; sendmail_from=

and changes to:

[mail]; For Win32 only.
SMTP=mail.isp.org
smtp_port=25
; For Win32 only.
sendmail_from = [email protected]_domain.org

if you don't have a mail server or:

[mail]; For Win32 only.

SMTP = local
smtp_port=25
; For Win32 only.
sendmail_from = [email protected]_domain.org

if you have a mail server...

Save the files. Now let's complete the installation PHP. copy all DLL files from c:/php/libraries in C: / Windows / System32. copy C:/php/php4ts.dl l in C:/Windows/System32/ and copy php.ini from folder PHP at the windows and system32. Restart Apache. open notepad and add to the file:

<? PHP
phpinfo
();?>

save this file in the HDDOCS folder (C:/Apache/HTDOCS) as info.php and open a browser. in the address bar write:

http://localhost/info.php

You should see the PHP configuration in a table. looong file can optionally be installed Zend Optimizer. I use it... it doesn't need a tutorial. install pear modules for PHP, just run go pear batch from php folder and 2click reg file to finish instllation

Add a comment