UK Web Hosting Company, Web Hosting UK, Low Cost Web Space, Low Cost Web Site Hosting UK

  domain registration :: web hosting :: dedicated servers :: web design services  
Home
Latest News
Services
Technical Support
Contact Support
System Status
Members Login
Contact Us
Terms & Conditions
Related Resources
Promote Your Site
 
How do I turn global variables on or off for the server in PHP?

What is 'Passive Mode' FTP?

I have created my holding page but I can't see it on the web.

How do I transfer files (FTP) using the WS-FTP client?

How do I upload or publish my web pages to my hosting account?

What's the difference between normal telnet and SSH telnet?

How do I backup my MySQL database?

 

PHP Scripting


Can I install a local PHP development environment?

Yes you can! This section shows you how to install PHP4 and Apache on your Windows system for local PHP development. This example installs PHP4 as an Apache module.

Step 1 - Installing PHP

  1. Download the latest PHP4 windows zip file from here.


  2. Extract the zip file contents to the c:\php directory using winzip.


  3. Open the c:\php directory and copy the php4ts.dll file to c:\winnt\system32 directory (or c:\windows\system)


  4. Go back to the c:\php directory and rename the file called php.ini-dist to php.ini


  5. Finally, you need to copy the php.ini to the c:\winnt directory (or c:\windows\system)


Step 2 - Installing Apache

  1. Download the Apache windows installer from here


  2. Double click the executable, click the ok button, accept the terms and conditions and hit next


  3. Enter localhost for the Network Domain and for the Server Name


  4. Enter your own email address for the Administrator's Email Address


  5. Accept the defaults for everything else to complete the Apache installation


Step 3 - Configuring Apache

  1. Open up c:\Program Files\Apache Group\Apache\conf\httpd.conf in an editor


  2. Search for this line: #LoadModule unique_id_module modules/mod_unique_id.so, it should be on line 192


  3. Add this line underneath it: LoadModule php4_module c:/php/sapi/php4apache.dll. Make sure you DON'T add an '#' sign to the front of it.


  4. Search for this line: AddModule mod_setenvif.c it should be on line 239


  5. Add this line underneath it: AddModule mod_php4.c


  6. Then add the following lines underneath the: AddType application/x-tar .tgz line
    • AddType application/x-httpd-php .php
    • AddType application/x-httpd-php .php3
    • AddType application/x-httpd-php .php4
    • AddType application/x-httpd-php .htm
    • AddType application/x-httpd-php .html

  7. Now save httpd.conf


  8. Now restart Apache: START->Programs->Apache HTTP Server->Control Apache Server->Restart

For more information about installing PHP with Apache on Windows please visit the Installing on Windows Systems section on the PHP website.

<< Back

If you have a question that you cannot find the answer to here, please email support@webanet.co.uk.

 


Copyright © 2009 - Webanet.co.uk