Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
If you want the web server to parse Server Side Includes (SSI directives), search for the text "server-
side includes" in the file. Add the following lines just after the block of text containing those words:
Alternatively, you can uncomment the example text given in the configuration file by removing the
hash prefix ("#") before each line.
Apache will now handle the SSI directives that occur in files with names ending in ".shtml".
If you want "index.shtml" to be your default start page for your directories, ie, if you want Apache to
load "index.shtml" when you type "localhost" or "localhost/directory/", you will need to search for a line
in your "httpd.conf" that begins with "DirectoryIndex" and add index.shtml to the list of files there. For
example, modify it as follows:
Adding it before index.html means that Apache will give preference to index.shtml if both are present.
When you are satisfied with your changes, save the file - just use the "Save" item from the "File" menu
or type Ctrl+S. After you make a configuration change, you need to restart Apache. To do this, go to
the Start Menu and click the "Restart" item in the "Control Apache" folder, that is, select Start ->
Programs -> Apache HTTP Server -> Control Apache Server -> Restart.
Setup phpMyAdmin
Step1.
Unzip the content of this file to C:\server\Apache2\htdocs and rename the file to phpMyAdmin
Step2.
Open the phpMyAdmin folder and find the "config.sample.inc.php" and rename the file to
"config.inc.php" as the picture show below:
Step3.
We need to edit the "config.inc.php" file so we will use Notepad C++ and find the line
"blowfish_secret" and add any word or nick name in my case I use 'myserver' and save the file.
Step4.
Open your browser and type the following line in http://localhost/phpMyAdmin/ and Enter.
Now there is a login screen so type in your username and password and press go.
Install PHP5.2
The VC6 build is for using the standard Apache server and the Thread Safe versionshould be use to
install PHP with this Apache module.(PHP 5.2 (5.2.17)
Step1.
Unzip the content of this file to C:\server\php.
Step2.
You must include the path to the PHP dll's in your Windows PATH environment variable.
Go to Control Panel
Open "System" then the "Advanced" tab
Add the directory where the PHP dll's can be found. Copy and paste the following ;C:\server\php
Important make sure you start it with semicolon and to use back slashes. Click OK three times and
you're done.
Step 3.
There is more changes to do before we finish the installation.
Go to C:\server\php and find the php.ini-recommended. Rename this file to php.ini.
Open this file with notepad and make the following changes.
Windows Extensions:(.dll)
Please also uncomment the lines by removing semicolon ; at the beginning of the Windows Extensions
of the as needed, please do not use all extension.
The most used extensions for most php scripts are:
;extension=php_curl.dll
;extension=php_mbstring.dll
;extension=php_exif.dll
;extension=php_gd2.dll
;extension=php_mcrypt.dll
;extension=php_mysql.dll
;extension=php_sockets.dll
Please note enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini. The php_mbstring.dll
DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.
Step 4
To find out if our PHP is working, from the start menu - run and type cmd. In the command prompt
window type php -v. The outcome will be something like this.
Apache Configuration:-
We need to edit the httpd.conf in C:\ server\Apache\conf to make sure that Apache knows where to
search for php modules.
1. - So make a backup copy of httpd.conf and edit the original file with notepad by adding the
following lines at the end.
6. - Now create a file php phpinfo, so open notepad and add the following in the text field:
<?php phpinfo(); ?>
and save as - File name: phpinfo.php save as type: "All Files" in Notepad or in your favorite php
editor.
You can delete the index.htm file in this folder. All your projects will be pace in this folder.
Please bookmark this web page as we going to reboot windows; we still have to install MySQL by
press Ctrl + D on your keyboard
After you reboot windows open your browser and type the following line in
http://localhost/phpinfo.php
PHP 5.3.X reporting some errors in the time zone has not been defined:
To solve the problem you can disable the new error by setting the "error_reporting" to a value of
"E_ALL & ~E_DEPRECATED" in line 514 or 515 in the php.ini, after the change please restarting
Apache.
Install MySQL
I will not list all the steps but the most important.
On the downloaded MySQL double click and this will start the installation of MySQL and follow the
instructions.
Select "I accept terms in the licence agreement" and click next: -
Now browse or navigate to the folder C:\server\mysql we want to install the files in this folder.
Press install.
Select a standerd configuration press next.
We need a password for MySQL database please enter a password, please remember the login name
in most cases is root and the password your choosing, in my case I chooseadmin471.
The final and last step is you need to do is to open php.ini file located in C:\server\php and
uncomment the line.
extension=php_mysql.dll
by removing semicolon ; at the beginning. Save the file and close it.
Restart the apache server by clicking on the apache icon in your taskbar.
Useful tool is MySQL administrator and system tray monitor from MySQL GUI and you can
download it from there website.