Category:Technology -> Adventures with the naked Mac Mini Server -> Configure PHP on Lion
Configure PHP
Use these steps to configure PHP:
- Launch the Server application.
- Under the Services section, click the Web service.
- Click the On switch.
- Click the Enable PHP Web applications checkbox.
- Quit the Server application.
- Edit the /etc/php.ini file with your text editor of choice:
- Define mysql.default_socket as /tmp/mysql.sock.
- Define mysqli.default_socket as /tmp/mysql.sock.
- Define pdo_mysql.default_socket as /tmp/mysql.sock.
- Increase memory_limit as appropriate.
- Increase post_max_size as appropriate.
- Increase upload_max_filesize as appropriate.
- Increase default_socket_timeout as appropriate.
- Increase max_execution_time as appropriate.
- Increase max_input_time as appropriate.
- Save the /etc/php.ini file.
- Install the most recent version of Xcode from the Mac App Store.
