PHP
  Home arrow PHP arrow Page 3 - Executing Microsoft SQL Server Stored Proc...
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 
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

Executing Microsoft SQL Server Stored Procedure from PHP on Linux
By: Jack Zhang
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 31
    2003-10-20

    Table of Contents:
  • Executing Microsoft SQL Server Stored Procedure from PHP on Linux
  • Preparation
  • Installing the Apache Web Server
  • Installing the Apache Web Server, Cont'd
  • Installing FreeTDS
  • Modify the PHP Source Code
  • Modify the PHP Source Code, Cont'd
  • Executing MS SQL Server Procedures from 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


    Executing Microsoft SQL Server Stored Procedure from PHP on Linux - Installing the Apache Web Server


    (Page 3 of 9 )

    Change directory to httpd-2.0.47 by issuing the following command:

    cd httpd-2.0.47

    To configure your installation tree and modules, issue the following:

    ./configure --prefix=/usr/local/Apache2 --enable-mods-shared=all --enable-ssl --enable-cache --enable-proxy --enable-suexec

    I would like to include all Apache modules on my test environment; you may reduce these modules by using different parameters with the configure command (to understand these parameters, please refer to Apache documentation after installation, or read it online http://httpd.Apache.org/docs-2.1/).  It is a good idea to compile and install all the modules; however, at run time, only load the modules your web server needs (how to configure Apache modules at run time, please refer the Apache document with this installation or read it online).

    Make sure there is no error after you run the above command.  Most errors come from your missing some development components when you install Red Hat 9.0, you can install these missing components through the “Add/Remove Applications” applet mentioned at the beginning of the this article, then come back to rerun above command until there are no errors.

    To compile your module tree, issue the following command:

    make

    This command usually takes a while to finish all the steps (first it will compile all selected modules then link them with libraries).  Make sure there are no error messages. (there may be some warning message while compiling, but that’s OK).

    To install the Apache Web Server, issue:

    make install

    After this step, you can see a new folder /usr/local/Apache2. This is where our Apache Web Server is installed.

    Testing your new installation and making it start as a service:
    Before we test the new installation, we need some post-installation setup. To edit the Apache configuration file, issue:

    gedit /usr/local/apache2/conf/httpd.conf

    search for ServerAdmin and ServerName key words, you will see something like this:

    ServerAdmin you@your.address
    #ServerName new.host.name:80

    Please change it to

    ServerAdmin root@dellrh
    ServerName dellrh:80

    dellrh is the name for my machine, you should change it to your machine name, which you supplied when installing Red Hat Linux, then save the configuration file. Close the editor.

    Start Apache by issuing the following:

    /usr/local/Apache2/bin/apachectl start

    Open your browser,  and type http://localhost into the address bar.  You will see the Apache Web Server welcome screen.

    The Apache documentation is also installed; clicking the documentation hyperlink will lead you to the document page.

    More PHP Articles
    More By Jack Zhang


     

    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-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek