Owncloud Week 6 Report

This week I worked on configuration of owncloud on Debian. - At first I tried to set it up on Nginx and Mysql, but following the tutorials, I faced various problems during the actual configuration. I tried installation of the LNMP first and then owncloud:

apt-get install mysql-server mysql-client
apt-get install nginx
/etc/init.d/nginx start
mkdir /var/www
chown www-data:www-data /var/www

apt-get install php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
nano /etc/php5/cgi/php.ini
(uncomment the line cgi.fix_pathinfo=1:)
apt-get install lighttpd
update-rc.d -f lighttpd remove
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid
nano /etc/rc.local
(add before the exit line /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid)
nano /etc/nginx/nginx.conf
(change to worker_processes 5; keepalive_timeout 2;)
nano /etc/nginx/sites-available/default

See this tutorial for further configuration of the server: (http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-debian-squeeze) Try out http://192.168.0.100/info.php Tutorial for owncloud installation (http://www.howtoforge.com/running-owncloud3-on-nginx-lemp-on-debian-squeeze-ubuntu-11.10) Then I tried to install owncloud over it, however, there was problem re-configuring the default webserver.

  • Then, as professor Norbisrath allowed me to do, I installed Owncloud on LAMP
apt-get update
apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin
cd
apt-get update && apt-get -y install apache2 php5 php-pear php-xml-parser php5-sqlite php5-json sqlite php5-mysql mp3info curl libcurl3 libcurl3-dev php5-curl zip php5-gd
wget http://download.owncloud.org/releases/owncloud-4.0.2.tar.bz2 && tar xjf owncloud-4.0.2.tar.bz2 && cp -r owncloud /var/www/ && chown -R www-data:www-data /var/www/owncloud
/etc/init.d/apache2 restart

$ mysql -u adminusername -p
Enter password:
mysql>CREATE DATABASE owncloud;
mysql> GRANT ALL PRIVILEGES ON owncloud.* TO "mycloud"@"localhost" IDENTIFIED BY "mypassword";
mysql> FLUSH PRIVILEGES;
mysql> EXIT
$

Comments