Documents Product Categories WordPress on Ubuntu Server 22.04 with Support by cloudimg

WordPress on Ubuntu Server 22.04 with Support by cloudimg

Jun 28, 2024
Ubuntu Server 22.04 – WordPress Version: 1.0.0 Created by: cloudimg Table of Contents 1.) Overview......................................................................................................................1 2.) Access & Security..........................................................................................................2 3.) System Requirements....................................................................................................2 4.) Connecting to the Instance...........................................................................................2 5.) On Startup....................................................................................................................2 6.) Filesystem Configuration..............................................................................................3 7.) Server Components......................................................................................................3 8.) Scripts and Log Files.....................................................................................................3 9.) Using System Components...........................................................................................4 1.) Overview This document is provided as a user guide for the Ubuntu Server 22.04 – WordPress product offering on the Alibaba Cloud Marketplace. Please reach out to support@cloudimg.co.uk if any issues are encountered following this user guide for the chosen product offering.2.)Access & Security Please update the security group of the target instance to allow the below ports and protocols for access and connectivity. Protocol Type Port Description SSH TCP 22 SSH connectivity Custom TCP TCP 3306 MySQL Database Listener Port for remote access Custom TCP TCP 80 WordPress site 3.)System Requirements The minimum system requirements for the chosen product offering can be found below Minimum CPU Minimum RAM Required Disk Space 1 1 GB 20 GB 4.) Connecting to the Instance Once launched in the ECS Console, please connect to the instance via an SSH client using the root user with the key pair associated at launch. 5.) On Startup An OS package update script has been configured to run on boot to ensure the image is fully up to date at first use. You can disable this feature by removing the script from /stage/scripts/ and deleting the entry in crontab for the root user. Disable the OS update script from running on reboot rm -f /stage/scripts/initial_boot_update.sh crontab -e #DELETE THE BELOW LINE. SAVE AND EXIT THE FILE. @reboot /stage/scripts/initial_boot_update.sh6.) Filesystem Configuration Please see below for a screenshot of the server disk configuration and specific mount point mappings for software locations. Filesystem Size Used Avail Use% Mounted on tmpfs 97M 892K 96M 1% /run /dev/xvda3 38G 6.2G 30G 18% / tmpfs 484M 0 484M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/xvdf 9.8G 187M 9.1G 2% /var/lib/mysql /dev/xvda2 2.0G 186M 1.7G 11% /boot tmpfs 97M 4.0K 97M 1% /run/user/1002 /dev/xvdg 9.8G 68M 9.2G 1% /var/www/html Mount Point Description /boot Operating System Kernel files /var/lib/mysql MySQL data directory /var/www/html WordPress site root 7.) Server Components Please see below for a list of installed server components and their respective installation paths. The below versions are subject to change on initial boot based on the initial_boot_update.sh script finding new versions of the software in the systems package repositories. Component Version Software Home Aliyun CLI 3 /usr/local/bin/aliyun MySQL 8 8.0.29 /etc/mysql/my.cnf Apache 2.4.52 /etc/apache2 PHP 8.1.2 /etc/php/8.1/apache2/php.ini WordPress 6.0.1 /var/www/html/ 8.) Scripts and Log FilesThe below table provides a breakdown of any scripts & log files created to enhance the useability of the chosen offering. Script/Log Path Description Initial_boot_update.sh /stage/scripts Update the Operating System with the latest updates available. Initial_boot_update.log /stage/scripts Provides output for initial_boot_update.sh mysql_root_password.log /stage/scripts MySQL root database password file mysql_wordpress_password.log /stage/scripts Wordpress database password file 9.) Using System Components Instructions can be found below for using each component of the server build mentioned in section 7 of this user guide document. Aliyun CLI Run – Once logged into the server, you may check the options available for the use of Aliyun CLI via the below command. aliyun –-help MySQL 8 The MySQL Database service has been configured to start on boot, please use the below commands to start, stop and check the status of the service. #Check the MySQL service is running systemctl status mysql #Stop the MySQL service systemctl stop mysql #Start the MySQL service systemctl start mysqlYou can access the mysql database server as the root user by referring to the instructions in the /stage/scripts/mysql_root_password.log file. The root database user has been disabled for remote login as per best practise and therefore only a local login from the server command line will be allowed for the root user. mysql -u root -p #Enter the randomly generated password found in the /stage/scripts/mysql_root_password.log file Apache HTTP Server The Apache HTTP Server has been configured to start on boot, please use the below commands to start, stop and check the status of the service. #Check the HTTP Server is running systemctl status apache2 #Stop the HTTP Server systemctl stop apache2 #Start the HTTP Server systemctl start apache2 PHP You can check the PHP version running on the server by issuing the below command php -v WordPress The WordPress connectivity details have been preconfigured in the /var/www/html/wp- config.php file. For reference of the values used, review the /stage/scripts/mysql_wordpress_password.log file for the WordPress MySQL database credentials. Follow the below steps for accessing the WordPress Front End.The Apache HTTP server has been configured to start on server boot and therefore WordPress will be accessible from initial launch. Navigate to the below URL exchanging the values between <> to match that of your instance. Choose the preferred language Click Continue Enter the required values for your own use case. The values above are shown as examples only.NOTE: Make note of the password used in the above field as it will be needed to log into WordPress in the next step. Click Install WordPress Click Log In Enter the credentials created in the above step Click Log InOnce successfully logged in, WordPress is available for use.
To view the full page, please visit: WordPress on Ubuntu Server 22.04 with Support by cloudimg Product Userguide

WordPress on Ubuntu Server 22.04 with Support by cloudimg

This product has charges associated with it for the build, maintenance and support of the image.
Buy now