SVOCat Documentation

Version 2.01, October 2020, author: Carlos Rodrigo

HomeDownloadDocumentationExamplesCreditsHelp-Desk
1. Introduction
2. Download
    2.1. Extract
    2.2. Permissions
3. The files
4. Example
5. Configure
    5.1. First
    5.2. Project
    5.3. Mysql
    5.4. Web
    5.5. VO options
    5.6. Fields
    5.7. Photometry
    5.8. Search Opts.
    5.9. File Paths
    5.10. Scripts
    5.11. Registry
    5.12. Spectra
    5.13. Links
    5.14. References
6. Web Design
    6.1. style.css
    6.2. Colors
    6.3. header.php
    6.4. footer.php
7. Extra tips
Previous   Next

Download

[Extract][Permissions]

Permissions

Just in case, it's good to make sure that the Apache web server is able to read all the files in the directory where you have installed SVOCat.

In a typical linux installation of Apache, this means that you make all the files and folders readable by the www-data user and all the folders "executable" by that user. For instance, you can do:

> cd /var/www/catalogues/excat2/
> sudo chmod -R ugo+r .
> sudo chmod ugo+x `find . -type d`

 

IMPORTANT! There are two special directories: config/ and work/. Both directories must be writable by the web server. Change their permissions as needed so that it is allowed.

In a typical linux installation of Apache, this means that you make them (and their contents) owned by the www-data user and make them writable by that user.

> cd /var/www/catalogues/excat2/
> sudo chown -R carlos:www-data config/ work/
> sudo chmod g+rwx config/ work/
> sudo chmod -R g+rw config/ work/

The point is that when you configure the application with the properties of your catalogue, the files in config/ and work/ will be changed to save the new properties. And in order to be able to do that the web server must be able to write on them. If you are not able to do this, please contact your server administrator.

In general, it is a good idea to make everything owned by your user and the apache (www-data) group. At the end, if you take a look to the output of ls -la commands, you should see something similar to this:

> ls -la

drwxr-x--- carlos www-data .
drwxr-x--- carlos www-data admin/
-rw-r----- carlos www-data admin.php
drwxr-x--- carlos www-data availability/
drwxr-x--- carlos www-data capabilities/
drwxrwx--- carlos www-data config/
-rw-r----- carlos www-data credits.php
-rw-r----- carlos www-data cs.php
-rw-r----- carlos www-data dl.php
drwxr-x--- carlos www-data docs/
-rw-r----- carlos www-data documentation.php
drwxr-x--- carlos www-data files/
-rw-r----- carlos www-data home.php
drwxr-x--- carlos www-data includes/
-rw-r----- carlos www-data index.php
drwxr-x--- carlos www-data javascript/
-rw-r----- carlos www-data news.php
-rw-r----- carlos www-data other1.php
-rw-r----- carlos www-data search.php
-rw-r----- carlos www-data ssap.php
drwxr-x--- carlos www-data style/
-rw-r----- carlos www-data version.php
drwxrwx--- carlos www-data work/
    
> ls -la admin/

drwxr-x--- carlos www-data .
-rw-r----- carlos www-data check.php
-rw-r----- carlos www-data conf_admuser.php
-rw-r----- carlos www-data conf_dlink.php
-rw-r----- carlos www-data conf_fields.php
-rw-r----- carlos www-data conf_init.php
-rw-r----- carlos www-data conf_mysql.php
-rw-r----- carlos www-data conf_paths.php
-rw-r----- carlos www-data conf_phot.php
-rw-r----- carlos www-data conf_project.php
-rw-r----- carlos www-data conf_refs.php
-rw-r----- carlos www-data conf_registry.php
-rw-r----- carlos www-data conf_scripts.php
-rw-r----- carlos www-data conf_search.php
-rw-r----- carlos www-data conf_spectra.php
-rw-r----- carlos www-data conf_vo.php
-rw-r----- carlos www-data conf_web.php
-rw-r----- carlos www-data functions.php
-rw-r----- carlos www-data init_page.php
-rw-r----- carlos www-data login.php
    
> ls -la config/

drwxrwx--- carlos www-data .
-rw-rw---- carlos www-data config_admuser.php
-rw-rw---- carlos www-data config_dates.php
-rw-rw---- carlos www-data config_dlink.php
-rw-rw---- carlos www-data config_fields.php
-rw-rw---- carlos www-data config_mysql.php
-rw-rw---- carlos www-data config_paths.php
-rw-rw---- carlos www-data config_phot.php
-rw-rw---- carlos www-data config.php
-rw-rw---- carlos www-data config_project.php
-rw-rw---- carlos www-data config_refs.php
-rw-rw---- carlos www-data config_scripts.php
-rw-rw---- carlos www-data config_search.php
-rw-rw---- carlos www-data config_spectra.php
-rw-rw---- carlos www-data config_vo.php
-rw-rw---- carlos www-data config_web.php
  

In particular, permissions for config/ and work/ should be similar to what is shown for config/. And permissions for other subfolders should be similar to those shown for admin/.

Previous   Next