linux配置Call to undefined function mcrypt_decrypt()+大杂烩

  1. php5.4 ubuntu14.04

    1
    2
    $ sudo php5enmod mcrypt
    $ sudo service apache2 restart
  2. php7.0 ubuntu16.04

    1
    2
    3
    sudo apt php-mcrypt
    sudo phpenmod mcrypt
    sudo service apache2 restart
  3. ubuntu安装curl

    1
    sudo apt-get install php-curl

    更改php.ini 开启curl(/etc/php/7.0/apache2/php.ini)
    重启apache2

    1
    sudo service apache2 restart
  4. php gd库的安装

    1
    sudo apt install php gd

    更改php.ini 开启curl(/etc/php/7.0/apache2/php.ini)重启apache2

    1
    sudo service apache2 restart
  5. ubuntu 开启对.htaccess的支持

    1
    sudo a2enmod rewrite

    配置/etc/apache2/apache2.conf

    1
    2
    3
    4
    5
    6
    7
    AccessFileName .htaccess
    <Directory /var/www/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>
1
sudo service apache2 restart

6.mysql自增起始值设置

1
alter table users(表名) AUTO_INCREMENT=10000(起始值);

7.ssl https配置

http://www.linuxidc.com/Linux/2015-02/113588.htm