Changes between Version 48 and Version 49 of howto/MAMP


Ignore:
Timestamp:
Apr 6, 2010, 11:42:39 PM (14 years ago)
Author:
dweber@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v48 v49  
    7474Restart Apache using `sudo /opt/local/apache2/bin/apachectl -k restart` to make this change take effect. You can then view your personal pages by accessing http://localhost/~username/, where "username" is your Mac OS X account's short name.
    7575
    76 
    7776==== Local Apache manual ==== #manual
    7877
     
    9089
    9190Restart Apache using `sudo /opt/local/apache2/bin/apachectl -k restart` to make this change take effect. You can then view the manual by accessing http://localhost/manual/.
     91
     92
     93==== Secure Sockets (https) ==== #ssl
     94
     95This works for a development system (not recommended for production!).
     96
     97{{{
     98openssl genrsa -des3 -out server.key 1024
     99# [enter your passphrase, a simple password we will remove soon]
     100openssl req -new -key server.key -out server.csr
     101# [you can accept all the defaults, it does not matter, or customize it to your liking]
     102openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
     103# [will ask for passphrase]
     104cp server.key server.key.bak
     105openssl rsa -in server.key.bak -out server.key
     106# [passphrase needs to be typed]
     107sudo cp server.crt /opt/local/apache2/conf/
     108sudo cp server.key /opt/local/apache2/conf/
     109}}}
     110
     111Then enable the following in {{{/opt/local/apache2/conf/httpd.conf}}}
     112
     113{{{
     114LoadModule ssl_module modules/mod_ssl.so
     115
     116# Secure (SSL/TLS) connections
     117Include conf/extra/httpd-ssl.conf
     118}}}
     119
     120
    92121
    93122
     
    319348There is also an interactive setup, see http://www.phpmyadmin.net/documentation/#setup_script and the demo at http://www.phpmyadmin.net/documentation/setup/
    320349
     350For additional features provided by pmadb (http://wiki.phpmyadmin.net/pma/pmadb), run
     351run this SQL to setup the pma 'controluser' (change the 'pmapass' to your password).
     352{{{
     353$ mkdir ~/tmp && cd tmp
     354$ cat > tmp.sql
     355GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';
     356GRANT SELECT (
     357    Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
     358    Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
     359    File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
     360    Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
     361    Execute_priv, Repl_slave_priv, Repl_client_priv
     362    ) ON mysql.user TO 'pma'@'localhost';
     363GRANT SELECT ON mysql.db TO 'pma'@'localhost';
     364GRANT SELECT ON mysql.host TO 'pma'@'localhost';
     365GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
     366    ON mysql.tables_priv TO 'pma'@'localhost';
     367--
     368-- [Hit CNT-D]
     369--
     370$ mysql5 -u root -p < tmp.sql
     371}}}
     372
     373Then setup all the tables for the pmadb features with:
     374{{{
     375mysql5 -u root -p < /opt/local/www/phpmyadmin/scripts/create_tables.sql
     376}}}
     377
     378
    321379To check your phpMyAdmin installation, point your browser to http://localhost/phpmyadmin and verify that phpMyAdmin loads and can access your database (by providing a username and password, depending on the authentication method you selected).
    322380
     381
     382
     383
    323384[wiki:howto <- Back to the HOWTO section]