I get a 500 error every time I try to install

I get to the install page: example.com/index.php?journal=index&page=install. But when clicking the “Install Open Journal Systems” button, and get redirected to example.com/index.php?journal=index&page=install&op=install I get a 500 error.

I’ve done the installation steps (giving 777 permission to uploads, cache, public and config.inc.php) many times, and even changed my virtual machine. No luck, any help?

Hi @lauraessvein,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,
I am trying to install OJS3 from github (ojs-stable-3_1_1 ) and I followed the steps from this link:
https://pkp.sfu.ca/wiki/index.php?title=Github_Documentation_for_PKP_Contributors#Checking_out_the_branch_you_want_to_work_on
I installed :
(PHP 5.6.36 (cli) (built: Apr 25 2018 10:02:39)) and
(Server version: 5.6.40 MySQL Community Server (GPL))

I activated all the errors in my config.inc.php
image

I checked folders (public, cache and config.inc.php)
image

I can visit the first step to configure database, files_directory, but when I am trying to install OJS, it came back to install page.
I watched any log files (NOT ERRORS)

/var/log/httpd/access_log
/var/log/httpd/error_log

I tried to install from command line with the same results.
image

Any idea ?

Hi @xavi,

Are you sure you’re using the right database driver (e.g. mysql vs. mysqli), and that the driver is loaded in your command-line PHP’s config.inc.php? (You can check the latter using php -i – note that the web-based phpinfo might not be applicable to your web-based PHP!)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi, I checked a modules and I didn’t install php-mysqlnd.
I install a old version (ojs-stable2_3) and now it’s working.

Thanks !!

Hi @xavi,

Do I understand that you’re starting off with OJS 2.3.x? I wouldn’t recommend it – that’s very old!

Regards,
Alec Smecher
Public Knowledge Project Team

Yes, I know, but I have a project in this version and I am upgrading this project step by step.
Can I upgrading from 2_4_8 to 3.1.1 ?

Hi @xavi,

Yes, you can upgrade directly from anything 2.4.x to the latest 3.x. If you’re currently working with something in OJS 2.3.x, you’d need to upgrade first to the newest 2.4.x and then from there to 3.x.

Regards,
Alec Smecher
Public Knowledge Project Team

Ok, Thanks!!!

Regards,
xavi.