Jump to content

Recommended Posts

If you are on shared hosting then I doubt your host will allow you access to the httpd.conf. What you could do is use .htaccess. .htaccess files allows to change certain aspects of Apache configuration through this file. However not all host allow you to use .htaccess.

 

How come you have to set up a server environment for password and username for your database?

well for security purposes i need to place the username and password for my mysql database somewhere where they can't be found...

 

i've tried placing them above the root directory but not all hosts allow this so i get a "open_basedir restriction in effect" message.

 

i've read in the o'reilly php cookbook that setting them as environment variables is one of the best way to go...

 

does anyone know what i could do?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.