How to automatically enable php extensions in Homestead on vagrant up

前端 未结 3 1191
难免孤独
难免孤独 2021-02-02 17:26

Im using Laravel 5.3 in Homestead with Vagrant 1.8.7 running on VirtualBox.

I have need to enable some php extensions.

I know that I could ssh into the box and

3条回答
  •  囚心锁ツ
    2021-02-02 18:13

    In case there's still a need for this :

    => https://guides.wp-bullet.com/install-apcu-object-cache-for-php7-for-wordpress-ubuntu-16-04/

    => Run the 3 first commands :

    sudo apt-get update
    sudo apt-get install php7.0-apcu -y
    sudo service php7.0-fpm restart
    

    Or simply add to after.sh:

    sudo apt-get install php7.x-apcu -y
    

提交回复
热议问题