RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-07 Thread Graham Rule
On Mon, 30 Jun 2003, Peter Janett wrote: This issue seems to be a huge issue, and I've been looking for a good solution for quite a long time. My concern is that a shell emulating PHP or Perl script run as Apache can read or copy ANY PHP script used with PHP as an Apache module. The reason I

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-07 Thread Wendell Brown
On Mon, 7 Jul 2003 21:01:40 +0100 (BST), Graham Rule wrote: The only place that they are available is to PHP scripts run in the relevant directory. Which means that if a hacker finds a cross script hack in one of those directories (ie, if you have a security hole in one of your php scripts),

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-01 Thread Mark
That's where this thread started... --- Wendell Brown [EMAIL PROTECTED] wrote: On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: My concern is that a shell emulating PHP or Perl script run as Apache can read or copy ANY PHP script used with PHP as an Apache module. It seems to me

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-01 Thread Peter Janett
] (303)828-9882 -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 2:59 PM To: Wendell Brown Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] web site security: how to hide login info for mysql-connection On Mon, 30 Jun 2003, Wendell

Re: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Mark
PROTECTED] Sent: Sunday, June 29, 2003 4:33 PM Subject: Re: [PHP] web site security: how to hide login info for mysql-connection Be aware that wherever you store the settings folder, your php.ini should have that path in it's include_directories setting, and the webserver must

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Peter Janett
Ganswijk; [EMAIL PROTECTED] Subject: Re: [PHP] web site security: how to hide login info for mysql-connection How do you handle storing the login info then? Do you encrypt the file and decrypt it on the fly? Where would you store the key? I'm in the process of setting up a new application

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Wendell Brown
On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: Directory /var/www/html/mydatabase php_value mysql.default_user fred php_value mysql.default_password secret php_value mysql.default_host server.example.com /Directory H what about phpinfo()? It shows those settings in the

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Mike Migurski
Directory /var/www/html/mydatabase php_value mysql.default_user fred php_value mysql.default_password secret php_value mysql.default_host server.example.com /Directory H what about phpinfo()? It shows those settings in the clear. solution: don't leave stray phpinfo's on a

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, Wendell Brown wrote: On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: Directory /var/www/html/mydatabase php_value mysql.default_user fred php_value mysql.default_password secret php_value mysql.default_host server.example.com /Directory H

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Wendell Brown
On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: My concern is that a shell emulating PHP or Perl script run as Apache can read or copy ANY PHP script used with PHP as an Apache module. It seems to me like the safest way to handle this would be to create a function that opens the database

[PHP] web site security: how to hide login info for mysql-connection

2003-06-29 Thread anders thoresson
Hi, At the moment I store username, password and database for my MySQL connections in a file called settings.php to avoid putting them in my php files direct. On a Linux server, what extra steps can I take to prevent others from accessing settings.php? Somewhere, I've read that settings.php

Re: [PHP] web site security: how to hide login info for mysql-connection

2003-06-29 Thread anders thoresson
Be aware that wherever you store the settings folder, your php.ini should have that path in it's include_directories setting, and the webserver must have read permissions for that file. I don't have access to php.ini on my ISP's web server. Is there a way for a user to make their own set ow

Re: [PHP] web site security: how to hide login info for mysql-connection

2003-06-29 Thread Avvio - Frank
).:. /your/path/here/); then include/require as normal -- frank - Original Message - From: anders thoresson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 29, 2003 4:33 PM Subject: Re: [PHP] web site security: how to hide login info for mysql-connection Be aware that wherever you

Re: [PHP] web site security: how to hide login info for mysql-connection

2003-06-29 Thread Jaap van Ganswijk
these files have to be readable by Apache and therefore other users on the system can often also read them. Greetings, Jaap - Original Message - From: anders thoresson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 29, 2003 4:33 PM Subject: Re: [PHP] web site security: how to hide