pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
query regarding php
2+ messages / 2 participants
[nested] [flat]

* query regarding php
@ 2007-02-21 12:50  sahaanaa subha <sahaanaa@kify.net>
  0 siblings, 1 reply; 2+ messages in thread

From: sahaanaa subha @ 2007-02-21 12:50 UTC (permalink / raw)
  To: p_prakash99@lycos.com; trupti_rajpura@hotmail.com; vishal@alphasolv.com; news@aynsoft.com; nakul@glidemail.com; joydip@allindialive.com; sunvyas@yahoo.com; +Cc: ash@alinnov.com; skotak@hotmail.com; pgsql-php

<DIV style="font-family:Arial, sans-serif; font-size:10pt;">Dear sir,<BR>&nbsp;Iam using PHP not as a stanalone application<BR>&nbsp;Iam using postgresql with PHP. when i have installed this PHP5 with postgresql8.1.4 and apache2.0<BR>&nbsp;I have installed a whole package of this availble from bitrock website.So i havent installed PHP as a stanalone application. <BR>The application works fine .<BR>&nbsp;But 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.<BR>Have i to change any configuration file for this. If so please say me which file and what modifications has to be made.<BR>Your answers will be quite helpful.<BR>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<BR>for example,if have a test file phptest.php then i can run the file by placing it inside<BR>/apache2/htdocs/ and type the following address "<A href="http://127.0.0.1:8089/phptest.php">http://127.0.0.1:8089/phptest.php</A>"; in my webbrowser.<BR>Instead of doing this i just want to open my web browser and run the phptest.php file from my home directory eg /home/sahaanaa/phptest.php<BR>how do i do it.?<BR>&nbsp;thankyou<BR>&nbsp;sahaanaa<BR>&nbsp;<BR><HR>I use Kify Mail - http://email.kify.com - Get your Kify Mail Account Today - Its Free, Fast, Easy, Secure &amp; Spam-Free.</DIV>

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: query regarding php
@ 2007-02-21 16:37  Robert Treat <xzilla@users.sourceforge.net>
  parent: sahaanaa subha <sahaanaa@kify.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2007-02-21 16:37 UTC (permalink / raw)
  To: pgsql-php; 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

On Wednesday 21 February 2007 07:50, sahaanaa subha wrote:
> Dear sir,
>  Iam using PHP not as a stanalone application
>  Iam 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 .
>  But 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 this
> 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) 
using your OS's package manager.   barring that, you should be able to create 
a symlink between the directories so that your regular user has access. 
see "man ln" for more. 

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2007-02-21 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 12:50 query regarding php sahaanaa subha <sahaanaa@kify.net>
2007-02-21 16:37 ` Robert Treat <xzilla@users.sourceforge.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox