Skip to content

Instantly share code, notes, and snippets.

@emayk
Forked from bendo01/php56 macports
Created December 28, 2013 11:31
Show Gist options
  • Save emayk/8158474 to your computer and use it in GitHub Desktop.
Save emayk/8158474 to your computer and use it in GitHub Desktop.
sudo port install php55 +fastcgi fcgi apache-ant php55-cgi php55-mbstring php55-curl php55-mcrypt php55-imagick php55-xdebug php55-iconv php55-mongo php55-oauth php55-openssl php55-esmtp php55-pop3 php55-tidy php55-uploadprogress php55-pcntl php55-sockets php55-soap php55-ssh2 php55-big_int php55-gd php55-svm php55-html_parse php55-http php55-mysql php55-pdflib php55-pear php55-peb php55-posix php55-pspell php55-rar php55-redis php55-snmp php55-stomp php55-svn php55-wddx php55-xmlrpc php55-yaml php55-zip php55-dbase php55-excel php55-gdchart php55-imap php55-xsl php55-redis
sudo port install postgresql92 postgresql92-server postgresql92-doc postgresql_autodoc php55-postgresql phppgadmin postgresql-jdbc mysql5-server phpmyadmin maven3 maven-ant-tasks
sudo port install nginx +flv +geoip +gzip_static +mail +mp4 +ssl +status +substitution +upload +upload_progress +xslt +zip
You may need to update your php.ini for any changes that have been made in this version of php55. Compare /opt/local/etc/php55/php.ini with /opt/local/etc/php55/php.ini-development (if this is a development server) or /opt/local/etc/php55/php.ini-production (if this is
a production server).
###########################################################
# A startup item has been generated that will aid in
# starting nginx with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load nginx
###########################################################
---> Installing nginx @1.4.1_1+flv+geoip+gzip_static+mail+mp4+ssl+status+substitution+xslt+zip
---> Activating nginx @1.4.1_1+flv+geoip+gzip_static+mail+mp4+ssl+status+substitution+xslt+zip
A sample nginx configuration file has been installed in
/opt/local/etc/nginx/nginx.conf.default.
Copy the configuration to
/opt/local/etc/nginx/nginx.conf
and adjust it to your needs before starting nginx.
To use mysqlnd with a local MySQL server, edit /opt/local/etc/php5/php.ini and set mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket to the path to your MySQL server's socket file.
For mysql5, use /opt/local/var/run/mysql5/mysqld.sock
For mysql51, use /opt/local/var/run/mysql51/mysqld.sock
For mysql55, use /opt/local/var/run/mysql55/mysqld.sock
For mariadb, use /opt/local/var/run/mariadb/mysqld.sock
For percona, use /opt/local/var/run/percona/mysqld.sock
If this is a new install, in order to setup the database you might want to run:
sudo -u _mysql mysql_install_db5
sudo port select --set maven maven3
To create a database instance, after install do
sudo mkdir -p /opt/local/var/db/postgresql92/defaultdb
sudo chown postgres:postgres /opt/local/var/db/postgresql92/defaultdb
sudo su postgres -c '/opt/local/lib/postgresql92/bin/initdb -D /opt/local/var/db/postgresql92/defaultdb'
To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
Success. You can now start the database server using:
/opt/local/lib/postgresql92/bin/postgres -D /opt/local/var/db/postgresql92/defaultdb
or
/opt/local/lib/postgresql92/bin/pg_ctl -D /opt/local/var/db/postgresql92/defaultdb -l logfile start
@emayk
Copy link
Author

emayk commented Dec 28, 2013

support nginx , postgresql , maven..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment