[redhat/fedora] Activate Sendmail

If you want to activate sendmail (SMTP) Server…

/etc/mail/sendmail.mc file

uncomment by adding dnl in front of below line

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
 
So it becomes
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

(more…)

Read More

[php] PHP uploading problem

When you have problem with uploading large file to your PHP application, try to change below options in /etc/php.ini


;php.ini
max_execution_time = 0 ; unlimited
max_input_time = 0
memory_limit = 8M

;Maximum size of POST data that PHP will accept.
post_max_size = 240M ; Set this value to max upload file size that you want

file_uploads = On

; Maximum allowed size for uploaded files.
upload_max_filesize = 240M ; Set this value to max upload file size that you want

Also, if you use Apache 2.0 (Redhat) check if httpd.conf or /etc/httpd/cond.d/php.conf contains below option


LimitRequestBody 0 ; unit is bytes and 0 means unlimited.

Read More