I checked the Apache error log and found errors regarding….
- Code: Select all
[error] [client xx.xx.xx.xx] script not found or unable to stat: C:/apache/Apache2/php/login.php
I searched the web and tried all of their suggestions to fix the problem re cgi settings etc without success.
I looked into the PHP code of the login script and added the following line of code (filename: login.php, after line 34)
- Code: Select all
$baseurl = str_replace("php/","",$baseurl);
This strips out the "php/" section of the base URL that I thought was causing the 404 issue. I also restarted my development server after install of OJS as this code “fix” did not take effect until after the system restart. I have no idea why this worked, the normal Apache re-start did not make any improvements. To clarify, this was a entire system re-start, not just Apache…. Strange I know, but it helped somehow!!!
I do not like changing other peoples code, but as OJS has not been officially tested on Windows, I thought I would try and get it going as it looks really good!!
Should mention my environment….
Windows XP Professional (development server)
Apache 2.0.48
MySQL 3.23.47
PHP 4.3.4
I hope this helps someone else!!!
