Debian Installation Instructions v2
From Newscloud
Contents |
[edit]
Get dependencies installed
apt-get update apt-get install apache apt-get install mysql-server-4.1 apt-get install libapache-mod-php4 php4-mysql php4-gd php4-pear apt-get install smarty pear install HTTP HTTP_Download HTTP_Header HTTP_Request pear install HTML_Common pear install HTML_QuickForm
[edit]
Get .deb
<link to newscloud*.deb>
[edit]
Install Newscloud
dpkg -i newscloud*.deb
[edit]
Configure Mysql
# set the MySQL password if you don't already have one mysqladmin -u root password 'yourmysqlpassword' # create database
mysql -uroot -p create database newscloud quit
# import/overwrite the newscloud database mysql -u root -p newscloud < /usr/share/newscloud/newscloud.sql # wait (as it's a huge import)
[edit]
Configure Apache
Set up a newscloud.conf file in /etc/apache/conf.d nano /etc/apache/cron.d/newscloud.conf
Listen 80 NameVirtualHost * # if you use a different domain, be sure to change the domain used in /var/www/newscloud/.htaccess as well as in /var/www/newscloud/static/redirect/index.php <VirtualHost *:80> ServerName newscloud.com ServerAlias *.newscloud.com DocumentRoot /var/www/newscloud/ <Directory /var/www/newscloud > AllowOverride All </Directory> </VirtualHost> # eventually we will change this in the code base # but in the meantime you can global replace image.commonmedia.org with your own image.yourdomain.com #<VirtualHost *:80> # ServerName image.commonmedia.org # ServerAlias image.commonmedia.org # DocumentRoot /var/www/newscloud/image_files/ #</VirtualHost>
# Edit httpd.conf in /etc/apache nano /etc/apache/httpd.conf # Make the changes below
DocumentRoot /var/www/newscloud
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory /var/www/newscloud>
Options Indexes Includes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
<IfModule mod_alias.c>
# Alias /icons/ /usr/share/apache/icons/
# <Directory /usr/share/apache/icons>
# Options Indexes MultiViews
# AllowOverride None
# Order allow,deny
# Allow from all
# </Directory>
# Alias /images/ /usr/share/images/
# <Directory /usr/share/images>
# Options MultiViews
# AllowOverride None
# Order allow,deny
# Allow from all
# </Directory>
</IfModule>
[edit]
Configure PHP
# Edit php.ini in /etc/php4/apache cd /etc/php4/apache nano php.ini # Uncomment and modify the following lines include_path = ".:/usr/share/php:/var/www/newscloud" extension=mysql.so extension=gd.so
[edit]
Configure Newscloud
# To prevent abuse, we use this include files for installation-specific passwords # and keys. This file is placed one directory above your root directory # e.g. If you're web server directory for NewsCloud is /var/www/newscloud. This file is in /var/www. nano /var/www/newscloud.ini
[db] database="newscloud" username="yourusername" password="yourpasswd" hostname="" [crypt] pwCrypt="anystrongstring" apiCrypt="anystrongstring" // if you want to use edit group amazon features amazonAssociateId="commonmediaor-20" // or your associate id amazonKey="youramazonkey" [api] apiKey="yourapikey"
[edit]
Configure Cron
# Edit newscloud to include your api key from above php.ini or cron jobs will fail nano /etc/cron.d/newscloud
