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

Error 500 #47

Open
jamesallison opened this issue Dec 22, 2014 · 28 comments
Open

Error 500 #47

jamesallison opened this issue Dec 22, 2014 · 28 comments

Comments

@jamesallison
Copy link

On install, using MAMP

rename(/Applications/MAMP/protected/installer/controllers/../../../www/installer.php,/Applications/MAMP/protected/installer/controllers/../../../www/installer-disabled.php): No such file or directory

@milezzz
Copy link

milezzz commented Dec 22, 2014

Did you forget to move the protected folder to be web accessible? Should be in the same dir as www. Also set permissions for www-data or whatever user the webserver/php is.

@jamesallison
Copy link
Author

I’ve stuck protected in htdocs with the rest of the front end now, however now index.php is showing nothing at all, just a blank page.

On 22 Dec 2014, at 22:20, (︶︹︺) notifications@github.com wrote:

Did you forget to move the protected folder to be web accessible? Should be in the same dir as www http://www/. Also set permissions for www-data or whatever user the webserver/php is.


Reply to this email directly or view it on GitHub #47 (comment).

@booth-f
Copy link

booth-f commented Dec 24, 2014

@milezteg actually the protected folder can sit outside of the www directory such as in /var (one directory back in Linux environments) and as long as the www-data user and group own it, it should work fine. He could also just set it to read from the www directory though by editing a few files.

@iShariefi
Copy link

Getting this error 500 just after clicking "deploy"

screen shot 2014-12-24 at 7 46 08 am

@booth-f
Copy link

booth-f commented Dec 24, 2014

yep, see #58

Gotta set it that your using your own database, sphinx search, and comment out the two lines I specify in #58 and then you can click deploy and you'll be greeted by the default index.

The reason for this is that isohunt removed the config.json information from their site (or moved it) and its causing issues with new Openbay deployments.

@iShariefi
Copy link

@tranquilitycal Did that. Got this...

screen shot 2014-12-24 at 8 53 07 am

May be its related to the own database thingy you said earlier. Can you please explain what did you mean by my own database? Doesn't this have a default db or something?
Sorry for bothering you this much, I'm totally new in this...
Thanks...

@booth-f
Copy link

booth-f commented Dec 24, 2014

@iShariefi that's alright, The database I was talking about was like this
untitled

Replacing that information with what you need to set, the rest like cache and logging you can leave on.

@booth-f
Copy link

booth-f commented Dec 24, 2014

The default database that is suppose to come with this (the one it goes to if you leave database and sphinx on) currently doesn't work as Isohunt moved or removed the config.json that was suppose to be on their site which would have then set your database and sphinx configuration to use theirs however without that file you get the error you got above.

My best guess to why they did this was probably someone broke into their public database that was serving all the replicas now spawning up all over the place.

@iShariefi
Copy link

@tranquilitycal All right, thanks...
Can you tell me or give a link or something where I can learn how to fill these up?

screen shot 2014-12-24 at 9 12 13 am

Or can you give me any tutorial link where I can learn how to create a database (specifically for using in openbay) and deploy in this installation? I've been searching, but still unable to find the proper one.

I'm determined to make this website work, whatever it takes. And as my godaddy hosting will not allow this, can you tell me what kinda hosting should I get for this?

Thanks again...

@booth-f
Copy link

booth-f commented Dec 24, 2014

GoDaddy should work, as long as you don't host copyrighted material you should be fine, at the moment I don't know any good hosts at this moment.

As far as setting up the databases you might wanna take a look at stuff like phpbb3/MyBB (Forum software written in PHP which use MySQL databases) I am lacking a tutorial link which would be great help to you right now but there should be a few good links online just search like.

Creating MySQL databases in CPanel and you might find what your looking for.

@iShariefi
Copy link

@tranquilitycal All right mate, diving into it, will be back after I create the db...

@booth-f
Copy link

booth-f commented Dec 24, 2014

Alrighty, I just reopened my pull request and made the edits to add a note that tells new installers that the default "On" is broken at current moment and I edited the DefaultController.php in there too.

@iShariefi
Copy link

@tranquilitycal at last got rid of the installer..
But why does it look like this?

screen shot 2014-12-24 at 9 15 59 pm

@booth-f
Copy link

booth-f commented Dec 24, 2014

hmm, That is very odd, Looks like the protected dir might not be fully owned by the www-data user or whatever user you have set to serve web data. chown -R protected www-data:www-data should fix it.

@iShariefi
Copy link

in #35 someone provided some css fixes. Do I need to do those?

my protected dir permission is 7 5 5. are you talking about changing this?

@booth-f
Copy link

booth-f commented Dec 24, 2014

The css fixes are suppose to be if your using a subdirectory but it might be worth a shot.

@iShariefi
Copy link

In cpanel where do I go to apply chown?

@booth-f
Copy link

booth-f commented Dec 24, 2014

Well in the case of doing it with cpanel then the user permissions should already be set. Where is your protected dir currently?

@iShariefi
Copy link

screen shot 2014-12-24 at 10 10 07 pm

this is my www

@iShariefi
Copy link

and everything else is inside infernalbay

I changed protected's permission to 7 7 5 as well

@booth-f
Copy link

booth-f commented Dec 24, 2014

do you have a way to place it outside of the www directory? Looking at a few of the files from the index and such it looks like it goes to /../ which tells it to go to the root (www) directory then go back one to something like /var/ (in my case /var/www/index.php and then /var/protected/)

EDIT:

Code snippet from index.php

$yii = DIR . '/../protected/vendor/yiisoft/yii/framework/' . (YII_DEBUG ? 'yii.php' : 'yiilite.php');

@iShariefi
Copy link

screen shot 2014-12-24 at 10 18 44 pm

this is home, if I put it outside www, then I've to put it here

@booth-f
Copy link

booth-f commented Dec 24, 2014

You could try, since its symlinked to your home directory, if it doesn't work I'll just do a side branch and edit all the lines that say "/../" to just go to /protected

@iShariefi
Copy link

And I changed the css path, should I revert the change?

@booth-f
Copy link

booth-f commented Dec 24, 2014

yes

@iShariefi
Copy link

all right.
and I sent you an email. can you please check?

@booth-f
Copy link

booth-f commented Dec 24, 2014

yeah I'll check

@bluelime88
Copy link

Hi @tranquilitycall, I believe you can help me how to set-up Sphinx for Openbay in Windows. Do you a simple tutorial for that. Please help.

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

No branches or pull requests

5 participants