So I did the following steps:
append a new line into existing php.ini:
auto_prepend_file = set_path_info.php
Add a new file in OJS root folder set_path_info.php
:
<?php if (getenv('ORIG_PATH_INFO')) { putenv("PATH_INFO=".getenv('ORIG_PATH_INFO')); } if ($_SERVER['ORIG_PATH_INFO']) { $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO']; } if ($_ENV['ORIG_PATH_INFO']) { $_ENV['PATH_INFO'] = $_ENV['ORIG_PATH_INFO']; } ?>
Added the same .htaccess file (as suggested by twa here) in the OJS folder.
Then I set disable_path_info = Off
in config.inc.php.
when I run test.php here’s what it shows:
When I enter my website it shows this:
Anything wrong I did?
P.S: The Notice (before the error ) shows because I turned display_errors = On
in php.ini file