Mysql 4.1 on ubuntu service 18.04 linux: how to install?

Ok, I will give you the way I made it work.

If you want my way to work on your machine, please delete your store folder and your ojs folder and start over again because I think you configured the owner of the files and I didnt do that to make it work.

  1. Install PHP and its packages.
  2. Create a ojs user with all the permissions in mysql.
  3. Put the OJS folder on /var/www/html/ ← here. So your way to access to it trought the web browser will be: yourdomain/ojs-folder.
  4. Move into the OJS folder, and give all the permissions to the follow files and folders with
    chmod 777 -R public/
    chmod 777 -R cache/
    chmod 777 -R cache/t_cache
    chmod 777 -R cache/t_config
    chmod 777 -R public/t_compile
    chmod 777 -R cache/_db
    chmod 777 config.inc.php
    chmod 777 config.TEMPLATE.inc.php
  5. Create the ojs files folder in /var, and give it the permissions with chmod 777 -R ojs-files/
  6. Now via yourdomain/ojs-folder you should access to the web installer.

I will wait for your answer. Good luck.