Ticket #739 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

Set up DEV and other drupal accounts for Annesley

Reported by: ed Owned by: chris
Priority: major Milestone: Maintenance
Component: Dev server Keywords:
Cc: sam, paul, annesley Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.5

Description

is this you chris? or a sam job? or paul?

Attachments

httpd-vhosts.conf (1.1 KB) - added by paul 2 years ago.

Change History

comment:1 Changed 2 years ago by ed

  • Cc annesley added

comment:2 Changed 2 years ago by paul

  • Add Hours to Ticket changed from 0.0 to 0.125
  • Total Hours changed from 0.0 to 0.125

I got help from Chris (Aegir) and Sam (Drupal)

Let me know if you need any help with setting up an account (roles / permissions) on the production site .

comment:3 Changed 2 years ago by chris

I haven't set Drupal account permissions for people, Jim set the permissions on my account, it sounds like this is a job for Paul.

comment:4 Changed 2 years ago by paul

  • Add Hours to Ticket changed from 0.0 to 0.125
  • Total Hours changed from 0.125 to 0.25

Ed,

Shall I set up Annesley account [*] with the site administrator role (along with the developer role that he already has) as per my account? I think only editors and group managers need further roles.

[*] https://www.transitionnetwork.org/users/annesley-newholm

comment:5 Changed 2 years ago by annesley

hi, i will try to install a local copy of D6 version today to look around. i raised a separate ticket for help with getting my local copy of the IIRS up and running. thanks.

comment:6 Changed 2 years ago by ed

Paul - set Annesley up with any rights and roles required for full access at all levels :)

comment:7 Changed 2 years ago by paul

@Ed

Will do.

@Annesley

Instructions for setting up a local server:

1) Initially you get a white screen. When you add the following to setting.php ..

error_reporting(-1);
$conferror_level? = 2;
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

.. you will see a lot of errors!

First one to fix is a memory limit problem, you can fix this by adding the following to settings.php

ini_set('memory_limit', '256M');

There will probably still be a lot of errors. I'll come to these shortly.

2) Manually remove the botcha module. I couldn't use drush until I just picked up this module and put it somewhere else.

Fatal error: Class 'BotchaFormController?' not found in /Users/paul/Sites/clients/transition-network/transitionnetwork-org/www/sites/all/modules/contrib/moopapi/component/moopapi.component.inc on line 62

3) The remaining errors were of the type "database has gone away", here you will need to increase the max_allowed_pack from 1M to something higher.

cp Application/MAMP/tmp/mysql/mysql.cnf Application/MAMP/db/mysql/mysql.cnf

Open the file ..

Application/MAMP/db/mysql/mysql.cnf

.. and modify the line ..

max_allowed_packet = 1M

.. restart Mysql server

4)The last problem I had was the site was incredibly slow. The reason for this was that the server was making requests to my stage server (where I pulled the database from). To fix
this I did a find / replace on the mysql dump and re-imported the database.

gunzip TransitionNetwork?-admin-2014-02-13T18-09-45.mysql.gz
sed -i "" 's/pb-stage-20130212/www/' TransitionNetwork?-admin-2014-02-13T18-09-45.mysql
mysql -uroot -p transitionnetwork_org < TransitionNetwork?-admin-2014-02-13T18-09-45.mysql

It seems to be happier not finding things on the actual server. To be honest, I'm not completely clear on this at the moment :)

The website was then working on my local server as it is on my stage site, although it saying "Production" down the left hand side. I think that has something to with my personal settings.php file.

Missed things

Switch to PHP 5.2

Unable to create CTools CSS cache directory. Check the permissions on your files directory.

sites/www.transitionnetwork.org writable

ImageCache? Temp Directory sites/www.transitionnetwork.org/tmp needs to be writeable by the webserver.

Other comments

If a developer needs to reset the admin password on their local server this can be done with drush

drush uli

Changed 2 years ago by paul

comment:8 Changed 2 years ago by paul

  • Add Hours to Ticket changed from 0.0 to 0.25
  • Total Hours changed from 0.25 to 0.5

@Ed

Annesely now has all roles / permissions on the website.

comment:9 Changed 2 years ago by annesley

ok, will set error_reporting on and work my way through and take some notes :)

comment:10 Changed 2 years ago by paul

@Annesely

Let me know you hit a wall. Good luck.

comment:11 Changed 2 years ago by annesley

ok, got D6 working locally after much mucking about.
my laptop was maxing out on CPU and memory when i access the site and i was having to hard reboot all the time. this stopped when i symlinked in sites/www.transitionnetwork.org -> sites/default which i don't understand fully why...

any ideas? not important to understand though if you are busy: it's the old system :)

comment:12 Changed 2 years ago by annesley

  • Status changed from new to closed
  • Resolution set to fixed

comment:13 Changed 2 years ago by ed

might be worth looking through the tech wiki: https://tech.transitionnetwork.org/trac for links to various stuffs

Note: See TracTickets for help on using tickets.