Home arrow PHP arrow Page 3 - Executing Microsoft SQL Server Stored Procedure from PHP on Linux

Executing Microsoft SQL Server Stored Procedure from PHP on Linux

Learn how to setup, install and configure Apache and PHP on a Linux box to execute MS SQL stored procedures. This extensive article takes you through an in-depth look on how to achieve your ideal environment.

Author Info:
By: Jack Zhang
Rating: 4 stars4 stars4 stars4 stars4 stars / 33
October 20, 2003
  1. · Executing Microsoft SQL Server Stored Procedure from PHP on Linux
  2. · Preparation
  3. · Installing the Apache Web Server
  4. · Installing the Apache Web Server, Cont'd
  5. · Installing FreeTDS
  6. · Modify the PHP Source Code
  7. · Modify the PHP Source Code, Cont'd
  8. · Executing MS SQL Server Procedures from PHP
  9. · Conclusion

print this article

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:


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.

blog comments powered by Disqus

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- 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

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials