|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
User Dir
Has anyone any ideas on a problem I have?
I am running Apache HTTP server 2.0.47. I have created a 'info.php' file - when I copy this file to 'C:\program files\apache group\apache2\htdocs', I can see the PHP Version 4.3.3 info page when I enter 'http://localhost:8080/info.php' into my browser. However, I have then copied 'info.php' to 'C:\Document and Settings\John Leggett\My Documents\My WebSite' and have then entered 'http://localhost:8080/John Leggett/index.php' into my browser and the page cannot be found and I don't see the PHP Version 4.3.3 info page? In the Apache 'httpd.conf' file, I have the 'UserDir' entry to read User Dir "C:\Document and Settings\John Leggett\My Documents\My WebSite". I am running Windows XP Professional. 'John Leggett' is my user name. If anyone could assist with this, I would be very grateful. |
|
#2
|
||||
|
||||
|
Unless I'm mistaken, the UserDir directive doesn't work with Apache under a Windows Environment. On Win32, there's no nice way to figure out a user's home directory.
|
|
#3
|
|||
|
|||
|
I do believe you're mistaken. I came here looking for the same answer using Apache2 in Win, however it's not because I can't set or access the user account with plain html pages, it's the PHP module that doesn't seem to be configured correctly. In the past using Apache 1.3 I believe I had it all working, but lost it in a HD crash.
I was hoping someone would have an answer like setting the UserDir in the php.ini file correctly. I have: user_dir = "My Documents/WWW" There is always the possibility it's an Apache2/PHP issue, but I don't want to reinstall Apache 1.3 to try. PS: This Invisionboard reply page doesn't seem to work well with Mozilla. |
|
#4
|
|||
|
|||
|
Set Apache 2.0.55 UserDir on windows XP
Hi,
I use a Classic Standalone Apache 2.0.55 on Windows XP pro Service Pack2, my test page http://localhost ort/~username/test.html do work, so I guessyour issue is not related to PHP, but u may rather use forward slashes '/' and NOT back slahshes '\' in your httpd.conf UserDir directive .... U can try : UserDir "My Documents/My Website" UserDir "My Documents/public_html" UserDir "C:/Documents and Settings/*/My Documents/test" UserDir "C:/Documents and Settings/*/My Documents/My Website" strange thing is that : UserDir enabled cause server to fail when trying to start ... I hope this would help u . Steve Quote:
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > User Dir |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|