Closed (fixed)
Project:
Quickstart: Prebuilt Drupal Development Environment
Component:
Image Build
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2012 at 13:20 UTC
Updated:
11 Jul 2012 at 15:58 UTC
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
Comment #1
the_g_bomb commentedAlso 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.
Comment #2
mike stewart commented@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.
Comment #3
MichaelCole commentedThanks for the feedback!
Mike