Finding database passwords in PHP code?
Jeffrey Gray
chevy4x4burb at gmail.com
Fri Jan 20 17:39:59 UTC 2012
I have always seen the login info stored in a seperate file on the web
server but within the web domain's location on the server...In other
words, the passwords is not stored in the served php file but is
called from another file that SHOULD have permissions set to 600.
-Jeff Gray
On Fri, Jan 20, 2012 at 11:34 AM, Patton Echols <p.echols at comcast.net> wrote:
> Not directly a Ubuntu question, but hopefully one of you kind folks can help
>
> I am helping to migrate a website from one server to another. I do NOT have
> shell access to either server. What I have is the webhost's administration
> panel. In order to do the migration, I need to create the mysql databases
> in the new server using the existing passwords. Problem is that the person
> who used to admin the website is no longer available and left no info.
>
> First question:
> If I download the PHP for the website, what would I search for in order to
> find the passwords?
> (would that work?)
>
> Second Question: If the answer to question # 1 is, no that won't work. I
> can reset the database passwords. Is there a standard way in PHP for coding
> the passwords into the code? In other words resetting the passwords in the
> PHP as well?
>
> Thanks
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list