My centOS vserver broke down after a "yum update" and even the centOS community forum could not give an answer within 24h.
In my books that is poor for the almighty and stable centOS.
Bare in mind that I am just a normal user of linux, no professional and definitely no expert when it comes to server, but I can read, try and share my findings:
For now I will stop this installation tutorial with the advise to do a restart of your server and see if all your settings and services work after that.
My last trial with centOS ended after a reboot did not work, but happend days later because I never bothered checking - never again!
Have fun!!!
Nico
PS: apt-get install phppgadmin
getting 403 error? got to /etc/apache2/conf.d/phppgadmin
and change to allow from all
In my books that is poor for the almighty and stable centOS.
Bare in mind that I am just a normal user of linux, no professional and definitely no expert when it comes to server, but I can read, try and share my findings:
debian 6 installation steps via ssh
secure your server:
- adduser foobar for security purposes
- change /etc/sshd/sshd_conf to PermitRootLogin no
- now you can login as foobar and change to root via su -
- visudo for sudo command permissions
- and put this at the bottom: foobar ALL=(ALL) ALL
change hostname
- change hostname in /etc/hostname and in /etc/hosts
- reboot
login via rsa key rather than password
- locally do ssh-keygen
- ssh-copy-id -i foobar@hostname...
- ssh now works without passwords but with keys (for easy deployment)
install ruby and rails via rvm
- login as root
- always good to have: sudo apt-get install build-essential
- multiuser: \curl -L https://get.rvm.io | sudo bash -s stable --ruby --rails
- adduser foobar rvm
- I did a source /usr/local/rvm/scripts/rvm with all users
- and a logout/login and test with rvm -v revealed a working installatio
apache phusion passenger
- su -
- gem install passenger
- passenger-install-apache2-module
- the gem told me to do:
- apt-get install libcurl4-openssl-dev
- apt-get install apache2-threaded-dev
- and now another passenger-install-apache2-module worked
- put the first Load.... line into /etc/apache2/mods-available/passenger.load
- the second two lines in /etc/apache2/mods-available/passenger.conf
- run a2enmod passenger
- /etc/init.d/apache2 restart
set up a virtual host and test passenger
- create a rails app in /var/www with e.g. rails new mysite
- create a site as conf file in /etc/apache2/sites-available/mysite
- put virtual host data in it /etc/apache2/sites-available/mysite
- a2ensite mysite
- /etc/init.d/apache2 reload
- point your browser to it and look if passenger runs (errors asite, just passenger)
nodeJS (my passenger error with mysite test app)
- try sudo apt-get install node otherwise:
- sudo apt-get install python g++ make checkinstall
- wget http://nodejs.org/dist/node-latest.tar.gz
- tar -xzvf node-latest.tar.gz && cd node-v*
- ./configure
- checkinstall #(remove the "v" in front of the version number in the dialog)
- sudo dpkg -i node_*
- change user and try node -v
- in my case also mysite test app worked then
git
- apt-get install git
get postgresql
- go to postgresql wiki page for apt
create new databases with utf8 enconding
- su -
- su postgres
- do these steps (source):
UPDATE pg_database SET datistemplate=FALSE WHERE datname='template1'; DROP DATABASE template1; CREATE DATABASE template1 WITH owner=postgres template=template0 encoding='UTF8'; UPDATE pg_database SET datistemplate=TRUE WHERE datname='template1';
- create a new user with create database access: createuser -dP gitnedab
- give that user a database: createdb -O newusername databasename
For now I will stop this installation tutorial with the advise to do a restart of your server and see if all your settings and services work after that.
My last trial with centOS ended after a reboot did not work, but happend days later because I never bothered checking - never again!
Have fun!!!
Nico
PS: apt-get install phppgadmin
getting 403 error? got to /etc/apache2/conf.d/phppgadmin
and change to allow from all
Kommentare
Kommentar veröffentlichen