You move your wordpress to a different URL and you can’t access wp-admin to login and change it. Solution: Connect to database from command line. select * from wp_options where option_name =’siteurl’; update wp_options set option_value =’http://newaddress’ where option_name=’siteurl’; You’ve ever moved your WordPress site to another location and all…
Create github SSH key
ssh-keygen -t rsa -C “your_email@youremail.com” #Creates a new ssh key using the provided email Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa):<press enter> Enter passphrase (empty for no passphrase):<enter a passphrase> Enter same passphrase again:<enter passphrase again> Your identification has been saved in /home/user/.ssh/id_rsa.…
rake db:create -rake aborted Could not find a JavaScript runtime
****Fix yum groupinstall ‘Development Tools’ /usr/local/src/ wget http://nodejs.org/dist/v0.6.7/node-v0.6.7.tar.gz tar xzvf node-v0.6.7.tar.gz cd node-v0.6.7 ./configure make make install
Install ruby-1.9.3-p0.tar.gz
yum -y install make gcc openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel ncurses-devel sqlite3-devel mysql-devel httpd-devel wget which yum install php-mysql mysql mysql-server /sbin/chkconfig –levels 235 mysqld on /etc/init.d/mysqld start #/usr/bin/mysqladmin -u root password ‘new-password’ cd /usr/local/src wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar xzvf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configure…
Fix -green blinking light power supply
Desktop won’t start, there is a blinking green light on the back of the power supply, which is normally solid green when 110V AC is plugged into it. I have tried the trick of holding the start button while plugging in the power cord ….. no help. Solution: (have your…
Fix error occured while installing sqlite3
Ruby on Rails error on CentOS 6.2 gem install sqlite3 -v ‘1.3.5’ Installing sqlite3 (1.3.5) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension An error occured while installing sqlite3 (1.3.5), and Bundler cannot continue. Make sure that `gem install sqlite3 -v ‘1.3.5’` succeeds before bundling An error…