freefcw / hustoj

the online judge system for acm/icpc
http://www.hustoj.org
263 stars 64 forks source link

Installation #43

Closed skys215 closed 8 years ago

skys215 commented 10 years ago

When wil the Installation sction will be updated? I downloaded it, but I cannot install.

Regards,

freefcw commented 10 years ago

I will do it when I have enough time, you can install use the old judge database from google code

dotkrnl commented 10 years ago

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.

skys215 commented 10 years ago

I did as you guys said, But it remains "出错了,请联系 freefcw#gmail".

skys215 commented 10 years ago

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

freefcw commented 10 years ago

please choose mysqli or pdo in database.php. the mysql driver is deprecated in the newest php version

skys215 commented 10 years ago

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!

skys215 commented 10 years ago

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.

freefcw commented 10 years ago

yes, you should che the owner of the webdocs, chmod -R www-data:www-data DIR

skys215 commented 10 years ago

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.

qhpeklh5959 commented 9 years ago

I've configed the database and permission of the dictionary, but I get "出错了,请联系 freefcw#gmail". I wonder if I've made some mistake??

freefcw commented 9 years ago

please check the error log for the detail

qhpeklh5959 commented 9 years ago

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)

1 /var/www/hustoj/index.php(105): Kohana_Request->execute()

2 {main} in /var/www/hustoj/system/classes/Kohana/Request.php:98

How to fix it?

freefcw commented 9 years ago

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?

jcf94 commented 9 years ago

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)

1 /var/www/html/hustoj/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response))

2 /var/www/html/hustoj/system/classes/Kohana/Request.php(997): Kohana_Request_Client->execute(Object(Request))

3 /var/www/html/hustoj/index.php(105): Kohana_Request->execute()

4 {main} in /var/www/html/hustoj/system/classes/Kohana/Request/Client/Internal.php:79

Foxprodev commented 9 years ago

Same error. What should i do?

freefcw commented 9 years ago

@xff252595680 @Foxprodev

Please show me your nginx or apache site config file

Foxprodev commented 9 years ago

@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.