This file is a database of FLUKA website Errors explanation. -------------------------------------------------------- UPDATED===09.10.2008.18.47.52 TITLE===Website error TYPE===database -------------------------------------------------------- uniquied line described test code (spaces and special chars not permitted!) :::::::::::: test line in PHP :::::::::::: explanation -------------------------------------------------------- STAT_4 :::::::::::: (file_exists(/htmls/website_common)) :::::::::::: make symbolic link from website_common to htmls/website_common:
ln -s $PWD/website_common $PWD/htmls/website_common -------------------------------------------------------- STAT_3 :::::::::::: (file_exists(/html/website_common)) :::::::::::: make symbolic link from website_common to html/website_common:
ln -s $PWD/website_common $PWD/html/website_common -------------------------------------------------------- STAT_1 :::::::::::: (file_exists(/html/website_style)) :::::::::::: make symbolic link from website_style to html/website_style:
ln -s $PWD/website_style $PWD/html/website_style -------------------------------------------------------- STAT_2 :::::::::::: (file_exists(/htmls/website_style)) :::::::::::: make symbolic link from website_style to htmls/website_style:
ln -s $PWD/website_style $PWD/htmls/website_style -------------------------------------------------------- TEMP_1 :::::::::::: (is_writable(/website_temp)) :::::::::::: directory for temporary use in not writeable:
chmod -R 777 $PWD/website_temp -------------------------------------------------------- TEMP_2 :::::::::::: (is_writable(/website_temp/manual/)) :::::::::::: directory for online manual generator in not writeable:
chmod -R 777 $PWD/website_temp/manual/ -------------------------------------------------------- TEMP_3 :::::::::::: (is_writable(/website_temp/logs/)) :::::::::::: directory for website logs in not writeable:
chmod -R 777 $PWD/website_temp/logs/ -------------------------------------------------------- TEMP_4 :::::::::::: (is_writable(/website_temp/stats/)) :::::::::::: directory for website statistics in not writeable:
chmod -R 777 $PWD/website_temp/stats/ -------------------------------------------------------- TEMP_5 :::::::::::: (is_writable(/website_temp/lock/)) :::::::::::: directory for website edit content interface in not writeable:
chmod -R 777 $PWD/website_temp/lock/ -------------------------------------------------------- TEMP_FILE_1 :::::::::::: ((file_exists(/website_temp/backups.txt) && is_writeable(/website_temp/backups.txt)) || (!file_exists(/website_temp/backups.txt)) || (fileowner(/website_temp/frame.dump) == APACHE_ID)) :::::::::::: Wrong permissions for file: /website_temp/backups.txt
This file is generated when admin wish to download some backuped USER DATABASEs.
chmod 777 $PWD/website_temp/backups.txt (if file exists) -------------------------------------------------------- TEMP_FILE_2 :::::::::::: ((file_exists(/website_temp/frame.dump) && is_writeable(/website_temp/frame.dump)) || (!file_exists(/website_temp/frame.dump)) || (fileowner(/website_temp/frame.dump) == APACHE_ID)) :::::::::::: Wrong permissions for file: /website_temp/frame.dump
This file is a content-only stripped subpage for printing purposes.
chmod 777 $PWD/website_temp/frame.dump (if file exists) -------------------------------------------------------- TEMP_FILE_3 :::::::::::: ((file_exists(/website_temp/userpwd_last_downloaded.txt) && is_writeable(/website_temp/userpwd_last_downloaded.txt)) || (!file_exists(/website_temp/userpwd_last_downloaded.txt)) || (fileowner(/website_temp/userpwd_last_downloaded.txt) == APACHE_ID)) :::::::::::: Wrong permissions for file: /website_temp/userpwd_last_downloaded.txt
This file store date information when admin has downloaded last time USER DATABASE.
chmod 777 $PWD/website_temp/frame.dump (if file exists) -------------------------------------------------------- DIR_1 :::::::::::: (is_writable(/html/frame/)) :::::::::::: Directory has wrong privileges.
This directory is used to generate content-only stripped subpage for printing purposes output.
chmod -R 777 $PWD/html/frame/ -------------------------------------------------------- DIR_2 :::::::::::: (is_writable(/htmls/free_download/)) :::::::::::: Directory has wrong privileges.
This directory is used for some admin and user downloading without any access restrictions.
chmod -R 777 $PWD/htmls/free_download/ -------------------------------------------------------- BCK_1 :::::::::::: (shell_exec(find -name *~)) :::::::::::: System-like backups (ending with ~) found in the tree of the website.
May generate some strange errors/secuirity leackage and consume space. -------------------------------------------------------- DB_1 :::::::::::: (is_writable(/website_restricted/backup/)) :::::::::::: Directory for USER DATABASE backups have wrong privileges.
chmod -R 777 $PWD/website_restricted/backup/ -------------------------------------------------------- DB_2 :::::::::::: (file_exists(/website_restricted/userpwd.txt)) :::::::::::: Existance of the USER DATABASE (flat file). -------------------------------------------------------- DB_3 :::::::::::: (is_writeable(/website_restricted/userpwd.txt) || (fileowner(/website_restricted/userpwd.txt) == APACHE_ID)) :::::::::::: USER DATABASE file have wrong privileges.
chmod 777 $PWD/website_restricted/userpwd.txt -------------------------------------------------------- DB_4 :::::::::::: $update = trim(file_get_contents(/website_temp/userpwd_last_downloaded.txt));
(FN_dateDiff(date("d.m.Y"), $update) > DAYS_DB_DOWNLOAD) :::::::::::: Download the USER DATABASE to have extra backup.
DAYS_DB_DOWNLOAD is defined in the config.txt. -------------------------------------------------------- HT_1 :::::::::::: CONFIGURATION IN: /etc/httpd/conf/httpd.conf for packages download :::::::::::: Configuration for FLUKA package download access is not pointing to the correct database.
Correct configuration.
Previously (for Milano machine):

AllowOverride None
AuthName "FLUKA download interface"
AuthType Basic
AuthUserFile /Fluka/www/website_restricted/.htpasswd_packages
require valid-user
-------------------------------------------------------- HT_2 :::::::::::: CONFIGURATION IN: /etc/httpd/conf/httpd.conf for source download :::::::::::: Configuration for FLUKA source download access is not pointing to the correct database.
Correct configuration.
Previously (for Milano machine):

AllowOverride None
AuthName "FLUKA source download interface"
AuthType Basic
AuthUserFile /Fluka/www/website_restricted/.htpasswd_source
require valid-user
-------------------------------------------------------- HT_3 :::::::::::: (file_exists(/website_restricted/.htpasswd_packages)) :::::::::::: Existance of password file for Apache during access to packages.
This file may not exists if:
- admin block access
- website is fresh and admin did not allow access -------------------------------------------------------- HT_4 :::::::::::: (file_exists(/website_restricted/.htpasswd_source)) :::::::::::: Existance of password file for Apache during access to source.
This file may not exists if:
- admin block access
- website is fresh and admin did not allow access -------------------------------------------------------- WL_1 :::::::::::: (file_exists(/website_restricted/trusted.txt)) :::::::::::: Existance of whitelist. -------------------------------------------------------- WL_2 :::::::::::: (is_writeable(/website_restricted/trusted.txt)) :::::::::::: Write pivileges the whitelist. -------------------------------------------------------- PACK_0 :::::::::::: (file_exists(/htmls/source/PACKAGE_0)) :::::::::::: Source package not exists in source download directory.
PACKAGE_0 is defined in config.txt. -------------------------------------------------------- PACK_1 :::::::::::: (file_exists(/htmls/source/PACKAGE_X)) :::::::::::: One of the packages: PACKAGE_1, 2, ... defined in config.txt not exists in package download directory.
PACKAGE_1, 2, ... are defined in config.txt. -------------------------------------------------------- TXT_1 :::::::::::: (file_exists(/website_common/txt)) :::::::::::: Existance of the subpages directory. -------------------------------------------------------- TXT_2 :::::::::::: (is_writeable(/website_common/txt)) :::::::::::: Write pivileges of the subpages directory. -------------------------------------------------------- TXT_3 :::::::::::: (file_exists(/website_common/txt/backup) && is_writeable(/website_common/txt/backup)) :::::::::::: Existance and write pivileges of the subpages backup directory. -------------------------------------------------------- TXT_4 :::::::::::: ((!is_readable(/website_common/txt/*.txt) || !is_writeable(/website_common/txt/*.txt)) && (fileowner(/website_common/txt/*.txt) != APACHE_ID)) :::::::::::: Wrong privileges of particular file in /website_common/txt/.
Sometimes newly uploaded file (by ssh, scp) can rise this error.
If you try to edit & save the file without changes and the error will not disappear:
chmod 777 $PWD/website_common/txt/<name_of_the_file> -------------------------------------------------------- OVER_1 :::::::::::: Overload of /website_restricted/backup/ :::::::::::: Too many files in: /website_restricted/backup/ (backups of USER DATABASE).
NM_BACKUPS_ALLOWED can be modified in config.txt. Too much files can consume a lot of disk space. -------------------------------------------------------- OVER_2 :::::::::::: Overload of /website_common/txt/backup/ :::::::::::: Too many files in: /website_common/txt/backup/ (backups of website subpages).
NM_BACKUPS_ALLOWED can be modified in config.txt. Too much files can consume a lot of disk space. -------------------------------------------------------- TR_1 :::::::::::: $file_arr is the array of files in /htmls/free_download/ directory.
((!IS_SECURED || !CH_adminPresence()) && (count($file_arr) > 0)) :::::::::::: /htmls/free_download/ contain some files - might be secuirity leackage if still contain something even if the admin logout.
In most cases it will not harm anything. -------------------------------------------------------- TXT_FILE_1 :::::::::::: list($title, $contents, $update) = FN_stripTxtFile(basename(/website_common/txt/*.txt));
$data = explode(TXT_SEPARATOR, file_get_contents(/website_common/txt/*.txt)); ((count($data) < 3) || !$title || !$contents || !$update || (trim($title) == "") || (trim($update) == "") || (trim($contents) == "")) :::::::::::: Website subpage txt file corrupted/not well formatted. -------------------------------------------------------- TXT_FILE_2 :::::::::::: list($title, $contents, $update) = FN_stripTxtFile(basename(/website_common/txt/*.txt));
((!isset($update)) || FN_dateDiff(date("d.m.Y"), trim($update)) > DAYS_UPDATE) :::::::::::: Some files needs update or last update variable is not set properly inside txt file. -------------------------------------------------------- TXT_FILE_3 :::::::::::: list($title, $contents, $update) = FN_stripTxtFile(basename(/website_common/txt/*.txt));
((!isset($update)) || FN_dateDiff(date("d.m.Y"), trim($update)) > DAYS_UPDATE_CRITICAL) :::::::::::: Some files critically needs update or last update variable is not set properly inside txt file. -------------------------------------------------------- MAN_1 :::::::::::: (file_exists(/website_temp/manual/chapter0.txt) && file_exists(/website_temp/manual/chapter_index.txt)) :::::::::::: If those two files not exists propably rest of the files too.
Regenerate the manual! -------------------------------------------------------- STAT_1 :::::::::::: $filename = /website_temp/stats/yesterday_counter_frame.txt
(int) (trim(file_get_contents($filename))) > 10 :::::::::::: If the website was not viewed yesterday for sure this means some critical problem!
Crawlers also generate some traffic. -------------------------------------------------------- STAT_2 :::::::::::: $filename = /website_temp/stats/yesterday_counter_register.txt
(int) (trim(file_get_contents($filename))) > 0 :::::::::::: If this warning will be present test the registration procedure for errors. -------------------------------------------------------- STAT_3 :::::::::::: For each defined PACKAGE_<number>
$filename = /website_temp/stats/yesterday_counter_download_<number>.txt (int) (trim(file_get_contents($filename))) > 0 :::::::::::: If this warning will be present test the downloading procedure for errors. -------------------------------------------------------- INT_1 :::::::::::: (!file_exists(/website_restricted/internal.txt)) :::::::::::: File containig password for internal access.
Regenerate this file using admin interface. -------------------------------------------------------- INT_2 :::::::::::: (!file_exists(/website_restricted/upload.txt)) :::::::::::: File containig password for internal (upload) access.
Regenerate this file using admin interface. -------------------------------------------------------- LOG_1 :::::::::::: Existance of log files: website_temp/logs/* :::::::::::: If there are no logs something may be wrong with privileges of this directory.