Skip to content

Instantly share code, notes, and snippets.

@amnuts
Last active August 11, 2023 09:23
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save amnuts/5d56dee5a7bfc9f826ab to your computer and use it in GitHub Desktop.
Save amnuts/5d56dee5a7bfc9f826ab to your computer and use it in GitHub Desktop.
Dreamhost PHP 5.6 phprc file
date.timezone = "Europe/London"
expose_php = 0
extension = phar.so
extension = fileinfo.so
extension = intl.so
suhosin.executor.include.whitelist = phar
[opcache]
zend_extension=opcache.so
opcache.enable=1
opcache.memory_consumption=32
opcache.interned_strings_buffer=4
opcache.save_comments=0
opcache.load_comments=0
opcache.revalidate_path=1
opcache.enable_file_override=1
opcache.validate_timestamps=0
opcache.revalidate_freq=300
opcache.max_file_size=2097152
opcache.fast_shutdown=1
opcache.max_accelerated_files=3907
@amnuts
Copy link
Author

amnuts commented Jan 22, 2016

This is for Dreamhost shared hosting and allows you to over-ride PHP ini settings.

Put the file in ~/.php/5.6/phprc

(adjust directory for other versions of PHP)

If changes are not reflected, run killall php56.cgi from cli (substitute 56 for whatever version of PHP it is)

@JohnMica
Copy link

is this still valid now or you no longer play with dreamhost ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment