Sourcefabric Manuals

 English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

Newscoop 4.4 for Journalists and Editors

Expert install

These install steps are based on Debian or Ubuntu package names, and are suitable for experienced GNU/Linux system administrators who want to know exactly what is happening on their server. For a more detailed explanation, please read the chapter Manual installation in this book.

1. Install dependencies and set a password for the MySQL root user:

sudo apt-get install apache2 mysql-server php5-cli php5-mysql php5-gd libapache2-mod-php5 imagemagick

2. Connect to MySQL using the root account and password:

mysql -u root -p

3. Create a user account and password for Newscoop to connect to the database:

mysql> CREATE USER 'newscoop_user'@'localhost'
    -> IDENTIFIED BY 'newscoop_user_password';

4. Grant access privileges to the new database user:

mysql> GRANT ALL ON newscoop.*
    -> TO 'newscoop_user'@'localhost';

5. Exit from MySQL and return to the shell prompt:

mysql> quit;

6. Open the PHP configuration file in the nano editor:

sudo nano /etc/php5/apache2/php.ini

Adjust these values, if present, and set an appropriate value for the time zone:

register_globals = Off
memory_limit = 128M
magic_quotes_gpc = Off
file_uploads = On
post_max_size = 100M
upload_max_filesize = 100M
session.gc_probability = 0
short_open_tag = Off
date.timezone = Europe/London

7. Create an Apache configuration file containing a VirtualHost definition:

sudo nano /etc/apache2/sites-available/newscoop.conf

Set a definition like the following for Apache 2.2:

<VirtualHost *:80>
      DocumentRoot /var/www/newscoop
      DirectoryIndex index.php index.html
      <Directory /var/www/newscoop>
              Options -Indexes +FollowSymLinks -MultiViews
              AllowOverride All

For Apache 2.4, add the following line to the <Directory> stanza:

       Require all granted

8. Create the DocumentRoot directory that you set in the VirtualHost definition:

sudo mkdir -p /var/www/newscoop

9. Disable the default Apache configuration, if you aren't using it:

sudo a2dissite 000-default.conf

10. Enable the Newscoop configuration that you just created:

sudo a2ensite newscoop.conf

11. Enable Apache's rewrite and php5 modules:

sudo a2enmod rewrite php5

12. Restart Apache so that the new configuration and modules can be loaded:

sudo invoke-rc.d apache2 restart

13. Extract the Newscoop tarball in your working directory, which will create a new directory called newscoop.

tar -xvzf newscoop-4.4.4.tar.gz

14. Move the newscoop directory that you just extracted into the DocumentRoot directory of the Apache VirtualHost:

sudo mv newscoop /var/www/

15. Change the owner and group of the DocumentRoot directory to the username of the web server:

sudo chown -R www-data.www-data /var/www/newscoop/

16. Open a web browser with the URL of the Apache ServerName that you set up earlier. If you see the Newscoop installer page, you are ready to proceed through the Installation steps chapter of this book.

There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.