Useful commands for setting up CentOS Linux

Find out what version you're running
cat /etc/redhat-release

find out if 64- or 32-bit
uname -m

install with yum
yum install

uninstall with yum
yum remove

remove or delete a file
rm <filename>

installing RHEL EPEL repo
http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x

more yum stuff
http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/

 

weird "issues"
(aka n00b mistakes)
warning: epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
error: Failed dependencies:
rpmlib(FileDigests) <= 4.6.0-1 is needed by epel-release-6-5.noarch
rpmlib(PayloadIsXz) <= 5.2-1 is needed by epel-release-6-5.noarch

Installing for wrong version! (see above to check your version)

It worked!

Now running a VPS for JoeJiko.com with CentOS 6.4.
My colleague said I should've gone with Debian.. but he was too late.

The process was mostly flawless, except a few problems with iptables.

I followed the guide to install Centos 6.4 with Apache
(I tried nginx first but it was so unfamiliar that I decided to go with Apache for now until I can test more)

http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-apache2-dovecot-ispconfig-3

 

I was stuck for awhile trying to get ISPconfig3's interface to show up. Every time I tried to access :8080, the connection timed out.
Of course, it had to do with the firewall. I disabled that using system-config-firewall and it worked!

 

Also found these useful in my journey:

MySQL commands

http://www.pantz.org/software/mysql/mysqlcommands.html

 

Add Linux user with document root permissions

http://www.rackspace.com/knowledge_center/article/how-to-add-linux-user-with-document-root-permissions

Useful commands for setting up CentOS Linux

Find out what version you're running
cat /etc/redhat-release

find out if 64- or 32-bit
uname -m

install with yum
yum install

uninstall with yum
yum remove

remove or delete a file
rm

installing RHEL EPEL repo
http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x

more yum stuff:
http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/

 

weird "issues" (aka n00b mistakes)
warning: epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
error: Failed dependencies:
rpmlib(FileDigests) <= 4.6.0-1 is needed by epel-release-6-5.noarch
rpmlib(PayloadIsXz) <= 5.2-1 is needed by epel-release-6-5.noarch


Installing for wrong version! (see above to check your version)

Useful commands for setting up CentOS Linux

Find out what version you're running
cat /etc/redhat-release

find out if 64- or 32-bit
uname -m

install with yum
yum install

uninstall with yum
yum remove

remove or delete a file
rm <filename>

installing RHEL EPEL repo
http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x

more yum stuff
http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/

 

weird "issues"
(aka n00b mistakes)
warning: epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
error: Failed dependencies:
rpmlib(FileDigests) <= 4.6.0-1 is needed by epel-release-6-5.noarch
rpmlib(PayloadIsXz) <= 5.2-1 is needed by epel-release-6-5.noarch

Installing for wrong version! (see above to check your version)

It worked!

Now running a VPS for JoeJiko.com with CentOS 6.4.
My colleague said I should've gone with Debian.. but he was too late.

The process was mostly flawless, except a few problems with iptables.

I followed the guide to install Centos 6.4 with Apache
(I tried nginx first but it was so unfamiliar that I decided to go with Apache for now until I can test more)

http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-apache2-dovecot-ispconfig-3

 

I was stuck for awhile trying to get ISPconfig3's interface to show up. Every time I tried to access :8080, the connection timed out.
Of course, it had to do with the firewall. I disabled that using system-config-firewall and it worked!

 

Also found these useful in my journey:

MySQL commands

http://www.pantz.org/software/mysql/mysqlcommands.html

 

Add Linux user with document root permissions

http://www.rackspace.com/knowledge_center/article/how-to-add-linux-user-with-document-root-permissions