I want to duplicate a website on a new server, i followed the instructions on the wiki, but the website is displayed in a wrong way. When i click on a group link, i don't see the standard skin but the informations are displayed like this. What could be the problem?Thank you
guid: 2211
type: group
subtype: 0
owner_guid: 4
container_guid: 4
time_created: 1262961616
name: BaI
description:
forum_enable: yes
blog_enable: yes
files_enable: yes
membership: 0
website:
briefdescription:
group_acl: 44
event_calendar_enable: yes
pages_enable: yes
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
ahhh I not why - but all have solution
The problem is the WIKI IN: http://docs.elgg.org/wiki/Duplicate_Installation
Is for any old version and not work with the new versions
Follow the instructions and stop in the point Database Instructions
I give you the new instructions:
1 .- Copy the installation and databases
2.- Follow the MYSQL sintax how I post here
Database Entries
We must now change 4 entries in the database. This is easily accomplished with 4 simple SQL commands:
Change the installation path
UPDATE `elgg_datalists` SET `value` = "/var/www/elgg_test/" WHERE `name` = "path";
Change the data directory
UPDATE `elgg_datalists` SET `value` = "/var/data/elgg_test/" WHERE `name` = "dataroot";
Change the site URL
UPDATE `elgg_sites_entity` SET `url` = "http://test.myelgg.org/";
Change the filestore data directory
(Only change the first path here!!)
UPDATE elgg_metastrings set string = '/var/data/elgg_test/' WHERE id = (SELECT value_id from elgg_metadata where name_id = (SELECT * FROM (SELECT id FROM elgg_metastrings WHERE string = 'filestore::dir_root') as ms2) LIMIT 1) ;
Change the paths for the paths of your server in the mysql script example:
'/var/data/elgg_test/' to '/var/data/httpdocs/'
now You not need to copy the "data" directory you can make a new one if you like
afther make sure you make chmod +x data and chmod 777 data
and make sure have your apache owner . That you make with the command: chown
example: chown www-data:www-data data
Check .htaccess If you have made changes to .htaccess that modify any paths, make sure you update them in the test installation.
Update Webserver Config
For this example, you must edit the Apache config to enable a subdomain with a document root of /var/www/elgg_test/. If you plan to install into a subdirectory of your document root, this step is unnecessary.
Run upgrade.php
To regenerate cached data, make sure to run http://test.myelgg.org/upgrade.php
Now you go to see the SERVER AND TEMPLATES WORK FINE. If not please contact again.
The problem is in the wiki say round in all mysql script Where is UPDATE `elggdatalists`need to be change for UPDATE `elgg_datalists`
Actually my tables are named 'elggdatalists' not 'elgg_datalists' so I have changed all the paths on the database. I don't know where to check else
oke if you already change all the paths and you are sure the paths is correct
The only problem for you not see the correct template is in the directory data
Try to recreate the directory data
By example if you data directory is in /var/www/httpdocs/data/
change for /var/www/httpdocs/data/new/
You not need to make the directory "new" inside of Data Elgg go to make automatic
Now update your database path "data" with that new path this means all teh MYSQL changes
Run upgrade.php To regenerate cached data, make sure to run http://test.myelgg.org/upgrade.php
now if you not see your template working again
Go to your directory data you make before example in my example is
/var/www/httpdocs/data/
if you not see a diretory call "new" like in my example your problem is in a problem of USER in Apache
Correct the USER and try again
The folder "new" is created when i run upgrade.php but the template is still not displayed properly :s
ok can you go to the directory before "data" and make the command
ls -l
Please post the print here
drwx------ 3 nobody 999 4096 sep 11 2009 a
drwxr-xr-x 7 root root 4096 avr 30 17:56 A
drwx------ 4 nobody 999 4096 sep 30 2009 e
drwxr-xr-x 4 root root 4096 avr 30 17:56 E
drwx------ 3 nobody 999 4096 oct 3 2009 f
drwxr-xr-x 3 root root 4096 sep 14 2009 F
drwxr-xr-x 3 root root 4096 sep 11 2009 G
drwxr-xr-x 3 root root 4096 nov 5 2009 h
drwxr-xr-x 3 root root 4096 sep 11 2009 I
drwxr-xr-x 3 root root 4096 sep 14 2009 L
drwx------ 3 nobody 999 4096 nov 13 2009 m
drwxr-xr-x 5 root root 4096 avr 30 17:56 M
drwxr-xr-x 4 root root 4096 avr 30 17:56 r
drwxr-xr-x 5 root root 4096 jan 8 14:42 S
drwxr-xr-x 3 root root 4096 sep 11 2009 v
-rw-r--r-- 1 apache apache 118 mai 27 15:01 view_paths
-rw-rw-r-- 1 nobody 999 24591 mai 25 11:23 view_paths~
drwxr-xr-x 2 root root 4096 mai 25 11:23 views_simplecache
drwxr-xr-x 4 root root 4096 sep 10 2009 Y
Hello,
Which version of elgg are you using? Did you try to delete the cache? (Maybe disabling the use cache option?).
Regards.
I'm using elgg 1.6 I tried o delete the the view_patsh and views_simplecache as indicated on the tuto, that's all I didn't delete anything else. I have already tried to duplicate the same website on an other server and it's working perfectly. Could it be a configuration problem?
MY friends try that
Go to the directory before data and make that in root:
If you use Ubuntu make first: sudo su and put your password
After that in any linux make chown -R apache:apache data
And after execute the file upgrade.php
Done, but it's not working. the groups are still note displayed properly. :s
- Previous
- 1
- 2
- Next
You must log in to post replies.