Smartwiki is an online document management system based on laravel5.2 development.
Minimum required php5.6+mysql5.7. At the same time PHP needs to open the extension:
- MCrypt
- Gd
- Pdo
- Pdo_mysql
- Mbstring
If you need to use memcached, you will also need to install the memcached extension.
Take apache+php as an example.
First Step installation Apache2
/etc/apache2/apache2.conf
Added: AddType application/x-httpd-php. php. htm. html
Step two Install the PHP module
sudo apt-get install php5
Step three install MySQL
sudo apt-get install mysql-serversudo apt-get Install Mysql-client
Fourth Step other module installation
sudo apt-get install libapache2-mod-php5sudo apt-get install Libapache2-mod-auth-mysqlsudo apt-get Install Php5-mysqlsudo Apt-get Install PHP5-GD
Fifth Step test Apache is working properly
Open the browser and enter localhost to see if there is an IT works! page display. Directory is/var/www (default directory is www/html, change config file yourself)
Sixth step to create a virtual host
<virtualhost 127.0.0.1:80> # Your site Directory "/var/www/smartwiki/public" # your site's domain name ServerName wiki. Iminho. Me " Logs/dummy-host2.example.com-error.log " " Logs/dummy-host2.example.com-access.log " common # permission set Orderallow,deny allow from all </VirtualHost>
If your domain does not have DNS configured, you will need to add a resolution to your server on the c:/windows/system32/drivers/etc/hosts on the computer you need to access:
119.29.18.202 wiki.iminho.me
Create the file index.php in the directory that the Apache configuration virtual directory points to, as follows:
echo phpinfo ();
Direct access to http://wiki.iminho.me/index.php at this time indicates a successful configuration if it is accessible.
Installation of composer
Execute command Download composer:
Curl-ss Https://getcomposer.org/installer | Php
mv composer.phar /usr/local/bin/composer
If the command execution fails, execute the command:
Php-r "ReadFile (' Https://getcomposer.org/installer ');" | Php
mv composer.phar /usr/local/bin/composer
Then execute the command to add a domestic image:
Composer Config-g Repo.packagist composer https://packagist.phpcomposer.com
For more composer information, please click here http://docs.phpcomposer.com/00-intro.html
Installing Smartwiki
Pull the Smartwiki source from GitHub:
git clone https://github.com/lifei6671/SmartWiki.git
To change directory permissions:
Chmod-r +0777 Storage
In the root directory execution:
composer installphp Artisan clear-compiled php artisan optimize PHP artisan key : Generate
This configuration is complete. Directly opening the domain name configured in Apache will automatically jump to the installation page.
Smartwiki Development Log Environment configuration and system installation