Skip to content

Commit

Permalink
Merge pull request #34 from fifteen3/master
Browse files Browse the repository at this point in the history
PHP post_max_size, Mysql max_allowed_packets size increase settings
  • Loading branch information
mikecanz committed Jan 8, 2013
2 parents 21a74b3 + f14bd68 commit a746a77
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions modules/mysqld/files/etc/my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
max_allowed_packet=16M

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
4 changes: 4 additions & 0 deletions modules/mysqld/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
ensure => running,
subscribe => Package["mysql"],
}

file { "/etc/my.cnf":
source => "puppet:///modules/mysqld/etc/my.cnf",
}
}
2 changes: 1 addition & 1 deletion modules/php/files/etc/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ file_uploads = On

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M
upload_max_filesize = 8M

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20
Expand Down

0 comments on commit a746a77

Please sign in to comment.