Hi everyone,
I’m experiencing an issue with my OJS 3 installation. The OJS administration/dashboard page is displayed incorrectly or completely broken, and it looks like the CSS/JavaScript assets are not being loaded properly.
The frontend/public journal page is [working normally / also affected], but the admin interface is broken.
I found a possible clue related to OJS dynamic/static requests. Some references mention that the web server configuration may block requests such as:
$$$call$$$/page/page/css
The issue may be related to Apache rewrite rules, PATH_INFO, PHP-FPM, or static asset routing.
What I have tried
I have already tried several troubleshooting methods, including:
- Editing
config.inc.php - Checking/changing:
disable_path_info = Off
- Clearing the OJS cache
- Clearing template/cache files
- Restarting Apache and PHP-FPM
- Checking the Apache configuration and rewrite rules
- Trying several solutions suggested in Google and previous PKP/OJS discussions
However, the admin page is still displayed incorrectly.
Possible error
The browser developer tools appear to show that some CSS/JavaScript or OJS requests are not being loaded correctly.
For example, requests related to:
$$$call$$$/page/page/css
may be returning an error such as 404 Not Found / 403 Forbidden.
I am currently checking the Apache error logs and browser Network/Console logs to determine whether these requests are being blocked or incorrectly routed.
Server Environment
- OJS version: OJS 3.0.2
- Operating System: Ubuntu
- Web Server: Apache
- Apache MPM:
mpm_event - PHP connection: PHP-FPM via
proxy_fcgi - PHP-FPM used by OJS: PHP 7.0-FPM
- PHP-FPM socket configured in Apache:
/run/php/php7.0-fpm.sock - PHP CLI version: PHP 7.4.33
- Other PHP-FPM versions installed/running: PHP 7.3-FPM and PHP 8.2-FPM
- Apache VirtualHost:
eresources.uin-malang.ac.id:8443
The Apache VirtualHost is configured to use PHP 7.0-FPM with:
SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost/"
There is no mod_php module enabled. Apache is using:
proxy_fcgi_module
mpm_event_module
What I would like to know
Could this issue be caused by the Apache + PHP-FPM configuration, particularly the PHP-FPM version or the SetHandler configuration?
Could the $$$call$$$/page/page/css request be affected by Apache rewrite rules, PATH_INFO, or the PHP-FPM configuration?
What would be the recommended Apache/PHP-FPM configuration for OJS 3.0.2?
I would really appreciate any advice on what I should check next.
Has anyone experienced a similar issue with OJS 3?
Thank you very much for your help.