russian language  
Main page
Requirements
Changelog
Setup Apache
Install ROse
Download
SVN
 
Bug Tracker
Feature Requests
 
Donate


Configuring Apache (for windows)

I had to write a short sequence of steps, because many there problem with reading manuals. So:

1. Enable .htaccess

If u site root directory "c:/web/htdocs". Open httpd.conf and add next instructions in end of file:

   <Directory "C:/web/htdocs">
        AllowOverride All
   </Directory>

In directory "C:/web/htdocs" and all sybdirectories working .htaccess

2. Enabl mod_rewrite

in httpd.conf search string:

   #LoadModule rewrite_module modules/mod_rewrite.so

and

   #AddModule mod_rewrite.c

uncomment this strings:

   LoadModule rewrite_module modules/mod_rewrite.so

and:

   AddModule mod_rewrite.c

3. enable php as a module of apache.

after load apache module section (many strings LoadModule) added string:

   LoadModule php4_module modules/php4apache.dll
   #for php5: LoadModule php5_module modules/php5apache.dll

search add module block (many strings AddModule) and after this block add

   AddModule mod_php4.c
   #for php5: AddModule mod_php5.c

below add:

   AddType application/x-httpd-php .php .phtml .php3

and:

for php4:
In apache directory search subdirectory "modules" and copy to this subdirectory file php4apache.dll In apache bin directory add files: php.ini and php4ts.dll

for php5:
In apache directory search subdirectory "modules" and copy to this subdirectory file php5apache.dll In apache bin directory add files: php.ini and php5ts.dll

4.1 Added GD2 php extension

In apache directory create dubdirectory "php_extensions" and copy to this subdirectory file php_gd2.dll open php.ini file (from apache bin directory). search string:

   ;extension=php_gd2.dll

and uncomment:

   extension=php_gd2.dll

Search and check strin:

   extension_dir = "./php_extensions/"

enable MySQL (need only for php5 and above. If used php4 - skip this step)

in Apache directory php_extensions take file php_mysql.dll take libmysql.dll to system PATH or Apache bin directory search in php.ini string:

   ;extension=php_mysql.dll

and uncomment this:

   extension=php_mysql.dll

4.3. fix connection to MySQL error "old client version"

need install php extensions php_mbstring.dll and uncomment this module in php.ini file

restart Apache web server

End

For applay changes need restart Apache web server. In this examples used Apache/1.3.29 (Win32) and php 4.3.4. and php 5.0.3. For other sofware version the settings may vary