Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 886CE9FB5B3 for ; Wed, 21 Feb 2007 12:37:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 44164-02 for ; Wed, 21 Feb 2007 12:37:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by postgresql.org (Postfix) with ESMTP id 503AE9FB547 for ; Wed, 21 Feb 2007 12:37:39 -0400 (AST) Received: from new-host.home ([71.166.59.121]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JDT009PVNIQ11L0@vms040.mailsrvcs.net> for pgsql-php@postgresql.org; Wed, 21 Feb 2007 10:37:38 -0600 (CST) Date: Wed, 21 Feb 2007 11:37:28 -0500 From: Robert Treat Subject: Re: query regarding php In-reply-to: <20070221045043.DD3D750D@resin10.mta.everyone.net> To: pgsql-php@postgresql.org, sahaanaa@kify.net Cc: p_prakash99@lycos.com, trupti_rajpura@hotmail.com, vishal@alphasolv.com, news@aynsoft.com, nakul@glidemail.com, joydip@allindialive.com, sunvyas@yahoo.com, ash@alinnov.com, skotak@hotmail.com Message-id: <200702211137.29004.xzilla@users.sourceforge.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Content-disposition: inline References: <20070221045043.DD3D750D@resin10.mta.everyone.net> User-Agent: KMail/1.9.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.575 tagged_above=0 required=5 tests=AWL, BAYES_20, DEAR_SOMETHING, FORGED_RCVD_HELO, NORMAL_HTTP_TO_IP X-Spam-Level: X-Archive-Number: 200702/29 X-Sequence-Number: 3712 On Wednesday 21 February 2007 07:50, sahaanaa subha wrote: > Dear sir, > =C2=A0Iam using PHP not as a stanalone application > =C2=A0Iam using postgresql with PHP. when i have installed this PHP5 with > postgresql8.1.4 and apache2.0 I have installed a whole package of this > availble from bitrock website.So i havent installed PHP as a stanalone > application. The application works fine . > =C2=A0But the problem is If i create any webbased PHP(*.php) application = to run > that i have to place them in hpdock of apache folder. only then iam able = to > run the application. else iam unable to run the webpage. So would you > suggest me a better way to run any of my php applications from my home > directory without placing them in hpdocs.I have istalled this PHP in my > linux workstation as a root user. so if i have to use this as a non root > user iam unable to access the hpdocs folder ( for some security reasons i > dont want to give access to the folder as other user). so please suggest = me > a way to run this applications from my home directory only. Have i to > change any configuration file for this. If so please say me which file and > what modifications has to be made. Your answers will be quite helpful. > I was said that it was due to apache virtual host . so do i have to make > any modification to the config file and if so what modification for > example,if have a test file phptest.php then i can run the file by placing > it inside /apache2/htdocs/ and type the following address > "http://127.0.0.1:8089/phptest.php" in my webbrowser. Instead of doing th= is > i just want to open my web browser and run the phptest.php file from my > home directory eg /home/sahaanaa/phptest.php how do i do it.? I'd probably suggest just installing all the pieces (apache/php/postgres)=20 using your OS's package manager. barring that, you should be able to crea= te=20 a symlink between the directories so that your regular user has access.=20 see "man ln" for more.=20 =2D-=20 Robert Treat Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL