Ubuntu

elgg install

Naan 2016. 3. 14. 16:42
반응형

ubuntu 기준..


php 버전을 따진다 5.6 버전으로 설치를 하자


# add-apt-repository ppa:ondrej/php5-5.6

# apt-get update

# apt-get upgrade

# apt-get install php5 php-gd

# apt-get install apache2

# apt-get install mysql-server


https://elgg.org/download.php

위에서 파일 다운로드


# unzip elgg-2.0.3.zip

# mv elgg-2.0.3 /var/www/html/elgg

chown -R www-data:www-data elgg/


DB 생성

# mysql -u root -p

CREATE DATABASE elgg;

CREATE USER 'elgguser'@'localhost' IDENTIFIED BY 'PASSWORD';

GRANT ALL PRIVILEGES ON `elgg`.* TO 'elgguser'@'localhost';

FLUSH PRIVILEGES;


http://localhost/elgg/ 

접속



















web server 에 에러 뜬다면

# a2enmod rewrite

# service apache2 restart








Fatal error: Class 'DOMDocument' not found in /var/www/html/elgg/vendor/elgg/elgg/engine/classes/ElggAutoP.php on line 89


php-xml 누락되어서 그렇다  php-xml 설치하자




Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Di/ServiceProvider.php on line 99


php 버전이 낮아서 그렇다 버전을 올려서 설치


Your server does not support automatic testing of the rewrite rules and your browser does not support checking via JavaScript. You can continue the installation, but you may experience problems with your site. You can manually test the rewrite rules by clicking this link: test. You will see the word success if the rules are working.

반응형