Again testing the 2.0 build scripts, I have noticed that there is a FIXME for the PHP configuration, so I thought I would feed back what I have found here.

# ################################################################################ Configure PHP
# FIXME haven't checked for unnecessary code since 9.10
# sudo sed -i 's/find_this/replace_with_this/g' infile1 infile2 etc
sudo sed -i 's/magic_quotes_gpc = On/magic_quotes_gpc = Off/g'                       /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/short_open_tag = On/short_open_tag = Off/g'                           /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/max_execution_time = 30/max_execution_time = 300/g'                   /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/memory_limit = 16M/memory_limit = 64M/g'                              /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/memory_limit = 32M/memory_limit = 64M/g'                              /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 50M/g'                 /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/post_max_size = 8M/post_max_size = 50M/g'                             /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/;error_log = filename/error_log = \/var\/log\/php-error.log/g'        /etc/php5/apache2/php.ini /etc/php5/cli/php.ini # php 5.2
sudo sed -i 's/;error_log = php_errors.log/error_log = \/var\/log\/php-error.log/g'  /etc/php5/apache2/php.ini /etc/php5/cli/php.ini # php 5.3
sudo sed -i 's/display_errors = Off/display_errors = On/g'                           /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
sudo sed -i 's/display_startup_errors = Off/display_startup_errors = On/g'           /etc/php5/apache2/php.ini /etc/php5/cli/php.ini

# Fix comment bug that will show warning on command line
sudo sed -i 's/# /\/\/ /g'            /etc/php5/cli/conf.d/mcrypt.ini
sudo sed -i 's/# /\/\/ /g'            /etc/php5/cli/conf.d/imap.ini

magic_quotes_gpc = Off is now the default
memory_limit = 128M in apache2 php.ini
memory_limit = -1 in cli php.ini

Again these aren't biggies because the sed command won't find the required string and will leave them alone, but I thought I would feedback anyway.

Comments

the_g_bomb’s picture

Also the comment bug has been fixed in mcrypt.ini and imap.ini.

They went for replacing the forward slashes with a semi-colon. So that's nice.

mike stewart’s picture

@the_g_bomb ... Thanks for the feedback! It's hugely appreciated. However FWIW, the next version of Quickstart won't be Ubuntu (Unity).

If you're interested in an Ubuntu 1204 Drupal Development Environment based on Unity ,,, checkout: http://drupal.org/project/drupalpro - beta2 is available for download now.

MichaelCole’s picture

Status: Active » Closed (fixed)

Thanks for the feedback!

Mike