PHP
After that, you can open Terminal and open /private/etc/apache2/httpd.conf file and uncomment this line:
LoadModule php5_module libexec/apache2/libphp5.sothen restart Apache service by uncheck - recheck Web Sharing in System Preferences
MySQL
1. Download package from here
2. Install everything: mysql, startup item, preference pane
3. Start MySQL in Preference Pane
Do the following to fix some stuffs:
$ cd /etcIn php.ini file, edit following:
$ sudo cp php.ini.default php.ini
$ sudo chmod 666 php.ini
1. uncomment this line and insert TimeZone:
date.timezone =Asia/Jakarta2. find all three occurences of /var/mysql/mysql.sock and change to /tmp/mysql.sock
pdo_mysql.default_socket = /tmp/mysql.sock3. change this line from "Off" to "On"
mysql.default_socket = /tmp/mysql.sock
mysqli.default_socket = /tmp/mysql.sock
short_open_tag = OnRestart Apache service by uncheck - recheck Web Sharing in System Preferences
No comments:
Post a Comment
Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)