<\/span><\/h2>\r\n\r\n\r\n\r\nFirst, we\u2019re going to need to log into our server using SSH. You can do that by entering this command:<\/p>\r\n\r\n\r\n\r\n
ssh root@IP_Address -p Port_Number<\/pre>\r\n\r\n\r\n\r\nRemember to replace the root<\/strong> user with your username if you are not using the root user. Change IP_Address<\/code> and Port_Number<\/code> according to your server\u2019s IP address and SSH port number.<\/p>\r\n\r\n\r\n\r\nOnce you are logged in, you should update all of your packages to their latest available versions.<\/p>\r\n\r\n\r\n\r\n
apt-get update -y\r\napt-get upgrade -y<\/pre>\r\n\r\n\r\n\r\nOnce all the packages are up-to-date, restart your server to apply the configuration changes.<\/p>\r\n\r\n\r\n\r\n
<\/span>Step 2: Install Nginx and PHP<\/span><\/h2>\r\n\r\n\r\n\r\nWonderCMS runs on a web server and is written in PHP so Nginx and PHP must be installed on your system. If not installed you can install them using the following command:<\/p>\r\n\r\n\r\n\r\n
apt-get install nginx php php-fpm php-mbstring php-curl php-zip git wget unzip git -y<\/pre>\r\n\r\n\r\n\r\nAfter installing all the packages, edit the php.ini<\/code> file and change some default settings:<\/p>\r\n\r\n\r\n\r\nnano \/etc\/php\/7.4\/fpm\/php.ini<\/pre>\r\n\r\n\r\n\r\nChange the following settings:<\/p>\r\n\r\n\r\n\r\n
file_uploads = On\r\nallow_url_fopen = On\r\nmemory_limit = 256M\r\npost_max_size 32M\r\nupload_max_filesize = 64M\r\nmax_execution_time = 300\r\ndate.timezone = \"America\/Chicago\"\r\n<\/pre>\r\n\r\n\r\n\r\nSave and close the file then restart the PHP-FPM service to apply the configuration changes.<\/p>\r\n\r\n\r\n\r\n
systemctl restart php7.4-fpm<\/pre>\r\n\r\n\r\n\r\n<\/span>Step 3: Install WonderCMS<\/span><\/h2>\r\n\r\n\r\n\r\nFirst, you will need to download the latest version of WonderCMS from the GitHub repository. You can use the git clone command to download the WonderCMS to the Nginx web root directory:<\/p>\r\n\r\n\r\n\r\n
git clone https:\/\/github.com\/robiso\/wondercms.git \/var\/www\/html\/wondercms<\/pre>\r\n\r\n\r\n\r\nOnce the download is completed, change the ownership of the wondercms directory to www-data:<\/p>\r\n\r\n\r\n\r\n
chown -R www-data:www-data \/var\/www\/html\/wondercms<\/pre>\r\n\r\n\r\n\r\n