Custom php.ini


#1

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.

http://wiki.dreamhost.com/PHP.ini"
but I have probleme whith this comand “./php-copy.sh”
-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 php-copy.sh
” - the same error -500…not understood.
Can I get a copy of this files: php.ini and php.cgi?
Thank you.


#2

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


Check that your .htaccess file in the [color=#CC0000]domain.com[/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]domain.com[/color]/cgi-bin

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

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

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


Maximum Cash Discount on any plan with MAXCASH