Re: Re: How to allow ~user/xxx.php on Windows XP

From: Date: Wed, 15 Jan 2003 17:36:27 +0000
Subject: Re: Re: How to allow ~user/xxx.php on Windows XP
Groups: php.windows 
Request: Send a blank email to php-windows+get-17889@lists.php.net to get a copy of this message
Hi, From the httpd.conf (apache 1.3.x) # Under Win32, we do not currently try to determine the home directory of # a Windows login, so a format such as that below needs to be used. See # the UserDir documentation for details. # <IfModule mod_userdir.c> UserDir "C:/Program Files/Apache Group/Apache/users/" </IfModule> I'm not sure if the same goes for apache 2.0 though. - Frank > Hi, Neil: > > Thanks for the response. > When I go http://localhost/~myusername/test.php, I got a page > just with just > "No input file specified. " in it. Whether it only happens to PHP or also to > HTML seems to be depending on the AddType setting in my Apache configuration > file. If .html is associated with php, any html file on the user's web > directory can not be correctly displayed just as the .php file, while things > are fine when the same file is located at the DocumentRoot directory of > Apache. > > I must be missing something here. Any insight? > > -- Gang Wang > > > "Neil Smith" <neil@fresh-toast.uklinux.net> wrote in message > news:5.2.0.9.0.20030115134447.00ab15e0@mail.uklinux.net... > > "It doesn't work" : Err, what error message do you get ? > > > > A 404? 500 error ? or something else.... do you see HTML or PHP source or > > binary mush or nothing ? Does this only happen with PHP files or can you > > view HTML files just fine ? > > > > http://httpd.apache.org/docs-2.0/howto/public_html.html > > > > Cheers, > > Neil Smith, > > > > At 09:03 15/01/2003 +0000, you wrote: > > >Message-ID: <20030115054941.83626.qmail@pb1.pair.com> > > >To: php-windows@lists.php.net > > >From: "Gang Wang" <wang93117@yahoo.com> > > >Date: Tue, 14 Jan 2003 21:49:40 -0800 > > >Subject: How to allow ~user/xxx.php on Windows XP > > > > > >Hello, everyone: > > > > > >I am new to PHP on windows. I could not get > > >http://localhost/~username/my.php work on Windows XP. > > >Here is what I > have: > > >Windows XP Pro + Appache 2.0.40 for Windows + Php 4.3 > > >I followed tutorial posted at http://internetmaster.com/installtutorial/. > > > > > >It works fine when .php file is in the DocumentRoot directory. In my > case, > > >it is the default one Apache uses: c:\program files\apache > group\...\htdocs > > > > > >However, if I copy the working php file to a user's Apache web directory, > it > > >stops working. In other word, > > >http://localhost/test.php works while > > >http://localhost/~myusername/test.php does not work. > > > > > >Any one can help out here? > > > > > >-- Gang Wang > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#17889) next »