Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sumaserver install problems #12

Closed
micheljp opened this issue Jun 18, 2013 · 4 comments
Closed

sumaserver install problems #12

micheljp opened this issue Jun 18, 2013 · 4 comments
Assignees
Labels

Comments

@micheljp
Copy link

if i direct the browser to:

http://localhost/~micheljp/sumaserver/

i get a page which says "Index Controller"

if i go to http://localhost/~micheljp/sumaserver/admin

i get a 404 Not found error

if i go to http://localhost/~micheljp/sumaserver/index.php

i get this exception:

Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index.php)

here is index.php:

// Config
$SUMA_SERVER_PATH = '/home/micheljp/sumaserver';
$SUMA_CONTROLLER_PATH = '/home/micheljp/sumaserver/controllers';
$SUMA_BASE_URL = '/~micheljp/sumaserver';
$SUMA_DEBUG = true;

i went the .htaccess route.

not sure where i went wrong with the install. any help would be appreciated. we really look forward to using this!! :)

@ghost ghost assigned cazzerson Jun 18, 2013
@cazzerson
Copy link
Collaborator

Thanks for giving Suma a try! It sounds like your .htaccess file is not being recognized. If the file is in place, it's possible that your web server has not been configured to allow the use of .htaccess files in that particular directory. In Apache, you (or your sysadmin) may need to set the "AllowOverride" directive for that directory:

http://httpd.apache.org/docs/current/mod/core.html#allowoverride

Let me know if that helps.

@micheljp
Copy link
Author

Thanks for the reply. Checked with the sysadmin and apparently the AllowOveride has been set all along. any other ideas?

@cazzerson
Copy link
Collaborator

Hm, I still think this is an .htaccess issue. I am able to reproduce your issues by removing my .htaccess file. A few things to check:

  1. Confirm that the filename is exactly right (.htaccess) and the file in the same directory as the index.php file that you are able to reach.
  2. Confirm that the permissions will allow the file to be read by Apache (e.g. 644).
  3. Test the use of .htaccess files generally by creating another directory at the same level as the sumaserver web directory with the following lines in the .htaccess file:
RewriteEngine on
RewriteRule ^(.*)$ http://www.google.com

When you visit that URL, you should end up at Google.

  1. If item 3 works and you don't see any issues with items 1 and 2, could you send a copy of your .htaccess file to me at jmcasden@ncsu.edu?

@cazzerson
Copy link
Collaborator

The discussion of this issue continued offline, but to describe the solution for future users: There is an issue with the way mod_rewrite determines the base URL for per-user directories, described in the following bug report:

https://issues.apache.org/bugzilla/show_bug.cgi?id=36509

The solution in cases like these is to insert a RewriteBase line below the RewriteEngine on line in .htaccess. As an example, for this particular case, the line would be:

RewriteBase /~micheljp/sumaserver/ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants