Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2004, 06:52 AM
Authorized User
 
Join Date: Jul 2004
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default install website away from Apache htdocs dir.

I have successfully implemented our in house intranet system using Apache, MySQL and PHP that is working on a temporarily on a test server.

After hours of testing we are now ready to implement the site over to the main company servers. Our intentions of installation are as follows:

Apache to sit in C:\Program Files
PHP to sit in C:\Program Files
MySQL to sit in a different drive called E:\Data
The Intranet to also sit in E:\Data

We want to keep all data stored away from the main drive.
Does anyone know how to redirect Apache to tell it to use the PHP Intranet files on the other drive?

I have tried to use <VirtualHost> but it does not seem to like it.

Help gratefully appreciated.

Thanks.

Michael.
__________________
Michael.
 
Old November 23rd, 2004, 02:58 PM
Registered User
 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I am understanding the question, you want to change the DocumentRoot in the httpd.conf file to the E:\Data directory. This is from the manual:
Syntax: DocumentRoot directory-path
Default: DocumentRoot /usr/local/apache/htdocs

This directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document. Example:

DocumentRoot /usr/web
then an access to http://www.my.host.com/index.html refers to /usr/web/index.html.

 
Old November 24th, 2004, 07:25 AM
Authorized User
 
Join Date: Jul 2004
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

great, yes that is what I was after.

thanks.

Michael.





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Php 5 MySQL 5 Apache 2 Win32]Install universalbitmapper PHP Databases 1 February 24th, 2006 04:16 AM
help! Cannot install apache tomcat 5.5.12 batken Apache Tomcat 0 December 23rd, 2005 03:07 AM
Is there a Dir() Function with JavaScript rguidry Javascript How-To 2 October 3rd, 2005 11:54 AM
Trouble with Apache Install ftmarkle BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 July 22nd, 2004 04:39 AM
PHP/Apache install issue.."blank" browser page dgr72371 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 6 June 15th, 2004 11:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.