How to get your php.ini path with SuPHP

.htaccess code

Edit your public_html/.htaccess file and enter the appropriate code on a new line.

Do NOT refer to the file name. Rather, refer to the directory where the file exists.

E.g. If you want to use "/home/username/www/folder/php.ini", type:

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/www/folder
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>

Save your .htaccess file and enjoy.

If you don't use this option, PHP will use its default path.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

phpSuExec or suPHP

PHPsuExec (pronounced sue-eksek) is a more secure environment for executable files. SuPHP is the...

What is php.ini

The php.ini file is a special file for suPHP (pronounced sue-p-h-p). The php.ini file is where...

PHP Memory limit error

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 23456789 bytes)...

How do I clear my browser cache

Each time you access a file through your web browser, the browser caches it (stores it). In...

URL redirect methods, forwarders

Go to cPanel and click Redirects. This is also known as 301 redirect. Search engines, like...