Closed skys215 closed 8 years ago
I will do it when I have enough time, you can install use the old judge database from google code
With an installed Google Code version HUSTOJ. See hints in https://github.com/freefcw/hustoj/wiki/database-changed and https://github.com/freefcw/hustoj/wiki/configure . This project just refactored the front-end.
I did as you guys said, But it remains "出错了,请联系 freefcw#gmail".
I got the 500 Http Response and this error message: Database_Exception [ 8192 ]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
please choose mysqli or pdo in database.php. the mysql driver is deprecated in the newest php version
Yes, it solved the problem. But there's annother problem: When I click the links on the navbar, it get an 404 error. (eg.http://127.0.0.1:8889/problem/list) But when I add index.php in the url, then it's ok.(eg. http://127.0.0.1:8889/index.php/problem/list) Is it my Apache Configuration's problem?
Update: It was my Apache Configuration's problem, AllowOverride was set to None. It works perfect after changed it to All and restarting the Apache.
Thanks for the help!
HustOJ works well at my localhost, but there's an error running on my vps. ErrorException [ Fatal Error ]: Call to undefined function __() SYSPATH/classes/Kohana/Kohana/Exception.php [ 53 ]
It seems that I18n.php didn't load propperly.
Update: One of my friend who is familiar with Kohana said, I need to give permissions to the application/cache/ and application/logs/ after that, the problem is solved.
yes, you should che the owner of the webdocs, chmod -R www-data:www-data DIR
After asking a net-friend, he said that the judging system is not in this repository. This repository is just another web interface of the judging system.
So I checkout the judge system which is in SVN, and did the sudo bash install/install-interactive.sh
.
This time, I can open the online judge, I can add problem, submit code and judge the code on localhost.
But when I did the same thing on my vps, it seems that it can create the Problem-Id directory in the /home/judge/data, I don't know why. If I create the directory manualy, then the code could be accepted.
I've configed the database and permission of the dictionary, but I get "出错了,请联系 freefcw#gmail". I wonder if I've made some mistake??
please check the error log for the detail
2014-10-29 09:03:05 --- DEBUG: #0 /var/www/hustoj/system/classes/Kohana/Request.php(986): Kohana_HTTP_Exception::factory(404, 'Unable to find ...', Array)
How to fix it?
The imformation is hide the most important, please give me the whole log.
Seems route set has some problem in route, did u installed in subdirectory?
I think I get a same error like qhpeklh5959 do .....
Here is my log:
2015-04-26 16:20:42 --- EMERGENCY: HTTP_Exception_404 [ 404 ]: The requested URL hustoj was not found on this server. ~ SYSPATH/classes/Kohana/HTTP/Exception.php [ 19 ] in /var/www/html/hustoj/system/classes/Kohana/Request/Client/Internal.php:79 2015-04-26 16:20:42 --- DEBUG: #0 /var/www/html/hustoj/system/classes/Kohana/Request/Client/Internal.php(79): Kohana_HTTP_Exception::factory(404, 'The requested U...', Array)
Same error. What should i do?
@xff252595680 @Foxprodev
Please show me your nginx or apache site config file
@freefcw Already fixed it, AllowOverride in this directory. But how to fix http://stackoverflow.com/questions/4624726/http-error-302-using-uploadify? In firefox, safari, os x browsers.
When wil the Installation sction will be updated? I downloaded it, but I cannot install.
Regards,