gtridez Posted August 4, 2007 Share Posted August 4, 2007 i have a very basic question... i'm hosting with a host provider that has my website on a shared server... is it possible that i can access my httpd.conf file and if so how? because i need to add server env's for database password and username... anyone could help me here? Quote Link to comment https://forums.phpfreaks.com/topic/63275-basic-httpdconf-question/ Share on other sites More sharing options...
wildteen88 Posted August 4, 2007 Share Posted August 4, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/63275-basic-httpdconf-question/#findComment-315479 Share on other sites More sharing options...
gtridez Posted August 4, 2007 Author Share Posted August 4, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/63275-basic-httpdconf-question/#findComment-315614 Share on other sites More sharing options...
steviewdr Posted August 6, 2007 Share Posted August 6, 2007 Does your provider offer suPHP? *THAT* is the best way to go, to secure mysql passwords in plain text. Also, you could create a readonly mysql account. -steve Quote Link to comment https://forums.phpfreaks.com/topic/63275-basic-httpdconf-question/#findComment-316807 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.