sWADAH Always up-to-date Troubleshooting Guide

sWADAH Always up-to-date Troubleshooting Guide

June 26, 2024 Blog 0

Question 1

404 Page not found when tried to view Full Text document or any attached documents from detailsg.php

Answer:

  1. You will need to copy $system_identifier and $system_path from config.default.php into config.user.php
  2. After that (in config.user.php), change $system_identifier to your current sWADAH domain. For above example, it is just localhost. If sWADAH is installed on a server that already have a domain, change it to that. For e.g. ir.myuni.edu.my
  3. Them change $system_path to the exact path where you can access sWADAH. For above screenshot, sWADAH is installed at the url of http://localhost/swadah/
    So just change it to that. Make sure it’s start with http:// or https:// and ended with a /

Question 2.

Even though I have set all file size (for e.g. $system_allow_dfile_maxsize, $system_allow_pfile_maxsize) into a bigger size, I can’t seem to upload file bigger than that.

Answer: You will need to configure your php.ini configuration file too. The things to lookout is post_max_size and upload_max_filesize. This is an example on Ubuntu server (link: https://www.cyberciti.biz/faq/increase-file-upload-size-limit-in-php-apache-app/) Please Google depending on your server OS.


Question 3.

I see .htaccess file is available in sWADAH directory. Do I need to enable mod_rewrite in my apache ?

Answer: Yes. For Centos, you can refer here: https://ubiq.co/tech-blog/enable-mod_rewrite-apache-centos/


Question 4.

My post_max_size and upload_max_filesize won’t change even though I have restarted apache.

Answer: Check whether you have use php-fpm. If so, you might need to restart that. See example in this link: https://www.cyberciti.biz/faq/how-to-reload-restart-php7-0-fpm-service-linux-unix/