Topic: MailCarry Installation
Server Requirements
Linux Server with Apache, MySQL, and PHP
PHP >= 7.1.3
MySQL >= 5.7.8
PHP Extnesions
PDO
openssl
curl
mbstring
tokenizer
xml
imap
zip
Permissions
Setup the permission for the following file and folders
.env (0777)
\storage should be recursively (0777)
\bootstrap/cache should be recursively (0777)
Steps
Extract project zip and upload all the files on the root path of your domain using any ftp client.
Once all files uploaded successfully, then try to access the [YOUR-INSTALLED-URL]/install/
Eg: If https://mailcarry.com is the domian then https://mailcarry.com/install/
Fill the data as per your requirement
Click Install
May be need to do:
** Make sure mode_rewrite is enabled
Ubuntu
sudo a2enmod rewrite
sudo systemctl restart apache2
CentOS
The mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server, you can enable it by editing 00-base.conf file located in /etc/httpd/conf.modules.d/ directory.
sudo nano /etc/httpd/conf.modules.d/00-base.conf
Add the following line:
LoadModule rewrite_module modules/mod_rewrite.so
Save and close the file, then restart the httpd service:
sudo systemctl restart httpd
** By default, Apache does not allow the use of ‘.htaccess’ file so you will need to edit the configuration of each website’s virtual host file by adding the following code:
Enable .Htaccess File Ubuntu
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory
For instance, you can edit the default virtual hosts that ships with Apache using a nano editor by typing the command below:
sudo nano /etc/apache2/sites-available/000-default.conf
Then copy-paste the above text just before the ‘</VirtualHost>’ closing tag. Remember to save the file
Then, restart Apache for the changes to take effect:
sudo systemctl restart apache2
Enable .Htaccess File CentOS
Once the mod_rewrite module has been activated, you can set up your URL rewrites by creating an .htaccess file in your default document root directory. A .htaccess file allows us to modify our rewrite rules without accessing server configuration files. For this reason, .htaccess is critical to your web server. Before we begin, we need to allow Apache to read .htaccess files located under the /var/www/html directory.
You can do this by editing httpd.conf file:
sudo nano /etc/httpd/conf/httpd.conf
Find the section <directory /var/www/html> and change AllowOverride None to AllowOverride All
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Save and exit.
Now restart Apache to put the change into effect:
sudo systemctl restart httpd
Team MailCarry