PHP
  Home arrow PHP arrow Page 3 - Installing PHP Under Xitami
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Installing PHP Under Xitami
By: Jayesh Jain
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 24
    2003-02-11

    Table of Contents:
  • Installing PHP Under Xitami
  • What is Xitami?
  • Installing PHP
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Installing PHP Under Xitami - Installing PHP


    (Page 3 of 4 )

    Download Windows binary for the latest version of PHP. Once you've downloaded it, unzip it into a C:\, rename the folder to "PHP".

    Open the PHP.INI-DIST file from C:\PHP folder, locate the following line

    ;cgi.force_redirect = 1

    We need to uncomment this line and change the setting to 0 as shown below to run PHP under Xitami, do the necessary changes and save the file as php.ini in your windows folder (C:\windows on my computer)

    cgi.force_redirect = 0

    Configuring Xitami for PHP

    Point your browser to Xitami admin console http://localhost/admin and click on Configuration. Click on Filters, and put the extension which PHP should parse (i.e. .php) into the field File extensions (.xxx). In Filter command or script put the path and name of your php executable i.e. c:\php\php.exe.
    Press the Save icon and restart the server to reflect changes.

    Alternately you can add the following lines to default.cfg, which will be present in the folder where Xitami is installed and restart the server to reflect changes.

    [Mime]
    php=application/x-httpd-php
    [Filter]
    .php=c:\php\php.exe


    Testing PHP Under Xitami

    Open your favorite text editor and create a text file and type the following in it

    <?php
      phpinfo();
    ?>


    phpinfo() is a PHP function which outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment, the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.

    Save this file as test.php in C:\Xitami\webpages (your default Xitami Web Root Folder).

    Open you browser and type http://localhost/test.php in the address bar, click Go to make sure PHP in configured and running properly.

    If the source code appears in the browser and not the output we are expecting, then PHP has not been properly installed or Xitami does not recognizes PHP files, please make sure you have followed the instructions properly.

    Finally

    A few more things you might want to know about Xitami, in the xitami.cfg change the following setting

    To Disable the Web-Based Administration (WBA) Interface:

    [Security]
    admin=0


    To Change the HTTP Port

    You can run Xitami on any port from 80 upwards,to set HTTP port to 5000, set the portbase to 5080,don’t forget to add 80 to whatever port you desire.

    [Server]
    portbase=5080


    Xitami default web root folder is a subdirectory called webpages under the Xitami’s installation folder.

    By default all the HTTP accesses are logged in the file access.log.

    By default all the Errors and console log messages in the file xitami.log.
    Xitami supports the HTTP GET, POST, and HEADER commands.

    All CGI scripts and programs are in a subdirectory called cgi-bin.

    You can protect any directories editing the file xitami.aut.

    More PHP Articles
    More By Jayesh Jain


     

    PHP ARTICLES

    - Making Usage Statistics in PHP
    - Installing PHP under Windows: Further Config...
    - File Version Management in PHP
    - Statistical View of Data in a Clustered Bar ...
    - Creating a Multi-File Upload Script in PHP
    - Executing Microsoft SQL Server Stored Proced...
    - Code 10x More Efficiently Using Data Access ...
    - A Few Tips for Speeding Up PHP Code
    - The Modular Web Page
    - Quick E-Commerce with PHP and PayPal
    - Regression Testing With JMeter
    - Building an Iterator with PHP
    - PHP Frontend to ImageMagick
    - Using PEAR's mimeDecode Module
    - Incoming Mail and PHP






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT