Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 26th, 2004, 03:20 AM
stephaneeybert stephaneeybert is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 stephaneeybert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to stephaneeybert
PHP not parsed if sitting outside the doc root

Dear all,

I have a library of php files that I would like to use in several web sites.

I thus have several directories, one for each web site, containing the different web sites files.

One web site is at:
/home/httpd/vhosts/thalasoft.net/httpdocs/

Another one is at:
/home/httpd/vhosts/thalasoft.net/subdomains/demo/httpdocs/

I would like to avoid ducplicating the library of php files in these different web sites directories.

I would prefer to keep only one copy of these library php files on the server.

The server is a dedicated server.

The library engine/ is sitting in the directory

/home/httpd/vhosts/thalasoft.net/httpdocs/engine
I use this alias to have the engine/ directory present in the other directories.

Alias /engine "/home/httpd/vhosts/thalasoft.net/httpdocs/engine"

<Directory "/home/httpd/vhosts/thalasoft.net/httpdocs/engine">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

But when calling this
http://demo.thalasoft.net/engine/system/admin/login.php
I get a popup window offering to download the php source file.

Whereas calling this http://www.thalasoft.net/engine/system/admin/login.php
works fine and the file is parsed.

Any clue?

Regards

Stephane

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > PHP not parsed if sitting outside the doc root


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway