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

Problem installing on UIS MWS #1

Open
richardgmcmahon opened this issue Apr 12, 2015 · 3 comments
Open

Problem installing on UIS MWS #1

richardgmcmahon opened this issue Apr 12, 2015 · 3 comments

Comments

@richardgmcmahon
Copy link

Hello, I am trying in install the demo on a UIS Managed WebService account and get this screen of errors. As well as the php errors, it look like the settings file is not being installed.

I have been able to get the demo to work on my MacOSX laptop without any changes needed.

requirements_problem_drupal

@thewilkybarkid
Copy link
Contributor

Strange; are all the files definitely present inside /site/vhosts/test/htdocs/ucam-drupal-demo/drupal-cambridge-demo-master? (eg /site/vhosts/test/htdocs/ucam-drupal-demo/drupal-cambridge-demo-master/sites/default/setting.php)

@richardgmcmahon
Copy link
Author

Ok, it was missing; I think Solaris tar may have not untared the tar file correctly.

So I used gtar.

/usr/sfw/bin/gtar -xvf drupal-cambridge-demo-master.tar

I now get this error after a longish wait:Fatal error: Maximum execution time of 30 seconds exceeded in /site/vhosts/test/htdocs/demo/drupal-cambridge-demo-master/includes/lock.inc on line 0
Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 586062665552bf869e13b73.26697255 ) in lock_release_all() (line 269 of /site/vhosts/test/htdocs/demo/drupal-cambridge-demo-master/includes/lock.inc).

I have seen problems with file protections before on webservers where the user does
not have root or the database is not explicily created by the installer script running as
apache or the equivalent. Giving the file world read access is a not ideal work around.

bash-3.2$ pwd
/site/vhosts/test/htdocs/demo/drupal-cambridge-demo-master/sites/default/files
ls -l .ht.sqlite
-rw-rw-r-- 1 rm21 managers 3693568 Mar 23 15:32 .ht.sqlite

@richardgmcmahon
Copy link
Author

Ok, I have sorted out the permissions following some advice from the UCS helpdesk and httpd was added to the group that owned the installed files:

see: http://www.ucs.cam.ac.uk/managed-web-service/managing

i.e.
groupmanage DRUPAL --create
groupmanage DRUPAL --add httpd
groupmanage DRUPAL --add rm21

-bash-3.2$ grep DRUPAL /etc/group
DRUPAL::500:httpd,rm21

Then:
chgrp -R DRUPAL *

Now the site installs OK but Raven login does not work:

see: http://www.test.clarehall.cam.ac.uk/demo/drupal-cambridge-demo-master/

login as admin works OK

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

2 participants