pushkar8723 / aurora

SPOJ like judge to automatically judge the submitted solution.
http://aurora.pushkaranand.com
MIT License
99 stars 81 forks source link

Cannot do anything after logging in as judge #8

Closed vozille closed 9 years ago

vozille commented 9 years ago

Say I want to view judge settings, I clicked on that, and it took me to http://localhost/Interface/adminjudge which ofcourse doesnt exist. Same with all other options like creating a new account to adding problem set.

Replaced Web Interface as Interface , everyting else is same

pushkar8723 commented 9 years ago

Seems like your apache's rewrite module is not loaded. Go through the readme file and see if there is something you missed. https://github.com/pushkar8723/Aurora/blob/master/Web%20Interface/README.md

vozille commented 9 years ago

Hi, I have the mod_rewrite enabled in var/www/html folder, where the files reside, still get 404

pushkar8723 commented 9 years ago

mod_rewrite is apache level mod and you have to edit httpd.conf in /etc/apache2/ or /etc/httpd/conf/ depending on your distro.

vozille commented 9 years ago

I'm sorry, what I meant was that phpinfo in that folder shows mod_rewrite is enabled.

I had enabled it using a2enmod command in terminal

pushkar8723 commented 9 years ago

then your rewrite is not happening properly. Is config.php configured properly. You have to provided base path in SITE_URL variable. define("SITE_URL", "http://" . $_SERVER['HTTP_HOST'] . "/aurora");

vozille commented 9 years ago

yes, I think it is, else I would not have been able to log in

vozille commented 9 years ago

my base path is http://localhost/Interface, where Interface = Web Interface folder

pushkar8723 commented 9 years ago

Then set SITE_URL as follows: define("SITE_URL", "http://" . $_SERVER['HTTP_HOST'] . "/Interface");

vozille commented 9 years ago

I deleted the files and set up again like you said here, but I still get the same problems

vozille commented 9 years ago

Not found errors

pushkar8723 commented 9 years ago

Can you paste your apache access and error logs here?

vozille commented 9 years ago

Access log: http://pastebin.com/5rwHYPY7

Error log doesnt show anything related to this project

vozille commented 9 years ago

You know, I just tried this in wamp server and everything works real smooth , unfortunately ubuntu still doesnt work :|

vozille commented 9 years ago

Thanks to that running in wamp I fixed issues with apache. Thanks for your quick reply and help too :)

pushkar8723 commented 9 years ago

I am happy to know that your problem is solved. Still from this issue its not clear what problem was there in configuration and how you fixed it. Please leave a short description below. It will help others who might face same problem :) Thanks

vozille commented 9 years ago

Check if virtual directory support is enabled in phpinfo() , if not, enable it by editing the apache2.conf file

BakhodirIsmatov commented 6 years ago

hello i have some problem with Internal Server Error 500. when I created .htaccess file site isn't work now!

BakhodirIsmatov commented 6 years ago

please help me! I like this judge system and design! I want to use in my university for my students. I'm a student too!