0

[Solaris]AMPS for Solaris 10

Apache Login as root and copy the /etc/apache2/httpd.conf-example to httpd.conf # cp /etc/apache2/httpd.conf-example /etc/apache2/httpd.conf Edit /etc/apache2/httpd.conf Set ServerName Set ServerAdmin Enable apache2 # svcadm enable apache2 MySQL Login as root and initalize the database tables # /usr/sfw/bin/mysql_install_db Create mysql user and group # groupadd mysql # useradd -g mysql mysql # chgrp -R mysql /var/mysql # chmod -R 770 /var/mysql # installf SUNWmysqlr /var/mysql d 770 root mysql Copy the mysql config over to /var/mysql # cp /usr/sfw/share/mysql/my-medium.cnf /var/mysql/my.cnf Start mysql daemon # /usr/sfw/sbin/mysqld_safe –user=mysql & Set the root mysql password # /usr/sfw/bin/mysqladmin -u root password ‘new-password’ # /usr/sfw/bin/mysqladmin -u… Continue Reading

0

[Linux]AMP with CentOS 4.4

Mysql Install mysql # yum install mysql mysql-devel mysql-server Edit /etc/init.d/mysqld Edit the lines for restart() from stop start to restart() { stop sleep 3 start } Enable mysql to start at boot time # chkconfig –levels 235 mysqld on /etc/init.d/mysqld start To set root password # mysqladmin -u root password yourrootsqlpassword # mysqladmin -h server1.example.com -u root password yourrootsqlpassword Apache/PHP Install apache # yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel Set apache to start upon boot # chkconfig –levels 235 httpd on

0

[Linux]Various cleanup after installing CentOS 4.4

This will apply to both x86 and x86_64 servers. Various cleanups are : Edit /etc/hosts 127.0.0.1 localhost.localdomain localhost xxx.xxx.xxx.xxx server.example.com server Usually selinix is not needed and if it is set on permissive it just outputs alot of logs Edit /etc/selinux/config SELINUX=disabled SELINUXTYPE=targeted Import the GPG keys for software packages # rpm –import /usr/share/rhn/RPM-GPG-KEY* Update the system # yum update -y Install some software packages # install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp gcc gcc-c++ NTP Setup yum install ntp chkconfig –levels 235 ntpd on ntpdate 0.pool.ntp.org /etc/init.d/ntpd start

0

[FreeBSD]Network Time Server

To setup NTP on FreeBSD : Edit /etc/rc.conf ### Network Time Services options: ### ntpd_enable=”YES” ntpd_program=”/usr/sbin/ntpd” ntpd_flags=”-p /var/run/ntpd.pid -f /var/db/ntpd.drift” Create /etc/ntp.conf server time.nist.gov prefer server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/db/ntpd.drift Reboot the computer or start ntpd manually # ntpd -p /var/run/ntpd.pid -f /var/db/ntpd.drift

0

[FreeBSD]Updating Sources with CVSup

If the sources are not installed in /usr/src use sysinstall to install it : # /usr/sbin/sysinstall edit /etc/make.conf and add WITHOUT_X11=yes Install the CVSup port # cd /usr/ports/net/cvsup-without-gui # make && make install && make clean Create the work directory /usr/local/etc/cvsup/sup # mkdir -p /usr/local/etc/cvsup/sup Create the file /usr/local/etc/cvsup/sup/supfile *default host=cvsup4.FreeBSD.org *default base=/usr/local/etc/cvsup *default prefix=/usr *default release=cvs tag=RELENG_6 *default delete use-rel-suffix *default compress src-all ports-all tag=. Install the portupgrade utility to make managing ports easier # cd /usr/ports/sysutils/portupgrade # make && make install && make clean Create /usr/local/bin/cvsrun to automate CVSup #! /bin/sh # cvsrun – Weekly CVSup Run echo… Continue Reading

0

Site Moved

I cancelled my hosting service and finally setup my server at home now that I have FIOS! Although they block port 80 I am running my webserver on various ports and redirecting my domain to these ports! anyways I will slowly move my stuff so this will be populated slowly