3/06/2011
It took me an hour to properly install the latest versions of ruby, rails and its mysql binder. Although its less than a 5 mins task, I had to search in forums, blogs to deal with the various errors. So just posting this so its easy for someone else to get done with this in 5 mins.
1. Open Terminal and install RVM (Ruby Version Manager)
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
2. Enter the following in ~/.bash_profile and/or ~/.bashrc (replace YOUR USER NAME with the username you’re logged in with):
[[ -s "/home/YOUR USER NAME/.rvm/scripts/rvm" ]] && source "/home/YOUR USER NAME/.rvm/scripts/rvm" # This loads RVM into a shell session.
3. Install Ruby 1.9.2
Read the rest of this article »
12/10/2007
I have been trying to remove the open_basedir directive from my php configuration to allow seamless CURL operation in my server (Plesk based).
As the first step, I edited the /etc/php.ini file and set the directive to none. It made the master value for open_basedir to none. But even if, the local value is set and was causing enough trouble.
I googled it, carried out a few methods, but nothing worked. The last try got me the result I needed:
1. Created a new httpd.conf file in my domains conf folder: /var/www/vhosts/mydomain.org/conf
2. Put the following lines there:
<Directory /var/www/vhosts/mydomain.org/httpdocs>
php_admin_value open_basedir "none"
</Directory>
3. Updated Plesk configuration: # /usr/local/psa/admin/sbin/websrvmng -v -a
4. Restarted apache: apachectl restart
5. Voila!
I hope this helps somebody out there.