# SciELO Methodology installation on Rocky 8

# <span style="font-weight: 400;">Linux installation</span>

## <span style="font-weight: 400;">REQUIREMENTS</span>

<span style="font-weight: 400;">Hardware Configuration:</span>

<span style="font-weight: 400;">8GB RAM minimum</span>

<span style="font-weight: 400;">8 vCPU </span>

<span style="font-weight: 400;">150GB HD</span>

<span class="s1">Rocky Linux release 8.4 (Green Obsidian)</span>

**Apache 2.2.34**

**PHP 5.2.10 or 5.2.17 (required)**

**PHP Modules**

- <span style="font-weight: 400;">libpng</span>
- <span style="font-weight: 400;">soap</span>
- <span style="font-weight: 400;">zlib</span>
- <span style="font-weight: 400;">XSL</span>
- <span style="font-weight: 400;">XML</span>

### <span style="font-weight: 400;">Installing build subsystem</span>

```shell
yum install -y perl make wget gcc libxml2-devel openssl openssl-devel openssl-libs curl libcurl-devel libjpeg-turbo-devel libpng-devel freetype-devel libxslt libxslt-devel expat-devel patch wget glibc.i686 zlib-devel curl-devel
```

### <span style="font-weight: 400;">Installing EPEL Repository to install mcrypt</span>

```shell
# yum install epel-release
# yum install libmcrypt-devel
```

### <span style="font-weight: 400;">Installing Apache 2.2.34 from source</span>

**Getting source code**

```shell
wget -O /usr/src/httpd-2.2.34.tar.gz  https://archive.apache.org/dist/httpd/httpd-2.2.34.tar.gz
```

<span style="font-weight: 400;">Uncompress</span>

```shell
# cd /usr/src
# tar -zxvf httpd-2.2.34.tar.gz
```

**Configure**

```shell
cd httpd-2.2.34
./configure --prefix=/usr --enable-layout=RedHat --enable-mods-shared=all 
```

**Compile and install**

```shell
make
make install
```

### <span style="font-weight: 400;">Installing PHP 5.2.17 from source</span>

<span style="font-weight: 400;">It is very important to use this version because php 5.2.17 doesn't work with nealy versions.</span>

**Getting source code**

```shell
wget -O /usr/src/php-5.2.17.tar.gz http://museum.php.net/php5/php-5.2.17.tar.gz --no-check-certificate
```

**Uncompress**<span style="font-weight: 400;"> </span>

```shell
# cd /usr/src
# tar -zxvf php-5.2.17.tar.gz 
# cd php-5.2.17
```

**Patching** <span style="font-weight: 400;"> </span>

[<span style="font-weight: 400;">https://stackoverflow.com/questions/28211039/phpbrew-5-3-10-build-error-dereferencing-pointer-to-incomplete-type/34107461</span>](https://stackoverflow.com/questions/28211039/phpbrew-5-3-10-build-error-dereferencing-pointer-to-incomplete-type/34107461)

```shell
curl -s https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt | patch -p0
Result:
patching file ext/dom/node.c
Hunk #1 succeeded at 1950 (offset 55 lines).
patching file ext/dom/documenttype.c
Hunk #1 succeeded at 215 (offset 10 lines).
patching file ext/simplexml/simplexml.c
Hunk #1 succeeded at 1343 (offset -74 lines).
```

**Configure**

```shell
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-pic --disable-rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-iconv --with-jpeg-dir=/usr --without-openssl --with-zlib --with-layout=Redhat --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-wddx  --without-mime-magic --without-sqlite --with-libxml-dir=/usr --with-apxs2=/usr/sbin/apxs --without-mysql --disable-dom --disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --disable-xmlwriter --disable-json -with-xsl --enable-dom
```

**Compile and install**

```shell
make
make install
```

<span style="font-weight: 400;">Copie o arquivo php.ini-recommended para /etc/php.ini</span>

```shell
# cp php.ini-recommended /etc/php.ini
```

<span style="font-weight: 400;">Ajuste o arquivo, modificando e depois reinicie o Apache:</span>

```shell
# vi /etc/php.ini
display_errors = Off
short_open_tag = On
```

**Creating a symbolic link for modules**

```shell
# ln -s /lib /etc/httpd/lib
```

**Configure Apache**

```shell
$ echo '
<FilesMatch "\.php$">
  SetHandler application/x-httpd-php
</FilesMatch>
' >> /etc/httpd/conf/httpd.conf
```

**Creating a system unit**

```shell
# vi /etc/systemd/system/httpd.service
[Unit]
Description=Apache Web Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/httpd.pid
ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl graceful-stop
ExecReload=/usr/sbin/apachectl graceful
PrivateTmp=true
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

Save the file and run the follow commands

# systemctl daemon-reload
# systemctl enable --now httpd
```

# <span style="font-weight: 400;">Installation of the SciELO Methodology</span>

<span style="font-weight: 400;">Following </span>

[<span style="font-weight: 400;">http://docs.scielo.org/projects/scielo-site/en/latest/howtoinstall.html</span>](http://docs.scielo.org/projects/scielo-site/en/latest/howtoinstall.html)

<span style="font-weight: 400;">In the link above, there is instruccion to download the respective branch from your collection. If you are a new collection and you don't have a branch, you can clone the master.</span>

<span style="font-weight: 400;">The process below corresponds to Portugal's branch. If you are from another country it is very important to choose yours. It is important to read the link above to understand what is necessary to change.</span>

<span style="font-weight: 400;">For version control we use GitHub, where Tags correspond to the versions of the site.</span>

<span style="font-weight: 400;">Check the TAGs here: </span>[<span style="font-weight: 400;">SciELO’s GitHub</span>](https://github.com/scieloorg/Web/tags)

[![Screenshot at Aug 05 10-36-40.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-36-40.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-36-40.png)

<span style="font-weight: 400;">Check the branch of the current version by region and country. See the table at the link below:</span>

[<span style="font-weight: 400;">Branch name for each collection</span>](http://docs.scielo.org/projects/scielo-site/en/latest/network.html)

<span style="font-weight: 400;">[![Screenshot at Aug 05 10-38-13.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-38-13.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-38-13.png)</span>

<span style="font-weight: 400;">Example:</span>

<span style="font-weight: 400;">If there is no branch for your collection, we ask that you let us know.</span>

## <span style="font-weight: 400;">Download the specific version of the SciELO methodology</span>

<span style="font-weight: 400;">There are two ways to download: one through the tarball file and the other through the zip file.</span>

### <span style="font-weight: 400;">ZIP File</span>

<span style="font-weight: 400;">Download:</span>

```shell
wget https://github.com/scieloorg/Web/zipball/<versão_da_tag>
```

<span style="font-weight: 400;">Example:</span>

```shell
wget https://github.com/scieloorg/Web/archive/master.zip
```

<span style="font-weight: 400;">After extracting the files, a directory will be created with the name Web-master</span>

```shell
Web-master
```

<span style="font-weight: 400;">Enter the directory and move the content extracted to "</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">”:</span>

## <span style="font-weight: 400;">Installation of the CISIS package</span>

```shell
wget ftp://produtos-scielo:produtos%40scielo@ftp.scielo.br/cisis-product/cisis.zip
```

<span style="font-weight: 400;">Extract the contents in the directory:</span>

```shell
cd /var/www/scielo/proc/
unzip cisis.zip
```

<span style="font-weight: 400;">The CISIS directory will look like this:</span>

<span style="font-weight: 400;">Delete the downloaded .zip file</span>

<span style="font-weight: 400;">To test operation:</span>

```shell
mx what
```

<span style="font-weight: 400;">Result:</span>

## <span style="font-weight: 400;">Installation of the WWWISIS package</span>

```shell
cd /var/www/scielo/cgi-bin
wget ftp://produtos-scielo:produtos%40scielo@ftp.scielo.br/cisis-product/wxis.exe
```

# <span style="font-weight: 400;">To test:</span>

```shell
./wxis.exe hello
```

# <span style="font-weight: 400;">Configuring the httpd.conf file</span>

<span style="font-weight: 400;">Edit the file:</span>

```shell
vi /etc/httpd/conf/httpd.conf
```

<span style="font-weight: 400;">In the end of the file add the line:</span>

<table id="bkmrk-%23-virtual-hosts-incl"><tbody><tr><td>*<span style="font-weight: 400;">\# Virtual hosts</span>*

*<span style="font-weight: 400;">Include /etc/httpd/conf.d/vhosts</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Enter the directory indicated below:</span>

<table id="bkmrk-mkdir-%2Fetc%2Fhttpd%2Fcon"><tbody><tr><td>*<span style="font-weight: 400;">mkdir /etc/httpd/conf.d/vhosts</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Enter the directory indicated below and create the file below:</span>

<table id="bkmrk-cd-%2Fetc%2Fhttpd%2Fconf.d"><tbody><tr><td>*<span style="font-weight: 400;">cd /etc/httpd/conf.d/vhosts</span>*

*<span style="font-weight: 400;">vi </span><span style="font-weight: 400;">vhosts.conf</span>*

  
***add the follow content:***

  
*<span style="font-weight: 400;">NameVirtualHost &lt;server ip&gt;:80</span>*

  
***It is important to replace &lt;server ip&gt; to the real ip from machine***

</td></tr></tbody></table>

<span style="font-weight: 400;">In the same directory create another file. The name is related to your instance. For instance, if you are from Bolivia the name will be scielo-org-bo.conf. I will use this name as template:</span>

<table id="bkmrk-%23-vi-scielo-org-bo.c"><tbody><tr><td><span style="font-weight: 400;">\# vi scielo-org-bo.conf</span>

  
<span style="font-weight: 400;">&lt;VirtualHost \*:80&gt;</span>

<span style="font-weight: 400;"> ServerName vm.scielo.br</span>

<span style="font-weight: 400;"> Alias /pdf/ /var/www/scielo/bases/pdf/</span>

<span style="font-weight: 400;"> Alias /img/fbpe/ /var/www/scielo/htdocs/img/revistas/</span>

<span style="font-weight: 400;"> Alias /img/scimago/ /var/www/scielo/bases/scimago/images/</span>

<span style="font-weight: 400;"> LimitRequestFieldSize 9000</span>

<span style="font-weight: 400;"> LimitRequestLine 9000</span>

<span style="font-weight: 400;"> DocumentRoot /var/www/scielo/htdocs</span>

<span style="font-weight: 400;"> DirectoryIndex scielo.php index.php index.html index.htm</span>

<span style="font-weight: 400;"> &lt;Directory /var/www/scielo/htdocs&gt;</span>

<span style="font-weight: 400;"> Options FollowSymLinks MultiViews</span>

<span style="font-weight: 400;"> Order deny,allow</span>

<span style="font-weight: 400;"> AcceptPathInfo On</span>

<span style="font-weight: 400;"> Allow from all</span>

<span style="font-weight: 400;"> &lt;/Directory&gt;</span>

<span style="font-weight: 400;"> &lt;Directory /var/www/scielo/bases/pdf/&gt;</span>

<span style="font-weight: 400;"> Options FollowSymLinks MultiViews</span>

<span style="font-weight: 400;"> Order deny,allow </span>

<span style="font-weight: 400;"> AcceptPathInfo On</span>

<span style="font-weight: 400;"> Allow from all</span>

<span style="font-weight: 400;"> &lt;/Directory&gt;</span>

<span style="font-weight: 400;"> &lt;Directory /var/www/scielo/bases/scimago/images/&gt;</span>

<span style="font-weight: 400;"> Options FollowSymLinks MultiViews</span>

<span style="font-weight: 400;"> Order deny,allow</span>

<span style="font-weight: 400;"> AcceptPathInfo On</span>

<span style="font-weight: 400;"> Allow from all</span>

<span style="font-weight: 400;"> &lt;/Directory&gt;</span>

<span style="font-weight: 400;"> &lt;FilesMatch "\\.(def)$"&gt;</span>

<span style="font-weight: 400;"> Order allow,deny</span>

<span style="font-weight: 400;"> Allow from all</span>

<span style="font-weight: 400;"> Satisfy All</span>

<span style="font-weight: 400;"> &lt;/FilesMatch&gt;</span>

<span style="font-weight: 400;"> ScriptAlias /cgi-bin/ /var/www/scielo/cgi-bin/</span>

<span style="font-weight: 400;"> &lt;Directory /var/www/scielo/cgi-bin/&gt;</span>

<span style="font-weight: 400;"> AddDefaultCharset ISO-8859-1</span>

<span style="font-weight: 400;"> Options FollowSymLinks MultiViews ExecCGI</span>

<span style="font-weight: 400;"> AcceptPathInfo On</span>

<span style="font-weight: 400;"> Order deny,allow</span>

<span style="font-weight: 400;"> Allow from all</span>

<span style="font-weight: 400;"> &lt;/Directory&gt;</span>

  
<span style="font-weight: 400;"> ErrorLog "|/usr/sbin/rotatelogs -l /var/www/apache/%Y-%m-%d+scielo-br-error.log 5M"</span>

<span style="font-weight: 400;"> CustomLog "| /usr/sbin/rotatelogs -l /var/www/apache/%Y-%m-%d+scielo-br-access.log 5M" combined</span>

<span style="font-weight: 400;">&lt;/VirtualHost&gt;</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">Some fields you have to replace:</span>

<table id="bkmrk-servername---corresp"><tbody><tr><td>**ServerName**<span style="font-weight: 400;"> - corresponding to the domain name. Example: </span>[<span style="font-weight: 400;">www.scielo.org.bo</span>](http://www.scielo.org.bo)

**ErrorLog**<span style="font-weight: 400;"> - corresponding to the log file error. Replace from this template scielo-br to the name of you instance. Example: scielo-org-bo</span>

**CustomLog**<span style="font-weight: 400;"> - corresponding to the log file acess. Replace from this template scielo-br to the name of you instance. Example: scielo-org-bo</span>

  
<span style="font-weight: 400;">NOTES: You have to create the directory /var/www/apache to save the files created. Run the command:</span>

<span style="font-weight: 400;">mkdir /var/www/apache</span>

</td></tr></tbody></table>

# <span style="font-weight: 400;">Mandatory settings</span>

## <span style="font-weight: 400;">Configuring the scielo.def.php file</span>

<span style="font-weight: 400;">Below we will show the mandatory configurations for the SciELO Methodology to work.</span><span style="font-weight: 400;">  
</span><span style="font-weight: 400;">Copy the template file "scielo.def.php.template" to your configuration file "scielo.def.php".</span>

<span style="font-weight: 400;">Enter the directory:</span>

<table id="bkmrk-cd-%2Fvar%2Fwww%2Fscielo%2Fh"><tbody><tr><td>*<span style="font-weight: 400;">cd /var/www/scielo/htdocs/</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Copy:</span>

<table id="bkmrk-cp-scielo.def.php.te"><tbody><tr><td><span style="font-weight: 400;">cp </span>**scielo.def.php.template**<span style="font-weight: 400;"> </span><span style="font-weight: 400;">scielo.def.php</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">Edit the file as shown in the following example:</span>

<table id="bkmrk-vi-scielo.def.php"><tbody><tr><td>*<span style="font-weight: 400;">vi scielo.def.php</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">This file is separated into blocks \[BLOCK\_NAME\], and by default the configured paths point to “/home/scielo”. It is necessary to replace /home/scielo to /var/www/scielo.</span>

<table id="bkmrk-esc-%3A%25s%2F%5C%2Fhome%5C%2Fscie"><tbody><tr><td><span style="font-weight: 400;">ESC :%s/\\/home\\/scielo/\\/var\\/www\\/scielo/g</span>

</td></tr></tbody></table>

**Site identification settings**

<table id="bkmrk-%5Bsite_info%5D-site_nam"><tbody><tr><td>*<span style="font-weight: 400;">\[SITE\_INFO\]</span>*

*<span style="font-weight: 400;">SITE\_NAME=SciELO - Scientific Electronic Library Online</span>*

*<span style="font-weight: 400;">SHORT\_NAME=Scielo Brazil</span>*

*<span style="font-weight: 400;">SITE\_AUTHOR=FAPESP - CNPq - FapUNIFESP - BIREME</span>*

*<span style="font-weight: 400;">ADDRESS\_1=R. Dr. Diogo de Faria, 1087 cj.810</span>*

*<span style="font-weight: 400;">ADDRESS\_2=04037-003 - Sao Paulo/SP</span>*

*<span style="font-weight: 400;">COUNTRY=Brasil</span>*

*<span style="font-weight: 400;">PHONE\_NUMBER=+55 11 3369-4080/4085</span>*

*<span style="font-weight: 400;">\#FAX\_NUMBER=+55 11 5575-8868</span>*

*<span style="font-weight: 400;">E\_MAIL=scielo@bireme.br</span>*

*<span style="font-weight: 400;">STANDARD\_LANG=en</span>*

*<span style="font-weight: 400;">APP\_NAME=scielo</span>*

*<span style="font-weight: 400;">ANALYTICS\_CODE=scl</span>*

</td></tr></tbody></table>

**APP\_NAME and ANALYTICS\_CODE, are parameters provided by the SciELO team.**

<table id="bkmrk-%5Bscielo%5D-server_scie"><tbody><tr><td>*<span style="font-weight: 400;">\[SCIELO\]</span>*

*<span style="font-weight: 400;">SERVER\_SCIELO=vm.scielo.br</span>*

  
*<span style="font-weight: 400;">\[FULLTEXT\_SERVICES\]</span>*

*<span style="font-weight: 400;">access="http://vm.scielo.br/applications/scielo-org/pages/services/articleRequestGraphicPage.php?pid=PARAM\_PID&amp;caller=PARAM\_SERVER"</span>*

*<span style="font-weight: 400;">cited\_SciELO="http://vm.scielo.br/scieloOrg/php/citedScielo.php?pid=PARAM\_PID"</span>*

*<span style="font-weight: 400;">send\_mail="http://vm.scielo.br/applications/scielo-org/pages/services/sendMail.php?pid=PARAM\_PID&amp;caller=PARAM\_SERVER"</span>*

</td></tr></tbody></table>

**Now we will point the block \[PATH\] to the path of the application, as stated earlier**

<table id="bkmrk-%5Bpath%5D-path_data%3D%2F-p"><tbody><tr><td>*<span style="font-weight: 400;">\[PATH\]</span>*

  
*<span style="font-weight: 400;">PATH\_DATA=/</span>*

*<span style="font-weight: 400;">PATH\_CGI-BIN=/cgi-bin/</span>*

*<span style="font-weight: 400;">PATH\_SCRIPTS=ScieloXML/</span>*

*<span style="font-weight: 400;">PATH\_GENIMG=/img/</span>*

*<span style="font-weight: 400;">PATH\_SERIMG=/img/revistas/</span>*

*<span style="font-weight: 400;">PATH\_SERIAL\_HTML=/revistas/</span>*

*<span style="font-weight: 400;">PATH\_XSL=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/htdocs/xsl/</span>*

*<span style="font-weight: 400;">PATH\_DATABASE=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/bases/</span>*

*<span style="font-weight: 400;">PATH\_SETTINGS=</span>*

*<span style="font-weight: 400;">PATH\_PDF=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/bases/pdf</span>*

*<span style="font-weight: 400;">PATH\_TRANSLATION=</span><span style="font-weight: 400;">/var/www/scielo/</span><span style="font-weight: 400;">bases/translation/</span>*

*<span style="font-weight: 400;">PATH\_HTDOCS=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/htdocs/</span>*

*<span style="font-weight: 400;">PATH\_OAI=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/htdocs/oai/</span>*

*<span style="font-weight: 400;">PATH\_PROC=</span><span style="font-weight: 400;">/var/www/scielo/</span><span style="font-weight: 400;">proc/</span>*

</td></tr></tbody></table>

## <span style="font-weight: 400;">Configuring the iah.def file</span>

<span style="font-weight: 400;">Copy the template file “iah.def.php.template” to your configuration file “iah.def.php”.</span>

<span style="font-weight: 400;">Enter the directory:</span>

<table id="bkmrk-%2Fvar%2Fwww%2Fscielo%2Fhtdo"><tbody><tr><td>*<span style="font-weight: 400;">/var/www/scielo/htdocs/iah</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Copy:</span>

<table id="bkmrk-cp-iah.def.php.templ"><tbody><tr><td>**cp iah.def.php.template** <span style="font-weight: 400;">iah.def.php</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">Edit the file as shown in the following example:</span>

<table id="bkmrk-iah.def.php"><tbody><tr><td>*<span style="font-weight: 400;">iah.def.php</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">This file is separated into blocks \[BLOCK\_NAME\], and by default the configured paths point to “/home/scielo”. We will make the move to the location where the application “/var/www/scielo” is, see the examples separated by blocks:</span>

<span style="font-weight: 400;">The blocks that must be changed are:</span>

<span style="font-weight: 400;">\[PATH\]</span>

<span style="font-weight: 400;">\[IAH\]</span>

<span style="font-weight: 400;">\[HEADER\]</span>

<span style="font-weight: 400;">For instance:</span>

<table id="bkmrk-%5Bpath%5D-path_data%3D%2Fia"><tbody><tr><td>*<span style="font-weight: 400;">\[PATH\]</span>*

*<span style="font-weight: 400;">PATH\_DATA=/iah/</span>*

*<span style="font-weight: 400;">PATH\_CGI-BIN=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah/</span>*

*<span style="font-weight: 400;">PATH\_DATABASE=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/bases/</span>*

  
*<span style="font-weight: 400;">\[APPEARANCE\]</span>*

*<span style="font-weight: 400;">BODY BACKGROUND COLOR=white</span>*

*<span style="font-weight: 400;">BODY BACKGROUND IMAGE=</span>*

*<span style="font-weight: 400;">BODY TEXT COLOR=black</span>*

*<span style="font-weight: 400;">BODY LINK COLOR=blue</span>*

*<span style="font-weight: 400;">BODY VLINK COLOR=blue</span>*

*<span style="font-weight: 400;">BAR BACKGROUND COLOR=#B0C2D5</span>*

*<span style="font-weight: 400;">BAR TEXT COLOR=black</span>*

*<span style="font-weight: 400;">ERROR TEXT COLOR=</span>*

*<span style="font-weight: 400;">WARNING TEXT COLOR=</span>*

  
*<span style="font-weight: 400;">\[HEADER\]</span>*

*<span style="font-weight: 400;">LOGO IMAGE=scielog.gif</span>*

*<span style="font-weight: 400;">LOGO TEXT COLOR=</span>*

*<span style="font-weight: 400;">LOGO BACKGROUND COLOR=</span>*

*<span style="font-weight: 400;">LOGO URL=www.scielo.br</span>*

*<span style="font-weight: 400;">HEADER IMAGE=^ponlinep.gif^eonlinee.gif^ionlinei.gif</span>*

*<span style="font-weight: 400;">HEADER TEXT COLOR=</span>*

*<span style="font-weight: 400;">HEADER BACKGROUND COLOR=</span>*

*<span style="font-weight: 400;">HEADER URL=</span><span style="font-weight: 400;">www.scielo.br</span>*

  
*<span style="font-weight: 400;">\[IAH\]</span>*

*<span style="font-weight: 400;">MANAGER E-MAIL=</span><span style="font-weight: 400;">scielo@bireme.br</span>*

*<span style="font-weight: 400;">MAINTENANCE=OFF</span>*

*<span style="font-weight: 400;">REVERSE MODE=ON</span>*

*<span style="font-weight: 400;">MULTI-LANGUAGE=ON</span>*

*<span style="font-weight: 400;">LOG\_DATABASE=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/bases/logdia/iahlog</span>*

  
  
</td></tr></tbody></table>

## <span style="font-weight: 400;">Configuring the article.def file</span>

<span style="font-weight: 400;">Copy the template file "article.def.php.template" to your configuration file "article.def.php".</span>

<span style="font-weight: 400;">Enter the directory:</span>

<table id="bkmrk-%2Fvar%2Fwww%2Fscielo%2Fhtdo-0"><tbody><tr><td>*<span style="font-weight: 400;">/var/www/scielo/htdocs/iah</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Copy as directed:</span>

<table id="bkmrk-article.def.php.temp"><tbody><tr><td>**article.def.php.template** *<span style="font-weight: 400;">to</span>* <span style="font-weight: 400;">article.def.php</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">Edit the file as shown in the following example:</span>

<table id="bkmrk-article.def.php"><tbody><tr><td>*<span style="font-weight: 400;">article.def.php</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">This file is separated into blocks \[BLOCK\_NAME\], and by default the configured paths point to “/home/scielo”. We will make the move to the location where the application “/var/www/scielo” is, see the examples separated by blocks:</span>

<span style="font-weight: 400;">The blocks that must be changed are:</span>

<table id="bkmrk-%5Bfile_location%5D-%5Bvar"><tbody><tr><td>*<span style="font-weight: 400;">\[FILE\_LOCATION\]</span>*

*<span style="font-weight: 400;">\[VARIABLES\]</span>*

  
*<span style="font-weight: 400;">Exemplo:</span>*

  
*<span style="font-weight: 400;">\[FILE\_LOCATION\]</span>*

  
*<span style="font-weight: 400;">FILE HEADER.IAH=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/header.pft</span>*

*<span style="font-weight: 400;">FILE QUERY.IAH=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/query.pft</span>*

*<span style="font-weight: 400;">FILE LIST6003.PFT=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/list6003.pft</span>*

*<span style="font-weight: 400;">FILE PROC.PFT=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/htdocs/pfts/proc\_split\_mst.pft</span>*

*<span style="font-weight: 400;">FILE iso.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbiso.pft</span>*

*<span style="font-weight: 400;">FILE abn.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbabn.pft</span>*

*<span style="font-weight: 400;">FILE van.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbvan.pft</span>*

*<span style="font-weight: 400;">FILE places.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/place-generico.pft</span>*

*<span style="font-weight: 400;">FILE month1.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/month1.pft</span>*

*<span style="font-weight: 400;">FILE month2.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/month2.pft</span>*

*<span style="font-weight: 400;">FILE scistyle.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/scistyle.pft</span>*

*<span style="font-weight: 400;">FILE AHBTOP.HTM=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/%lang%/ahbtop.htm</span>*

*<span style="font-weight: 400;">FILE AHLIST.PFT=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/%lang%/ahlist.pft</span>*

*<span style="font-weight: 400;">FILE ahlist.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/%lang%/ahlist.pft</span>*

*<span style="font-weight: 400;">FILE LATTES.\*=%path\_database%lattes/lattes.\*</span>*

*<span style="font-weight: 400;">FILE citation.xml=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbisoXML.pft</span>*

  
*<span style="font-weight: 400;">\[VARIABLES\]</span>*

*<span style="font-weight: 400;">VARIABLE APP\_PATH=</span><span style="font-weight: 400;">/var/www/scielo/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_REVISTAS\_PATH=</span><span style="font-weight: 400;">/var/www/scielo/htdocs</span><span style="font-weight: 400;">/revistas/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_REVISTAS\_RELPATH=/revistas/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_IMG\_REVISTAS\_RELPATH=/img/revistas/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_IMG\_RELPATH=/img/</span>*

</td></tr></tbody></table>

## <span style="font-weight: 400;">Configuring the title.def file</span>

<span style="font-weight: 400;">Copy the “title.def.php.template” template file to your “title.def.php” configuration file.</span>

<span style="font-weight: 400;">Enter the directory:</span>

<table id="bkmrk-%2Fvar%2Fwww%2Fscielo%2Fhtdo-1"><tbody><tr><td>*<span style="font-weight: 400;">/var/www/scielo/htdocs/iah</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Copy as directed:</span>

<table id="bkmrk-title.def.php.templa"><tbody><tr><td>**title.def.php.template** *<span style="font-weight: 400;">to</span>* <span style="font-weight: 400;">title.def.php</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">Edit the file as shown in the following example:</span>

<table id="bkmrk-title.def.php"><tbody><tr><td>*<span style="font-weight: 400;">title.def.php</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">This file is separated into blocks \[BLOCK\_NAME\], and by default the configured paths point to “/ home / scielo”. We will make the move to the location where the application “/var/www/scielo” is, see the examples separated by blocks:</span>

<span style="font-weight: 400;">The blocks that must be changed are:</span>

<table id="bkmrk-%5Bfile_location%5D-%5Bvar-0"><tbody><tr><td>  
*<span style="font-weight: 400;">\[FILE\_LOCATION\]</span>*

*<span style="font-weight: 400;">\[VARIABLES\]</span>*

  
*<span style="font-weight: 400;">\[FILE\_LOCATION\]</span>*

  
*<span style="font-weight: 400;">FILE DATABASE.\*=%path\_database%title/title.\*</span>*

*<span style="font-weight: 400;">FILE FULINV.\*=%path\_database%title/titsrc.\*</span>*

*<span style="font-weight: 400;">FILE PREINV.\*=%path\_database%title/titsrcp.\*</span>*

  
*<span style="font-weight: 400;">FILE HEADER.IAH=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/header.pft</span>*

  
*<span style="font-weight: 400;">FILE scistyle.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/scistyle.pft</span>*

*<span style="font-weight: 400;">FILE places.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/place-generico.pft</span>*

*<span style="font-weight: 400;">FILE iso.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbsrc1.pft</span>*

*<span style="font-weight: 400;">FILE van.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbsrc1.pft</span>*

*<span style="font-weight: 400;">FILE abn.pft=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/cgi-bin/iah-styles/fbsrc1.pft</span>*

*<span style="font-weight: 400;">FILE issue.\*=%path\_database%issue/issue.\*</span>*

*<span style="font-weight: 400;">FILE facic.\*=%path\_database%issue/facic.\*</span>*

*<span style="font-weight: 400;">FILE artigo.\*=%path\_database%artigo/artigo.\*</span>*

*<span style="font-weight: 400;">FILE author.\*=%path\_database%artigo/author.\*</span>*

*<span style="font-weight: 400;">FILE title.\*=%path\_database%title/title.\*</span>*

  
*<span style="font-weight: 400;">\[VARIABLES\]</span>*

*<span style="font-weight: 400;">VARIABLE APP\_PATH=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_REVISTAS\_PATH=</span><span style="font-weight: 400;">/var/www/scielo</span><span style="font-weight: 400;">/htdocs/revistas/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_REVISTAS\_RELPATH=/revistas/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_IMG\_REVISTAS\_RELPATH=/img/revistas/</span>*

*<span style="font-weight: 400;">VARIABLE APP\_IMG\_RELPATH=/img/</span>*

</td></tr></tbody></table>

# <span style="font-weight: 400;">Configuring php.ini</span>

<span style="font-weight: 400;">The php.ini file is located in the standard PHP installation directory, as shown below.</span>

<table id="bkmrk-vi-%2Fetc%2Fphp.ini"><tbody><tr><td>*<span style="font-weight: 400;">vi /etc/php.ini</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">When opening the file with an editor, search for the word short\_open\_tag, it is defined according to the model:</span>

<table id="bkmrk-short_open_tag-%3D-off"><tbody><tr><td>*<span style="font-weight: 400;">short\_open\_tag = Off</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Change to:</span>

<table id="bkmrk-short_open_tag-%3D-on"><tbody><tr><td>*<span style="font-weight: 400;">short\_open\_tag = On</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Save the file and restart apache.</span>

# <span style="font-weight: 400;">Configuration of "hosts" and "Vhost"</span>

<span style="font-weight: 400;">Check the IP of the Server that is installing the methodology:</span>

<span style="font-weight: 400;">Edit the "hosts" file of the Server and or make the correct notes on your DNS server:</span>

<table id="bkmrk-vi-%2Fetc%2Fhosts"><tbody><tr><td>*<span style="font-weight: 400;">vi /etc/hosts</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Add the following line:</span>

<table id="bkmrk-%3Cip_do_servidor%3E-%C2%A0%C2%A0%C2%A0"><tbody><tr><td>*<span style="font-weight: 400;">&lt;ip\_do\_servidor&gt; </span><span style="font-weight: 400;"> vm.scielo.br</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">To test the functioning of wwwisis in the web environment, type in your browser:</span>

[<span style="font-weight: 400;">http://vm.scielo.br/cgi-bin/wxis.exe?hello</span>](http://vm.scielo.br/cgi-bin/wxis.exe?hello)

# <span style="font-weight: 400;">Access the site</span>

<span style="font-weight: 400;">vm.scielo.br/scielo.php</span>

[![Screenshot at Aug 05 10-43-18.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-43-18.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-43-18.png)

# <span style="font-weight: 400;">Gera Padrao Script</span>

<span style="font-weight: 400;">Edit the gerapadrão.bat file:</span>

<table id="bkmrk-vi-%2Fvar%2Fwww%2Fscielo%2Fp"><tbody><tr><td>*<span style="font-weight: 400;">vi /var/www/scielo/proc/GeraPadrao.bat</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Changing the following parameters:</span>

<span style="font-weight: 400;">Before:</span>

<table id="bkmrk-call-notepad-%5Cscielo"><tbody><tr><td>*<span style="font-weight: 400;">call notepad \\scielo\\serial\\scilista.lst</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">After:</span>

<table id="bkmrk-call-notepad-%5Cvar%5Cww"><tbody><tr><td>*<span style="font-weight: 400;">call notepad </span><span style="font-weight: 400;">\\var\\www</span><span style="font-weight: 400;">\\scielo\\serial\\scilista.lst</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Before:</span>

<table id="bkmrk-md-%5Cscielo%5Cweb%5Cbases"><tbody><tr><td>*<span style="font-weight: 400;">md \\scielo\\web\\bases-work</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">After:</span>

<table id="bkmrk-md-%5Cvar%5Cwww%5Cscielo%5Cw"><tbody><tr><td>*<span style="font-weight: 400;">md </span><span style="font-weight: 400;">\\var\\www</span><span style="font-weight: 400;">\\scielo\\web\\bases-work</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Before:</span>

<table id="bkmrk-call-gerascielo.bat-"><tbody><tr><td>*<span style="font-weight: 400;">call GeraScielo.bat \\scielo \\scielo\\web log\\GeraPadrao.log adiciona</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">After:</span>

<table id="bkmrk-call-gerascielo.bat--0"><tbody><tr><td>*<span style="font-weight: 400;">call GeraScielo.bat .. .. log\\GeraPadrao.log adiciona</span>*

</td></tr></tbody></table>

# <span style="font-weight: 400;">Rename the directory:</span>

<table id="bkmrk-cd-%2Fvar%2Fwww%2Fscielo-m"><tbody><tr><td>*<span style="font-weight: 400;">cd /var/www/scielo</span>*

**mv serial-modelo** <span style="font-weight: 400;">serial</span>

</td></tr></tbody></table>

## <span style="font-weight: 400;">Creating user scielo and set permission</span>

<span style="font-weight: 400;">This user will be used to update files and processing databases.</span>

<table id="bkmrk-%23-useradd--c-%22scielo"><tbody><tr><td><span style="font-weight: 400;">\# useradd -c "SciELO User Admin" scielo</span>

</td></tr></tbody></table>

### <span style="font-weight: 400;">Set permission to scielo user</span>

<span style="font-weight: 400;">I am considering Apache Root Dir is /var/www/scielo</span>

<table id="bkmrk-%23-chown--r-scielo.-%2F"><tbody><tr><td><span style="font-weight: 400;">\# chown -R scielo. /var/www/scielo/</span>

</td></tr></tbody></table>

### <span style="font-weight: 400;">Fixing Directory and File permissions</span>

<table id="bkmrk-%23-find-%2Fvar%2Fwww%2Fscie"><tbody><tr><td><span style="font-weight: 400;">\# find /var/www/scielo/ -type d -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">\# find /var/www/scielo/ -type f -exec chmod 644 {} \\;</span>

<span style="font-weight: 400;">\# cd /var/www/scielo/</span>

<span style="font-weight: 400;">\# find proc/ -name \*.bat -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">\# find proc/ -name \*.sh -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">\# find cgi-bin/ -name \*.bat -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">\# find cgi-bin/ -name \*.sh -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">\# find cgi-bin/ -name \*.exe -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">\# cd proc</span>

<span style="font-weight: 400;">\# chmod 755 cisis/\*</span>

<span style="font-weight: 400;">\# chmod 755 call</span>

<span style="font-weight: 400;">\# chmod 755 rem</span>

</td></tr></tbody></table>

# <span style="font-weight: 400;">Possible errors</span>

<span style="font-weight: 400;">The error below is common, to fix it we have to change the php.ini file</span>

[![Screenshot at Aug 05 10-44-14.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-44-14.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-44-14.png)

<span style="font-weight: 400;">The php.ini file is located in the standard PHP installation directory, as shown below.</span>

<table id="bkmrk-vi-%2Fetc%2Fphp.ini-0"><tbody><tr><td>*<span style="font-weight: 400;">vi /etc/php.ini</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">When opening the file with an editor, search for the word short\_open\_tag, it is defined according to the model:</span>

<table id="bkmrk-short_open_tag-%3D-off-0"><tbody><tr><td>*<span style="font-weight: 400;">short\_open\_tag = Off</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Change to:</span>

<table id="bkmrk-short_open_tag-%3D-on-0"><tbody><tr><td>*<span style="font-weight: 400;">short\_open\_tag = On</span>*

</td></tr></tbody></table>

<span style="font-weight: 400;">Save the file and restart apache.</span>

# <span style="font-weight: 400;">Paperboy installation</span>

[<span style="font-weight: 400;">GitHub PaperBoy Repository</span>](https://github.com/scieloorg/paperboy)

# <span style="font-weight: 400;">What is PaperBoy?</span>

<span style="font-weight: 400;">PaperBoy is a utility for sending SciELO data from local website servers for processing and also from servers in a collection for network processing. The utility allows sending bases for processing, images, pdfs, translations and XML's.</span>

- <span style="font-weight: 400;">Windows Local Server - Installed and configured the PaperBoy utility on the Windows Local server to send databases to the homologation site methodology server.</span>
- <span style="font-weight: 400;">Methodology Linux Server - Installed and configured the PaperBoy utility on the new methodology server, for sending server bases to the SciELO FTP server, to process the data and add it to the SciELO Analytics website.</span>

## <span style="font-weight: 400;">Prerequisites for the functioning of PaperBoy - Linux</span>

<span style="font-weight: 400;">NOTE: The following configuration is for sending bases from the Linux server Production application methodology to the SciELO FTP server.</span>

<span style="font-weight: 400;">As described at the beginning of the PaperBoy topic, the installation and configuration of the paperboy on the new server Methodology is necessary for sending bases to the SciELO FTP server, the data sent will go through a normalization process and inserted on the Analytics SciELO website, the data are used as collection metrics.</span>

- <span style="font-weight: 400;">Metrics data from the Bolivia collection that are on the Analytics site :.</span>

<span style="font-weight: 400;">For the operation of the PaperBoy utility on linux it is important to note that it is not necessary to install prerequisites. By default Python is already included in the Linux distribution, in which case we have the distribution is Centos.</span>

<span style="font-weight: 400;">To find the version of the distribution used, run the following command :.</span>

<table id="bkmrk-centos-linux-release"><tbody><tr><td><span style="font-weight: 400;">CentOS Linux release 7.7.1908 (Core)</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">As stated earlier, it is not necessary to install Python since it is installed in the distribution.</span>

<span style="font-weight: 400;">To find the version of python installed, run the following command :.</span>

<table id="bkmrk-python---version"><tbody><tr><td><span style="font-weight: 400;">python --version</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">NOTE:The commands must be executed at the server terminal.</span>

<span style="font-weight: 400;">In linux distributions as python is native, the modules are already pre-installed, so we don't need to install the paramiko and pycrypto modules, as we did on windows.</span>

### <span style="font-weight: 400;">Configuring PaperBoy - Linux</span>

<span style="font-weight: 400;">In the Methodology server, the use of the PaperBoy utility will be in Docker, as stated above, we do not need to install Python or the modules since python is native to linux distributions.</span>

<span style="font-weight: 400;">We need to follow some steps to create the container :.</span>

- <span style="font-weight: 400;">Step 1:. Create the directory to store the paperboy configuration file :.</span>
- <span style="font-weight: 400;">mkdir -m 775 /var/www/scielo/scripts/paperboy</span>


- <span style="font-weight: 400;">Step 2: Go to the newly created directory :.</span>
- <span style="font-weight: 400;">cd /var/www/scielo/scripts/paperboy</span>


- <span style="font-weight: 400;">Step 3: Create paperboy configuration file :.</span>
- <span style="font-weight: 400;">touch config.ini</span>


- <span style="font-weight: 400;">Step 4: Open the configuration file we just created :.</span>
- <span style="font-weight: 400;">vim config.ini</span>


### <span style="font-weight: 400;">Configuring PaperBoy for sending bases - Linux</span>

- <span style="font-weight: 400;">Step 1:. Make a copy of the paperboy configuration data to the configuration file we created in the previous topic Configuring PaperBoy - Linux</span>
- <span style="font-weight: 400;">Observation: In the github paperboy repository it is possible to make a copy of the data that we are going to use in the configuration file.</span>
- <span style="font-weight: 400;">Step 2: Now with the data copied to the config.ini file we will edit and add the credentials for collecting and sending data to FTP ScIELO.</span>
- <span style="font-weight: 400;">Step 3: See the config.ini file below without changes.</span>

<table border="1" id="bkmrk-%23diret%C3%B3rio-de-origem" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 100%;"><span style="font-weight: 400;">\#Diretório de origem de coleta dos dados de bases</span>

<span style="font-weight: 400;">source\_dir=/var/www/scielo</span>

<span style="font-weight: 400;">\#Diretório do Cisis </span>

<span style="font-weight: 400;">cisis\_dir=/var/www/scielo/proc/cisis</span>

<span style="font-weight: 400;">\#Diretório onde fica o arquivo da scilista.lst</span>

<span style="font-weight: 400;">scilista=/var/www/scielo/serial/scilista.lst</span>

<span style="font-weight: 400;">\#Diretório de destino dos dados enviados</span>

<span style="font-weight: 400;">destiny\_dir=</span>

<span style="font-weight: 400;">\#Dados do servidor FTP </span>

<span style="font-weight: 400;">\#Servidor FTP usado</span>

<span style="font-weight: 400;">server=</span>

<span style="font-weight: 400;">tipo de servidor ftp</span>

<span style="font-weight: 400;">server\_type=sftp</span>

<span style="font-weight: 400;">\#Porta de conexão com o servidor FTP</span>

<span style="font-weight: 400;">port=22</span>

<span style="font-weight: 400;">\#Usuário FTP</span>

<span style="font-weight: 400;">user=</span>

<span style="font-weight: 400;">\#Senha de acesso</span>

<span style="font-weight: 400;">password=</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">NOTE:I removed comments from the config.ini file for explanation purposes.</span>

<span style="font-weight: 400;">Below we have the config.ini file already configured with all the necessary parameters for sending the bases.</span>

<table border="1" id="bkmrk-%23diret%C3%B3rio-de-origem-0" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 100%;"><span style="font-weight: 400;">\#Diretório de origem de coleta dos dados de bases</span>

<span style="font-weight: 400;">source\_dir=/var/www/scielo</span>

<span style="font-weight: 400;">\#Diretório do Cisis </span>

<span style="font-weight: 400;">cisis\_dir=/var/www/scielo/proc/cisis</span>

<span style="font-weight: 400;">\#Diretório onde fica o arquivo da scilista.lst</span>

<span style="font-weight: 400;">scilista=/var/www/scielo/serial/scilista.lst</span>

<span style="font-weight: 400;">\#Diretório de destino dos dados enviados</span>

<span style="font-weight: 400;">destiny\_dir=</span>

<span style="font-weight: 400;">Observação:. Não configuramos o destino dos dados uma vez que o usuário de ftp já possui o acesso ao diretório da coleção.</span>

<span style="font-weight: 400;">\#Dados do servidor FTP </span>

<span style="font-weight: 400;">server=ftp.scielo.br</span>

<span style="font-weight: 400;">server\_type=ftp</span>

<span style="font-weight: 400;">port=21</span>

<span style="font-weight: 400;">user=scielo.bo</span>

<span style="font-weight: 400;">password=blabla</span>

</td></tr></tbody></table>

<span style="font-weight: 400;">NOTE:I removed comments from the config.ini file for explanation purposes.</span>

# <span style="font-weight: 400;">How to upgrade SciELO Methodology</span>

<span style="font-weight: 400;">To upgrade SciELO Methodology you have to download the latest code from our </span>[<span style="font-weight: 400;">GitHub Repository</span>](https://github.com/scieloorg/web)<span style="font-weight: 400;">. Before updating, check what version is your website. For instance, we are going to check the version from SciELO ZA: </span><a>http://www.scielo.org.za/versionOverview.txt</a>

<span style="font-weight: 400;">[![Screenshot at Aug 05 10-49-44.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-49-44.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-49-44.png)</span>

<span style="font-weight: 400;">The first line that shows is the version. Click here to check which version SciELO Methodology is: </span>[<span style="font-weight: 400;">https://github.com/scieloorg/Web/tags</span>](https://github.com/scieloorg/Web/tags)

[![Screenshot at Aug 05 10-50-14.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-50-14.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-50-14.png)

<span style="font-weight: 400;">From this moment, SciELO code is in 5.44.1 and SciELO ZA is in 5.37. To upgrade we have to download the branch from SciELO ZA. Each collection has its own branch. To check yours, click in the bottom master and select the branch scielo\_&lt;acron from your collection&gt;. In this example we selecting the scielo\_sza</span>

<span style="font-weight: 400;">[![Screenshot at Aug 05 10-50-50.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-50-50.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-50-50.png)</span>

<span style="font-weight: 400;">After selecting the branch click in the bottom right corner code and select Download ZIP:</span>

<span style="font-weight: 400;">[![Screenshot at Aug 05 10-51-31.png](https://documentacao.scielo.org/uploads/images/gallery/2021-08/scaled-1680-/screenshot-at-aug-05-10-51-31.png)](https://documentacao.scielo.org/uploads/images/gallery/2021-08/screenshot-at-aug-05-10-51-31.png)</span>

<span style="font-weight: 400;">After downloading the zip package you have to send it to the Linux Server. You can use WinSCP to send it.</span>

<span style="font-weight: 400;">The other alternative is download it directly from the link </span>[<span style="font-weight: 400;">https://github.com/scieloorg/Web/archive/refs/heads/scielo\_sza.zip</span>](https://github.com/scieloorg/Web/archive/refs/heads/scielo_sza.zip)<span style="font-weight: 400;"> using wget command. If your collection isn't sza you have to change the acronym from this link.</span>

<table id="bkmrk-%24-cd-%2Ftmp-%24-wget-htt"><tbody><tr><td><span style="font-weight: 400;">$ cd /tmp</span>

<span style="font-weight: 400;">$ wget https://github.com/scieloorg/Web/archive/refs/heads/scielo\_sza.zip</span>

<span style="font-weight: 400;">$ unzip scielo\_sza.zip</span>

<span style="font-weight: 400;">$ rsync -Cravp /tmp/</span><span style="font-weight: 400;">Web-scielo\_sza/htdocs/ /var/www/scielo/htdocs/</span>

<span style="font-weight: 400;">$ rsync -Cravp /tmp/</span><span style="font-weight: 400;">Web-scielo\_sza/cgi-bin/ /var/www/scielo/cgi-bin/</span>

<span style="font-weight: 400;">$ rsync -Cravp /tmp/</span><span style="font-weight: 400;">Web-scielo\_sza/proc/ /var/www/scielo/proc/</span>

</td></tr></tbody></table>

## <span style="font-weight: 400;">Fixing permissions </span>

<span style="font-weight: 400;">Once you have upgrade the directories you have to fix the permissions.</span>

<table id="bkmrk-find-%2Fvar%2Fwww%2Fscielo"><tbody><tr><td><span style="font-weight: 400;">find /var/www/scielo/ -type d -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">find /var/www/scielo/ -type f -exec chmod 644 {} \\;</span>

<span style="font-weight: 400;">cd /var/www/scielo/</span>

<span style="font-weight: 400;">find proc/ -name \*.bat -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">find proc/ -name \*.sh -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">find cgi-bin/ -name \*.bat -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">find cgi-bin/ -name \*.sh -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">find cgi-bin/ -name \*.exe -exec chmod 755 {} \\;</span>

<span style="font-weight: 400;">cd proc</span>

<span style="font-weight: 400;">chmod 755 cisis/\*</span>

<span style="font-weight: 400;">chmod 755 call</span>

<span style="font-weight: 400;">chmod 755 rem</span>

</td></tr></tbody></table>

# <span style="font-weight: 400;">References</span>

<span style="font-weight: 400;">The following descriptions were based on the existing document:</span>

[<span style="font-weight: 400;">http://docs.scielo.org/projects/scielo-site/en/latest/howtoinstall.html</span>](http://docs.scielo.org/projects/scielo-site/en/latest/howtoinstall.html)