Server Requirements
Last updated
Last updated
The best server requirements for an emart that uses MySQL as its database would depend on the specific needs of the project, such as the number of users, the size of the course content, and the number of concurrent connections to the database. However, a general guideline for server requirements for a Laravel-MySQL project would be:
Operating System: A Linux distribution such as Ubuntu 20.0 OR 22.10 is recommended, as Laravel is built on PHP, which is a popular language on Linux servers. You can also use Cloud Linux, Centos.
Web Server: Apache are the most common web servers used with Laravel.
PHP: The latest stable version of PHP 8.2.4 is recommended for optimal performance.
Database: MySQL 5.7.23+ OR Maria db 10.4+ is recommended.
Memory: A minimum of 4 GB of RAM is recommended, but more may be necessary depending on the size of the project and the number of concurrent users.
CPU: A minimum of 2 cores is recommended, but more may be necessary depending on the number of concurrent users and the complexity of the project.
Disk Space: A minimum of 20 GB of disk space is recommended, but more may be necessary depending on the size of the course content and the number of courses offered by the project.
Network: A minimum of 100 Mbps is recommended, but more may be necessary depending on the number of concurrent users and the amount of data being transferred.
It's worth noting that these are general guidelines and the specific server requirements may vary depending on the specific needs of the project. It's important to monitor the project performance and adjust the server resources accordingly.
Also make sure that Following php extensions installed on your server if not install then you can install it from WHM or using SSH or if you do not have access to this then you need to contact hosting provider with extension name.
If following settings are not correct head over to your server and edit the php.ini settings
If you have cPanel based hosting then on dashboard you should have menu call PHP INI editor or Multi PHP manager.
File and folder permissions for VPS
/bootstrap 777 /public 777 /storage 777 /public/images 777 /public/config.txt 777 .env 777
VPS stands for Virtual Private Server. It is a type of hosting service that allows individuals or organizations to have their own virtual server, which is a software-based version of a physical server.
A VPS provides a user with the ability to have their own dedicated resources such as CPU, RAM, and storage, but still share a physical server with other users. This allows for more flexibility, control and security than shared hosting, but at a lower cost than a dedicated server.
VPS hosting is ideal for websites or applications that have outgrown shared hosting but don't require the resources of a dedicated server. It allows users to install custom software, configure server settings and access the server remotely.
For VPS use Ubuntu 20.0 OR 22.10 OS, Also install Apache 2, PHP 8.2.4, MySQL 5.7.23+ , Phpmyadmin, Zip, Unzip and all above mentioned extensions.
in apache server root folder: /var/www/html OR /home/user/emart
If you having hosting like Digital Ocean then follow this link and method 2 https://devanswers.co/ubuntu-php-php-ini-configuration-file/ and after open php.ini file change the following : max_exeuction_time : 300 memory_limit : -1 or 1G post_max_size : 1G upload_max_size : 1G Save the php.ini file and headover to installation part.