Category:Technology -> Adventures with the naked Mac Mini Server -> PHP-Lion | ARTS & FARCES internet wiki

Category:Technology -> Adventures with the naked Mac Mini Server -> PHP-Lion

Category:Technology -> Adventures with the naked Mac Mini Server -> Configure PHP on Lion

Configure PHP

Use these steps to configure PHP:

  1. Launch the Server application.
  2. Under the Services section, click the Web service.
  3. Click the On switch.
  4. Click the Enable PHP Web applications checkbox.
  5. Quit the Server application.
  6. Edit the /etc/php.ini file with your text editor of choice:
  7. Define mysql.default_socket as /tmp/mysql.sock.
  8. Define mysqli.default_socket as /tmp/mysql.sock.
  9. Define pdo_mysql.default_socket as /tmp/mysql.sock.
  10. Increase memory_limit as appropriate.
  11. Increase post_max_size as appropriate.
  12. Increase upload_max_filesize as appropriate.
  13. Increase default_socket_timeout as appropriate.
  14. Increase max_execution_time as appropriate.
  15. Increase max_input_time as appropriate.
  16. Save the /etc/php.ini file.
  17. Install the most recent version of Xcode from the Mac App Store.

Categories:

Copyright © 1993–2012 ARTS & FARCES LLC. All rights reserved.