Can anyone tell me if we have access to the Apache config file as a site admin? I'm concerned about file security. How do I prevent someone from getting to files they shouldn't?
Hi @alharlow. Welcome to GoDaddy Community!
If you're on a shared hosting platform, then you (or your site's users) wouldn't have access to the httpd.conf file. You would have the ability to use a .htaccess file though, if you need to make adjustments to the hosting environment. Hope that helps!
I'm just running using godaddy services. I'm trying to insert php in one of my html files. Someone said to use .htaccess to put in an addtype application but others said using config is better. I tried using the .htaccess route to no success.
Can anyone tell me how to get to the config file. Thank you in advance.
You don't need to access any configuration files to use php on a Godaddy server. If I'm not mistaken php comes standard with every hosting account.
Your problem is you can never use php scripts in any .html or .htm files. You can only use php in a .php file. I would recommend you change the file extensions of any html files to .php to resolve your problem.
Note: There is a method you can use to tell php to use different, or your own custom MIME file types; But that is a touch more complicated. I don't recommend it to beginners.