Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Wednesday, September 10, 2014

Install Apache Cassandra on OS X


 # Requirement
Java 7 

# Download Apache Cassandra 2.0.10 from http://cassandra.apache.org/download/
wget http://www.apache.org/dyn/closer.cgi?path=/cassandra/2.0.10/apache-cassandra-2.0.10-bin.tar.gz

# Extract to e.g /usr/local; create symlink
cd /usr/local
tar -xzvf apache-cassandra-2.0.10-bin.tar.gz
ln -s apache-cassandra-2.0.10-bin.tar.gz cassandra

# Create Cassandra directories
sudo mkdir /var/lib/cassandra
sudo mkdir /var/lib/cassandra/data
sudo mkdir /var/lib/cassandra/commitlog
sudo mkdir /var/lib/cassandra/saved_caches
sudo mkdir /var/log/cassandra

# Run Cassandra
cd /usr/local/cassandra
sudo bin/cassandra -f




# Test connection; Open new terminal window
cd /usr/local/cassandra
bin/cqlsh


Wednesday, August 6, 2014

Install Apache 2.2 , PHP 5.4 and MySQL 5.5 on OS X using MacPorts

# APACHE
# Install Apache 2.2
sudo port install apache2

# Edit Apache2 Config
vi /opt/local/apache2/conf/httpd.conf

# Find/Edit the following
ServerName localhost:80

# PHP
Install PHP 5.4 
sudo port install php54-apache2handler

# Execute following command to include PHP5 module to Apache2
cd /opt/local/apache2/modules 
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php54.so 

# MYSQL SERVER
# Install MySQL server
sudo port install mysql55-server

# Setup MySQL DB
sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db  

# Start MySQL
sudo port load mysql55-server

# Setup root password
/opt/local/lib/mysql55/bin/mysqladmin -u root password 'new-password'

# Stop MySQL
sudo port unload mysql55-server
 



Tuesday, July 22, 2014

Setup Apache & PHP for Apple OS X 10.9 Mavericks

Check installed version of Apache, open up Terminal and type

httpd -v

Start Apache, open up Terminal and type

sudo apachectl start

Stop Apache, open up Terminal and type

sudo apachectl stop

Enable PHP, open up Terminal and type

sudo vi /etc/apache2/httpd.conf

Uncomment LoadModule statement php5_module

LoadModule php5_module libexec/apache2/libphp5.so

Restart Apache, open up Terminal and Type

sudo apachectl restart


 

Sunday, June 12, 2011

Upgrading MAMP Pro

  1. Download MAMP and MAMP PRO
  2. Stop all MAMP applications
  3. Goto Applications and rename the current program folder MAMP to MAMP_OLD
  4. Open the MAMP PRO installer
  5. Drag the MAMP and MAMP Pro folders from the installation image to your "Applications" folder
  6. Run the MAMP Pro application, ensure everything is working and DB are still working
  7. Delete old MAMP Pro and MAMP_OLD folders