Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Friday, March 26, 2010

Installing GIT on Centos 5.4

Following directions from this site:http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/

I got the error:

[root@tricostar-nwlc git-1.7.0.3]# make prefix=/usr/local all
/bin/sh: curl-config: command not found
GIT_VERSION = 1.7.0.3
/bin/sh: curl-config: command not found
* new build flags or prefix
CC fast-import.o
....


When trying to make GIT. After a bit of googling, found that I needed to include curl-devel as a dependancy so the following instructions worked for me:

yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install libcurl3-openssl-dev
wget http://kernel.org/pub/software/scm/git/git-1.7.0.3.tar.gz
tar xvfz git-1.7.0.3.tar.gz
cd git-1.7.0.3
make prefix=/usr/local all
make prefix=/usr/local install

Thursday, March 6, 2008

yum php update to 5.2.4 on plesk

All is going well on my new server at myhost.ie but I wanted the latest php version with soap and json and when I did yum update php it said all was up to date. I settled down for a long day sorting this out but it turned out to be this easy:

wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh
yum update php
yum install php-soap
yum install php-json
/usr/local/psa/admin/sbin/websrvmng -a
/etc/init.d/httpd reload

Isn't technology great when it work!

Tuesday, November 6, 2007

Setting up new Godaddy VPS

Mods to linux:
1. Modified .bashrc in my home directory and root and added:

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

alias ls='ls -laF --color'

(used vi, ugh http://freeengineer.org/learnUNIXin10minutes.html#Vi)

2. installed emacs

yum install emacs

3. Copied previously zipped domain code from old server using ftp mput

(http://www.cs.colostate.edu/helpdocs/ftp.html)

and unzipped into domain directories

/var/www/vhosts/ggjump.com/httpdocs

and change ownership

chown -R pbright *


4. Setup locate database

Checked not already in cron

crontab -l

Added /etc/cron.daily/mlocate.cron to run daily using Plesk
Ran script to get it started
sh /etc/cron.daily/mlocate.cron

5. Used to having domains in /home so put in dynamic links

ln -s /var/www/vhosts/ggjump.com/httpdocs
etc.


6. Get mysql server accessible from desktop

cd /home
7. Transferred data from mysql databases using Navicat and for each database create new users.

7.5 Create Domain template and User Phoebe Bright

8. For each domain
In domain part of godaddy
- setup nameservers (http://help.godaddy.com/article.php?article_id=653&topic_id=60)
- in nameserver put in new names, eg. ns1.ggjump.com
- modify index.php for this domain so I can tell when/if transfer takes place

9. Install ZendGData
http://code.google.com/support/bin/answer.py?answer=76585&topic=12027#appendix
- downloaded and installed in /usr/include/php/ZendGdata
- amended /etc/php.ini include
include_path = ".:/usr/include/php:/usr/include/php/ZendGdata"
restart

10. Customised php.ini
- display_errors on
- log_errors off
- safe_mode off
restart

11. Fixed default safe_mode on

For each domain, when setting up make sure the safe mode tickbox next to the php tickbox is set to off. There are domain specific settings for php in
# /var/www/vhosts/ggjump.com/conf/vhost.conf
# /var/www/vhosts/ggjump.com/subdomains//conf/vhost.conf
can modify these manually but likely to be overwritten.