[root@kvm5 ~]# yum install php-ldap [root@kvm5 ~]# /etc/init.d/httpd reload
sendmail: fatal: chdir /var/spool/postfix: Permission denied
[root@kvm5 ~]# setsebool -P httpd_can_sendmail on
[root@dywang ~]# nslookup CloudVM-004.cyut.edu.tw Server: 163.17.10.1 Address: 163.17.10.1#53 ** server can't find CloudVM-004.cyut.edu.tw: NXDOMAIN
[root@kvm5 ~]# vim relayhost /etc/postfix/main.cf # The relayhost parameter specifies the default host to send mail to # no relayhost is given, mail is routed directly to the destination. relayhost = xxx.xxx.xxx.xxx
[root@kvm5 ~]# /etc/init.d/postfix restart
[root@dywang ~]# diff -urN php.ini /etc/php.ini --- php.ini 2014-03-20 19:46:56.340663099 +0800 +++ /etc/php.ini 2014-02-28 19:19:51.128049556 +0800 @@ -454,7 +454,7 @@ ; Maximum amount of memory a script may consume (128MB) ; http://www.php.net/manual/en/ini.core.php#ini.memory-limit -memory_limit = 128M +memory_limit = 256M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; @@ -726,7 +726,7 @@ ; Maximum size of POST data that PHP will accept. ; http://www.php.net/manual/en/ini.core.php#ini.post-max-size -post_max_size = 8M +post_max_size = 11M ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to ; escape any character sequences in GET, POST, COOKIE and ENV data which might @@ -875,7 +875,7 @@ ; 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 = 11M ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; @@ -943,7 +943,7 @@ [Date] ; Defines the default timezone used by the date functions ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone -;date.timezone = +date.timezone = "Asia/Taipei" ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude ;date.default_latitude = 31.7667