Compounding my stupidity

Bear with me. I am not the sharpest tool in the shed, as evidenced by paying $399.00 US for SC.

After giving up on it some time ago, I thought I’d try again. I wrote a very simple, one (grid) application, unsecured project. No security. The database is valid. The server supports PHP.5.2.

I created a typical deployment file. I put it on the server. I unzipped it. I set _lib permissions to 777.

Trying to open the url I get “Unauthorized user”

I read the magnificent help file:

http://localhost/scriptcase/doc/manual_mp/manual_mp.htm

Searching for “Production” I am told that I can create a database connection using ~/_lib/prod

That gives me

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Actually, come to think of it, I posted something similar some time ago. I also raised a ticket.

That’s right. I remember now. Deployment is not an option.

PS: I have a number of domains and web applications (PHP) running successfully on this server. Server misconfiguration is, IMO, unlikely.

Re: Compounding my stupidity

I have deployed numerous apps, and I not run into this. I will post my approach an see if it help.
Your error seems like a permission issue. Is this a 401, or?
Who owns the files after you unzip: ls -la
Is this a shared server?

-Deploy app, All, to zip (include common, etc)
-Upload zip to ftp
-Create new dir under /var/www
-copy and unzip ZIP to new dir
-chown -R www-data:www-data newdir
-chmod -R 777 newdir (full for now, reset later with files = 644, dir = 755, _lib = 777)
-enter url to app using domain including dir: www.mydomain.com/newdir (this loads the deploy wizard)
-Follow the directions on the screen. I click on the existing connection and make the changes, not create new, finish wizard.
-Load url again, app now runs.
-On updates I create a new zip without common and unzip over exiting files

Regards,
Scott

Re: Compounding my stupidity

Hi,

I’d also say that it is a problem with permissions but to also add some things that may help.

Is the chown correct? You’ve not for example moved and unzipped the application using root and left that as the chown/chgrp?

Probably a really obvious one but are you browsing to a directory that exists and has files in? From the error I would say there is the folder but may be not have php or html files or possibly more specifically an index.php, index.html, index.htm, home.php, home.html, home.htm.

Do you have a strange .htaccess that could cause this?

Hope some of this helps.

Mike

Re: Compounding my stupidity

It is not a permissions error. I have opened everything under _lib to 777. Interestingly, trying to run _lib/diagnosis.php and _lib/info.php results in the same internal server error.

PHP version is 5.2.13

Anyway, I need to get back to some real work. Will play around with it as time permits.

Re: Compounding my stupidity

You have a permission problem some where. You never mentioned the owner settings or if setting 777 to the app root works either.
Unauthorized errors are 9/10 a permission error or a config error in virtual host settings, or apache settings.

Oh well… back to your real work.

Regards,
Scott.