How to install MySQL on Mountain Lion

MySQL Download link: http://dev.mysql.com/downloads/mysql choose DMG 64bit version 3 installation steps: Install the mysql-5.x-osx10.x-x86_64.pkg Install the MySQLStartupItem.pkg Install the MySQL.prefpane Start MySQL Server Check Automatically Start on startup nano .bash_profile add to .bash_profile export PATH=$PATH:/usr/local/mysql/bin run mysql -u root GRANT ALL ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘yourpassword’ WITH GRANT OPTION; change yourpassword with a […]

How to install Suhosin on CentOS

yum install php-devel wget http://download.suhosin.org/suhosin-0.9.33.tgz tar -zxvf suhosin-0.9.33.tgz cd suhosin-0.9.33 phpize ./configure make make install Installing shared extensions: /usr/lib64/php/modules/ you have to copy suhosin.so to the correct location. cp /usr/lib64/php/modules/suhosin.so /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so add extension=suhosin.so to php.ini (/usr/local/php/etc/php.ini) restart php-fpm service php-fpm restart to further optimize suhosin, copy following code to php.ini ; Logging Configuration suhosin.log.syslog.facility = […]

How to uninstall LNMP

killall nginx * /etc/init.d/mysql stop * killall mysqld * /usr/local/php/sbin/php-fpm stop * killall php-cgi * rm -rf /usr/local/php * rm -rf /usr/local/nginx * rm -rf /usr/local/mysql * rm -rf /usr/local/zend * rm /etc/my.cnf * rm /etc/init.d/mysql * rm /root/vhost.sh * rm /root/lnmp *

Restore Kvstore data from monogdb to data folder on Ecstore

First, you need comment out following lines in config/config.php define(‘KVSTORE_STORAGE’, ‘base_kvstore_mongodb’); define(‘MONGODB_SERVER_CONFIG’, ‘mongodb://localhost:27017’); it might be different than what you have. login your server under SSH, run /ecstore_path/app/base/cmd kvrecovery a kvstore folder will be generated under data folder.

Install Mongodb on CentOS

nano /etc/yum.repos.d/10gen.repo Copy below 64bit or 32bit code to /etc/yum.repos.d/10gen.repo and save. Create a /etc/yum.repos.d/10gen.repo file to hold information about your repository. If you are running a 64-bit system (recommended,) place the following configuration in /etc/yum.repos.d/10gen.repo file: [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 enabled=1 If you are running a 32-bit system, which isn’t recommended for production […]