[MacPorts] howto/PHP modified
MacPorts
noreply at macports.org
Mon Dec 29 21:40:41 PST 2014
Page "howto/PHP" was changed by magill at mac.com
Diff URL: <https://trac.macports.org/wiki/howto/PHP?action=diff&version=4>
Revision 4
Comment: add $ prefix to commands
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PHP
=========================================================================
--- howto/PHP (version: 3)
+++ howto/PHP (version: 4)
@@ -10,8 +10,8 @@
= Step 1: Install PHP 56 = #install
{{{
-sudo port install php56-apache2handler
-sudo port install php56-mysql
+$ sudo port install php56-apache2handler
+$ sudo port install php56-mysql
}}}
@@ -22,13 +22,13 @@
Set up your PHP configuration files. For development purposes use:
{{{
-cd /opt/local/etc/php56
-sudo cp php.ini-development php.ini
+$ cd /opt/local/etc/php56
+$ sudo cp php.ini-development php.ini
}}}
or for a production server:
{{{
-cd /opt/local/etc/php56
-sudo cp php.ini-production php.ini
+$ cd /opt/local/etc/php56
+$ sudo cp php.ini-production php.ini
}}}
then make changes to that newly created php.ini file - ''/opt/local/etc/php56/php.ini''
@@ -37,7 +37,7 @@
Use MacPorts to install the latest version of `phpMyAdmin`.
{{{
-sudo port install phpmyadmin
+$ sudo port install phpmyadmin
}}}
'''phpMyAdmin''' must be configured before it can be used. We do this in Step 5 below.
@@ -75,8 +75,8 @@
First create the config.inc.php file:
{{{
-cd /opt/local/www/phpmyadmin/
-sudo cp config.sample.inc.php config.inc.php
+$ cd /opt/local/www/phpmyadmin/
+$ sudo cp config.sample.inc.php config.inc.php
}}}
This will create a file `config.inc.php` in the `phpMyAdmin` directory. Edit that file, and locate the lines:
@@ -99,7 +99,7 @@
For additional features provided by pmadb (http://wiki.phpmyadmin.net/pma/pmadb), run
{{{
-mysql5 -u root -p < /opt/local/www/phpmyadmin/examples/create_tables.sql
+$ mysql5 -u root -p < /opt/local/www/phpmyadmin/examples/create_tables.sql
}}}
Then run this SQL to setup the pma 'controluser' (change the 'pmapass' to your password).
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/PHP>
MacPorts <https://www.macports.org/>
Ports system for OS X
This is an automated message. Someone added your email address to be
notified of changes on 'howto/PHP' page.
If it was not you, please report to .
More information about the macports-changes
mailing list