Custom php.ini


I have a probleme whit a gallery scrip and I get this answer:
"To accomplish this, we actually allow you to run your own PHP.ini so you can configure it as you like, and not affect others on the server.
Here’s an article that explains how to go about that."
but I have probleme whith this comand “./”
-The following command calls our new shell script to copy the php.cgi and php.ini files into our cgi-bin directory.
I tryed and to conver whith “dos2unix
” - the same error -500…not understood.
Can I get a copy of this files: php.ini and php.cgi?
Thank you.


Change “[color=#CC0000][/color]” to your domain’s foldername.

Check that your .htaccess file in the [color=#CC0000][/color] folder has these lines:

[color=#0000CC]AddHandler php-cgi .php[/color]
[color=#0000CC]Action php-cgi /cgi-bin/php.cgi[/color]

In shell:

mkdir -p $HOME/[color=#CC0000][/color]/cgi-bin

cp /dh/cgi-system/php5.cgi $HOME/[color=#CC0000][/color]/cgi-bin/php.cgi

cp /etc/php5/cgi/php.ini $HOME/[color=#CC0000][/color]/cgi-bin/php.ini

chmod 755 $HOME/[color=#CC0000][/color]/cgi-bin
chmod 750 $HOME/[color=#CC0000][/color]/cgi-bin/php.cgi
chmod 644 $HOME/[color=#CC0000][/color]/cgi-bin/php.ini
chmod 644 $HOME/[color=#CC0000][/color]/.htaccess

Maximum Cash Discount on any plan with MAXCASH