Thursday, November 22, 2007

Rebuild OS

I have rebuilt OS to ubuntu 7.10 and noticed that VPSLink has a lot more choices such as

Arch 0.8,
CentOS 4 & 5,
Debian 3.1 & 4.0,
Fedora 7 & 8, Fedora Core 5 & 6,
OpenSuse 10.2,
Slackware 10.2 & 11.0,
Ubuntu 6.06, 6.10, 7.04 and 7.10

Now I'm pretty good at this the standard drill would be adduser then edit file /etc/sudoers followed by update and upgrade. Did also a reboot shutdown -r now, login again then install build-essential.

Next step was installing php5 by apt-get install php5-cli php5-cgi php5-mysql php5-xcache. Following advice from here file php.ini located in /etc/php5/cgi/ was also edited.

Installation of MySQL wasn't smooth, I used a one liner to install mysql-client mysql-server but mysql-client showed error of can't find package. It was OK to install mysql-server however at the end of it starting up of mysqld failed. Error was

* Starting MySQL database server mysqld!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

which I have dealt with before.

Next was nginx which I have done before I followed this instead of the famous howto in howtoforge (the only one I could find). I don't think I need ssl so I omitted the switch --with-http_ssl_module.

The error was exactly as last time /usr/bin/php-fastcgi: Permission Denied. Nginx was started OK but not PHP, search goes on!

No comments:

Post a Comment