473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

mod_vhost_alias

Hi all

We have the mod_vhost_alias module installed on our FreeBSD box. This has
screwed up the $_SERVER['DOCUMENT_ROOT'] variable for php as it's set to
/home in httpd.conf.

This is the most contrary thing I've every seen as (probably) 99% of scripts
out there will rely on this to some extent. Does anyone know if there is a
work round for this? We don't want to turn the module off. The
server_path_translated variable is no good without modifying the code to
strip of the actual script file on the end.

Regards

Andy

Mar 31 '06 #1
1 1689

Andy Jacobs wrote:
We have the mod_vhost_alias module installed on our FreeBSD box. This has
screwed up the $_SERVER['DOCUMENT_ROOT'] variable for php as it's set to
/home in httpd.conf.


See:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26052

A workaround may be to auto-include (php.ini: auto_prepend_file) a file
which sets $_SERVER['DOCUMENT_ROOT'].

Mar 31 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: D. Sandmann | last post by:
I have had this problem in the past on another machine and fixed it by setting the environment variables for INFORMIXDIR and INFORMIXSERVER. When adding the same lines on the new machine I still...
2
by: Randell D. | last post by:
Folks, I've never implemented a secure server before - and I now have a project for it - It will be an Apache 1.3 environment tuned with PHP and MySQL - and I'd appreciate any...
2
by: Rick | last post by:
I am using dynamic vhost on my apache development server (conf at end of msg). I am using $_SERVER in the sites I am working on, which, as you may have guessed isnt giving me the full path of...
0
by: Daniel Andersen | last post by:
Hey, We're running apache 1.3 with PHP5 and mod_vhost_alias on our hosting server for our customers, so that we can add domains etc without needing to reconfigure apache every time. Naturally we...
2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
1
by: Mini Mouse | last post by:
Hiya folks, I'm getting the following error(s) below and I'm at a bit of a loss as to how to correct it. When I give it a parameter it then complains it needs two parameters and the second one...
7
by: mark | last post by:
I am designing a website at the moment and looking at the difference between relative and absolute url links which is driving me crazy! I would like to use relative paths, but it is proving very...
7
by: Patrick Useldinger | last post by:
Hi, I have the following configuration: - Apache 2.0.47 (win32) - mod_python 3.0.3 win32 - python 2.3 I have added the loadModule command for mod_python: "LoadModule python_module...
2
by: me.linuxadmin | last post by:
hi all ive got php-4.3.9-3 on my fedora3....tried installing phptimesheet-1.2.4.tar.gz on my system..extracted the folder to document root of apache2..all the files of the timesheet have php3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.