text 安装服务器apache composer drupal

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 安装服务器apache composer drupal相关的知识,希望对你有一定的参考价值。


---- install apache and php extensions -----

    apt-get install  libapache2-mod-php

    apt-get install postgresql php-mbstring php-gd php-pgsql php-curl php-xml


install composer

    curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer



---- install postgresql   ----
 
    apt-get install postgresql

configure  ph_hba.conf.  change listen address to '*'

    listen_addresses = '*'		# what IP address(es) to listen on;


postgres.conf  - initial condifguration to enter postgres 

    host    all             all             0.0.0.0/0               trust


set postgres password

    passwd postgres
    

update postgres.conf to verify access

    host    all             all             0.0.0.0/0               md5


====================================================================================

---  install drupal console ---

    cd /tmp/
    curl https://drupalconsole.com/installer -L -o drupal.phar
    php drupal.phar
    mv drupal.phar /usr/local/bin/drupal
    chmod +x /usr/local/bin/drupal
    drupal self-update
    
====================================================================================    
---- install drush ---    


install unzip needed for drush installation
        
    apt-get install unzip    

install drush with composer (best)
        
    composer global require drush/drush:8.*
    
================================================================

site condifuration. multisite

edit site-enabled

    first entry as is. will responde to ip


    ServerAdmin webmaster@localhost
	DocumentRoot /var/www/my_site
    ServerName  my_site
    
    <Directory /var/www/d>
    	    AllowOverride All
            Options -Indexes +FollowSymLinks 
            Require all granted
    </Directory>


composer create-project drupal-composer/drupal-project:8.x-dev my_site --stability dev --no-interaction



    

以上是关于text 安装服务器apache composer drupal的主要内容,如果未能解决你的问题,请参考以下文章

composer-安装laravel

Windows下通过Composer安装Yii2

text 安装composer #composer

text 全局安装Composer

text Drupal 8模块的最小Composer安装

text Drupal 8模块的最小Composer安装