<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aymar Sossou on Medium]]></title>
        <description><![CDATA[Stories by Aymar Sossou on Medium]]></description>
        <link>https://medium.com/@saymar90?source=rss-a5639a6e3431------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zwMVd7q-qKBj3Z09w6OPgg.jpeg</url>
            <title>Stories by Aymar Sossou on Medium</title>
            <link>https://medium.com/@saymar90?source=rss-a5639a6e3431------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:33:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saymar90/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Streamlining Server Deployment: A Cost-Effective Approach with a VPS, CyberPanel and Monitoring…]]></title>
            <link>https://aws.plainenglish.io/streamlining-server-deployment-a-cost-effective-approach-with-a-vps-cyberpanel-and-monitoring-b2c489b026b9?source=rss-a5639a6e3431------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2c489b026b9</guid>
            <category><![CDATA[wordpress-development]]></category>
            <category><![CDATA[cyberpanel]]></category>
            <category><![CDATA[vps]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aymar Sossou]]></dc:creator>
            <pubDate>Thu, 14 Mar 2024 03:37:30 GMT</pubDate>
            <atom:updated>2024-03-26T08:49:30.063Z</atom:updated>
            <content:encoded><![CDATA[<h3>Streamlining Server Deployment: A Cost-Effective Approach with a VPS, CyberPanel and Monitoring Tools</h3><p>In this article, the aim is to identify the most cost-effective and efficient method for deploying a server with a control panel capable of visually creating websites and linking to a repository. Similar to my previous articles, the intent here is not to create tutorials but rather to serve as a personal reference for future actions.</p><p>For this purpose, a server is essential. I suggest either opting for the budget-friendly <a href="https://contabo.com/en/"><strong>Contabo</strong></a> at €54/year or, for a more professional approach, considering a server from <a href="https://aws.amazon.com/lightsail/pricing/"><strong>AWS Lightsail</strong></a> (US$10/month). While other services are available, I’ll focus on the AWS Lightsail plan for this article. Why AWS? Because although it’s more complex than Contabo, I’ll walk you through the intricate points of Contabo as well.</p><p>So let’s assume you’ve signed up for a Linux 22.04 LTS VPS and obtained a CyberPanel license. My recommendation leans towards the All Addons package (US$59/year). In this article, we’ll delve into configuring AWS Lightsail, given its nuanced configuration points. For instance, executing step 0 for AWS is necessary before acquiring a CyberPanel license.</p><h3>Step 0: Attach a Static IP — Only for AWS Lightsail</h3><p>First for AWS, you have to attach a Static IP to your server. For most other VPS services, the static IP is directly when you order to your server.</p><h3>Step 1: Update your installation</h3><p>Connect to your server though SSH, this can be specific to your service. Now execute the following command:</p><pre>sudo apt update &amp;&amp; sudo apt upgrade -y</pre><p>In this step for AWS, you will have a notice to use a new package and replace a modified one, please don’t replace the modified one as it contains modified configurations for your server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EU8OPH2qFK1KgQAM9v_WYQ.png" /><figcaption>AWS Package configuration</figcaption></figure><p>At this step, press tab and enter on Ok to continue.</p><h3>Step 2: Install CyberPanel</h3><p>The normal way to install <a href="https://cyberpanel.net/">CyberPanel</a> is to execute the following:</p><pre>sh &lt;(curl https://cyberpanel.net/install.sh || wget -O -  https://cyberpanel.net/install.sh)</pre><p>But in case you don’t have the root permission as for AWS case, execute the following:</p><pre>sudo su - -c &quot;sh &lt;(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)&quot;</pre><p>Follow the instructions in the terminal (see image below):</p><ol><li>Type 1 to choose Install CyberPanel</li><li>Type 1 to choose CyberPanel with OpenLiteSpeed.</li><li>Type Y for Full installation [Y/n]</li><li>Type N as we will install MySQL locally on the server (Default = No) Remote MySQL [y/N]: N</li><li>Press enter to continue with the default version. At this step you can choose a specific version of CyberPanel.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qre2jonZyRTGQkQgbmC5ng.png" /><figcaption>Step 1 — Installation of CyberPanel</figcaption></figure><p>The system will generate your password and you need to type the following (see image below):</p><ol><li>Y to to install Memcached process and its PHP extension</li><li>Y to install Redis process and its PHP extension?</li><li>Yes to set up a WatchDog (beta) for Web service and Database service</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxbdl2SAbqU9b8f7DFIMXQ.png" /><figcaption>Step 2 — Installation of CyberPanel</figcaption></figure><h3>Step 3: Access to CyberPanel</h3><p>For Contabo you just need to visit <strong>https://YourServerIP:8090</strong> with username and password provided in terminal after installation completed. You will have an alert about your certificate when you visit for the first time, trust it.</p><p>But for AWS Lightsail you need to open some port of your server as only 22 and 80 are open. You need to go into your AWS account, select the lightsail server -&gt; Manage -&gt; Networking and allow each port as on screenshot, you can duplicate rule for IPv6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eiQ7LRQ3So2_0I12NQ775Q.png" /></figure><h3>Step 4: Setup your first domain in CyberPanel</h3><h4><strong>1- Setup your packages https://YourServerIP/packages/listPackages</strong></h4><p>Create Packages which suit your need https://YourServerIP/packages/createPackage and edit existing ones.</p><h4><strong>2- Create website https://YourServerIP:8090/websites/</strong></h4><p>You can choose to create directly a WordPress website https://YourServerIP:8090/websites/createWordpress or just an empty website https://YourServerIP:8090/websites/createWebsite</p><h4><strong>3- Do what you want with your website.</strong></h4><h3>Step 5: Monitoring Tools</h3><p>I know I can use Monit alone for monitoring tools but I have setup 2 solutions :</p><ol><li>M/Monit — Pro-active Monitoring<br><a href="https://mmonit.com/">https://mmonit.com</a> Can monitor and manage distributed computer systems, conduct automatic maintenance and repair and execute meaningful causal actions in error situations.</li><li>HetrixTools — Free Blacklist Monitor HetrixTools <a href="https://www.hetrixtools.com/">https://www.hetrixtools.com</a> The free, simple, and effective solution for Uptime Monitoring and Blacklist Monitoring. Start monitoring for free with 15 Uptime Monitors &amp; 32 Blacklist Monitors. Drive Health Monitor.</li></ol><h3>In Plain English 🚀</h3><p><em>Thank you for being a part of the </em><a href="https://plainenglish.io/"><strong><em>In Plain English</em></strong></a><em> community! Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://twitter.com/inPlainEngHQ"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a><strong> | </strong><a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a></li><li>Visit our other platforms: <a href="https://stackademic.com/"><strong>Stackademic</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://plainenglish.io/"><strong>PlainEnglish.io</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2c489b026b9" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/streamlining-server-deployment-a-cost-effective-approach-with-a-vps-cyberpanel-and-monitoring-b2c489b026b9">Streamlining Server Deployment: A Cost-Effective Approach with a VPS, CyberPanel and Monitoring…</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Roots.io “Sage + Bedrock + Gutenberg”: WordPress on Steroids]]></title>
            <link>https://medium.com/@saymar90/roots-io-sage-bedrock-gutenberg-wordpress-on-steroids-553c9339f715?source=rss-a5639a6e3431------2</link>
            <guid isPermaLink="false">https://medium.com/p/553c9339f715</guid>
            <category><![CDATA[wordpress-themes]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Aymar Sossou]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 18:28:08 GMT</pubDate>
            <atom:updated>2024-01-09T18:05:59.788Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of WordPress development, particularly when integrating APIs, I’ve often encountered unconventional and inefficient methods of handling custom code. Recognizing this issue, I embarked on a quest to innovate and refine these practices. My journey began a few years ago when I discovered that Sage, a product of Roots.io, offered an optimal solution for constructing complex WordPress themes that heavily rely on external services. More recently, I’ve explored Bedrock, which has been instrumental in my shift towards creating Gutenberg-ready WordPress themes. Now, I’m embarking on a new venture that combines Sage, Bedrock, and Gutenberg. This initiative aims to elevate WordPress theme development to a new level of efficiency and sophistication.</p><h3>Step 1. Implementing Bedrock</h3><p><strong>— Harnessing the Power of an Advanced Deployment and Environment Management Engine</strong></p><h4>Step 1.1. Install composer</h4><p>To install composer, you can visit <a href="https://getcomposer.org/download/">https://getcomposer.org/download/</a> or use the instruction of the following lines.</p><pre>php -r &quot;copy(&#39;https://getcomposer.org/installer&#39;, &#39;composer-setup.php&#39;);&quot;<br>php -r &quot;if (hash_file(&#39;sha384&#39;, &#39;composer-setup.php&#39;) === &#39;e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02&#39;) { echo &#39;Installer verified&#39;; } else { echo &#39;Installer corrupt&#39;; unlink(&#39;composer-setup.php&#39;); } echo PHP_EOL;&quot;<br>php composer-setup.php<br>php -r &quot;unlink(&#39;composer-setup.php&#39;);&quot;</pre><p>Most likely, you want to put the composer.phar into a directory on your PATH, so you can simply call composer from any directory (<em>Global install</em>), using for example:</p><pre>sudo mv composer.phar /usr/local/bin/composer</pre><h4>Step 1.2. Install bedrock</h4><p>Create a new Bedrock project:</p><pre>composer create-project roots/bedrock</pre><p>Create a .env file with the following environment variables. Duplicate the .env.example et change the following lignes:</p><pre>DB_NAME=&#39;your_db_name&#39;<br>DB_USER=&#39;your_db_user&#39;<br>DB_PASSWORD=&#39;your_db_password&#39;<br><br># Optional database variables<br>DB_HOST=&#39;your_host_address&#39; #Mostly &#39;locahost&#39;<br>DB_PREFIX=&#39;your_db_prefixe_&#39; #Default is &#39;wp_&#39;<br><br>WP_ENV=&#39;development&#39; #Set to environment (development, staging, production)<br>WP_HOME=&#39;https://exemple.com/&#39; #Full URL to WordPress home<br>WP_SITEURL=&quot;${WP_HOME}/wp&quot; #Full URL to WordPress including subdirectory<br><br># Generate your keys here: https://roots.io/salts.html<br>AUTH_KEY=&#39;generateme&#39;<br>SECURE_AUTH_KEY=&#39;generateme&#39;<br>LOGGED_IN_KEY=&#39;generateme&#39;<br>NONCE_KEY=&#39;generateme&#39;<br>AUTH_SALT=&#39;generateme&#39;<br>SECURE_AUTH_SALT=&#39;generateme&#39;<br>LOGGED_IN_SALT=&#39;generateme&#39;<br>NONCE_SALT=&#39;generateme&#39;</pre><p>Set the document root on your webserver to Bedrock’s web folder: /path/to/site/web/<br>Access WordPress admin at <a href="https://example.com/wp/wp-admin/">https://example.com/wp/wp-admin/</a></p><h3>Step 2. Implementing Sage</h3><p>To add sage theme you need to navigate to web/app/themes/ folder as you would for a normal WordPress site.<br>Sage relies on Node.js-based tools to manage dependencies and create assets.</p><h4>2.1. Install Homebrew</h4><p>Just follow the terminal prompts and enter your password where required.</p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p>Now you should see the following message.</p><p><em>Run these two commands in your terminal to add Homebrew to your PATH:</em></p><pre>(echo; echo &#39;eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;&#39;) &gt;&gt; /Users/USERNAME/.zprofile<br>eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;</pre><p>Remplace USERNAME with your account username.</p><p>Execute the following:</p><pre>export PATH=&quot;/opt/homebrew/bin:$PATH&quot;<br>echo &#39;export PATH=&quot;/opt/homebrew/bin:$PATH&quot;&#39; &gt;&gt; $HOME/.zshrc</pre><h4>2.2. Install Node.js via Homebrew</h4><p>To install the latest Node.js LTS release visit <a href="https://nodejs.org/en/download">https://nodejs.org/en/download</a> and or execute:</p><pre>brew install node</pre><h4>2.3. Globally install Yarn</h4><pre>npm install --global yarn</pre><h4>2.4. Installing Sage with Composer</h4><p>Install Sage using Composer from your WordPress themes directory (replace your-theme-namebelow with the name of your theme):</p><pre># From your WordPress themes directory, run:<br>$ composer create-project roots/sage your-theme-name</pre><p>To install the latest development version of Sage, add dev-main to the end of the command:</p><pre>$ composer create-project roots/sage your-theme-name dev-main</pre><h4>2.5. Installing Acorn with Composer</h4><p>We recommend that you install Acorn on your WordPress install managed by Composer, such as with <a href="https://roots.io/bedrock/">Bedrock</a>:</p><pre>$ composer require roots/acorn</pre><p>We also recommend adding Acorn’s postAutoloadDump function to Composer&#39;s post-autoload-dump event in the scripts section of composer.json:</p><pre>&quot;scripts&quot;: {<br>  //...<br>  &quot;post-autoload-dump&quot;: [<br>    &quot;Roots\\Acorn\\ComposerScripts::postAutoloadDump&quot;<br>  ]<br>}</pre><p>If you don’t use Bedrock and you are using a Sage-based theme, you can install Acorn with Composer from your theme directory.</p><h4>2.6. Replacing Tailwind CSS with Bootstrap</h4><p>Navigate to your-theme-name folder and execute the following command:</p><pre>yarn remove @roots/bud-tailwindcss</pre><p><strong>2.6.1. Remove Tailwind from theme CSS: </strong>Navigate toresources/styles/app.css and <strong>delete</strong> the following lines:</p><pre>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;</pre><p><strong>2.6.2. Delete the Tailwind config file: </strong>Delete tailwind.config.js from your theme.</p><p><strong>2.6.3. Remove the Tailwind </strong><strong>theme.json generator from the Bud config: </strong>Open bud.config.js from your theme and remove the following lines:</p><pre>-      .useTailwindColors()<br>-      .useTailwindFontFamily()<br>-      .useTailwindFontSize()</pre><p><strong>2.6.4. Remove Tailwind types from </strong><strong>jsconfig.json:</strong> Remove the following ligne.</p><pre>-      &quot;@roots/bud-tailwindcss&quot;,</pre><h4>2.7. Setting up Support for Sass</h4><p><strong>2.7.1 Add the </strong><strong>@roots/bud-sass extension:</strong></p><pre>yarn add @roots/bud-sass --dev</pre><p><strong>Note:</strong> Verify that all Bud packages and the @roots/sage package versions are the same in your package.json to prevent build errors.</p><p><strong>2.7.2 Rename </strong><strong>app.css to </strong><strong>app.scss and rename </strong><strong>editor.cssto </strong><strong>editor.scss</strong><br>In the resources/styles directory.</p><pre>app.css -&gt; app.scss<br>editor.css -&gt; editor.scss</pre><p><strong>Note:</strong> <a href="https://bud.js.org/extensions/bud-sass#url-imports">url() imports in Sass behave differently than CSS</a>. We recommend prefixing aliases with a tilde (eg. url(https://medium.com/&#39;~@images/...&#39;)). We also recommend adding the fonts directory to <a href="https://bud.js.org/docs/bud.assets">bud.assets()</a>.</p><h4>2.8. Configure Stylelint (optional)</h4><p><strong>2.8.1. Intall Stylelint</strong></p><p>Install @roots/bud-stylelint:</p><pre>yarn add @roots/bud-stylelint --dev</pre><p>Create a Stylelint config file at .stylelintrc.cjs:</p><pre>module.exports = {<br>  extends: [&#39;@roots/bud-sass/config/stylelint&#39;],<br>  rules: {<br>    &#39;import-notation&#39;: null,<br>    &#39;no-empty-source&#39;: null,<br>  },<br>};</pre><p><strong>2.8.2. Maintaining Stylelint config</strong></p><p>When bud.js updates you will automatically be upgraded to the latest versions of stylelint-config-standard and stylelint-config-recommended-scss. This may cause issues if you are now breaking a newly defined or changed rule. You will either want to make changes to your application or add an override to module.exports.rules.</p><p><strong>This is normal</strong>. The preset is just supposed to be a base for your own config. There is nothing wrong with overriding rules to suit your preferences or your application’s needs.</p><p>You could also:</p><ul><li>Not use the @roots/bud-sass/config/stylelint preset and maintain your own config entirely. This will give you maximum control over when updates are applied.</li><li>Make an issue with stylelint-config-standard or stylelint-config-recommended-scss if you disagree with the change.</li></ul><p>What you shouldn’t do:</p><ul><li>Make an issue in roots/bud (We want to override upstream configurations as little as possible so as to provide a predictable starting point for a large number of diverse projects).</li></ul><h4>2.9. Install Bootstrap</h4><p><strong>2.9.1. Install Bootstrap</strong></p><p>Add Bootstrap as a dependency:</p><pre>yarn add bootstrap</pre><p>Add Popper as a dependency:</p><pre>yarn add @popperjs/core</pre><p><strong>2.9.2. Import Bootstrap’s Javascript</strong></p><p>Open resources/scripts/app.js and add:</p><pre>// Import Bootstrap<br>import &#39;bootstrap&#39;;</pre><p><strong>2.9.3. Import Bootstrap styles</strong></p><p>Open your theme’s resources/styles/app.scss file add the following lines:</p><pre>@import &#39;bootstrap/scss/bootstrap&#39;;</pre><p><strong>Note:</strong> You may wish to import only the parts of Bootstrap you plan to use in your theme. You can learn more about importing just the parts you need <a href="https://getbootstrap.com/docs/5.1/customize/sass/#importing">here</a>.</p><h3>Sources:</h3><ol><li><a href="https://blog.devops.dev/how-to-install-apache-mysql-phpmyadmin-server-on-macos-ventura-c65e68387776">How to Install Apache, MySQL, PHPMyAdmin server on MacOS Sonoma on MacBook with Apple Chip (Apple Silicon)</a></li><li><a href="https://roots.io/acorn/docs/installation/">Acorn</a></li><li><a href="https://roots.io/sage/docs/replacing-tailwind-with-bootstrap/">Replacing Tailwind CSS with Bootstrap</a></li><li><a href="https://stylelint.io/user-guide/get-started">Stylelint</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=553c9339f715" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install WordPress with Nginx on an Amazon AWS EC2]]></title>
            <link>https://medium.com/@saymar90/how-to-install-wordpress-with-nginx-on-an-amazon-aws-ec2-2db97a4c820b?source=rss-a5639a6e3431------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db97a4c820b</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[wordpress]]></category>
            <dc:creator><![CDATA[Aymar Sossou]]></dc:creator>
            <pubDate>Sun, 16 Jul 2023 23:57:00 GMT</pubDate>
            <atom:updated>2023-07-18T18:54:12.551Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Whenever I have to do this I find myself doing a lot of research to find processes that work, I will try to keep perfecting this article but in the meantime here we go…</em></strong></p><p>This guide assumes that you have already set up an EC2 instance running an Ubuntu operating system.</p><h3>1. Update Your Server</h3><p>Before installing any software, it’s a good idea to update your server’s package lists. You can do this by logging into your server and running the following command:</p><pre>sudo apt-get update</pre><h3>2. Install Nginx</h3><p>Nginx can be installed with the following command:</p><pre>sudo apt-get install nginx -y</pre><h3>3. Install MySQL</h3><p>WordPress uses MySQL to manage its data. You can install MySQL with the following command:</p><pre>sudo apt-get install mysql-server -y</pre><p>During the installation process, you’ll be asked to set a password for the MySQL root user.</p><h3>4. Install PHP</h3><p>WordPress is a PHP application, so you’ll need to install PHP and the PHP-FPM service, which Nginx uses to handle PHP requests:</p><pre>sudo apt-get install php-fpm php-mysql -y</pre><h3>5. Configure Nginx</h3><p>Next, you’ll need to configure Nginx to work with PHP. Open the default Nginx configuration file using a text editor like nano:</p><pre>sudo nano /etc/nginx/sites-available/default</pre><p>In the server block, look for the index line and add index.php to the list of files. Also, look for the server_name directive and replace its value with your server&#39;s public IP address or domain name.</p><p>Inside the location / block, try to find the try_files directive and replace it with the following line:</p><pre>try_files $uri $uri/ /index.php$is_args$args;</pre><p>Then, add the following location ~ \.php$ block inside the server block:</p><pre>location ~ \.php$ {<br>    include snippets/fastcgi-php.conf;<br>    fastcgi_pass unix:/run/php/php7.4-fpm.sock;<br>}</pre><p>Make sure to replace “7.4” with your actual PHP version.</p><p>Save and close the file. Test Nginx configuration and if everything is OK, restart the Nginx service:</p><pre>sudo nginx -t<br>sudo systemctl restart nginx</pre><h3>6. Create a MySQL Database and User for WordPress</h3><p>Log in to MySQL:</p><pre>sudo mysql -u root -p</pre><p>Create a database for WordPress:</p><pre>CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;</pre><p>Create a new MySQL user and give it access to your WordPress database:</p><pre>GRANT ALL ON wordpress.* TO &#39;wordpressuser&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;password&#39;;</pre><p>Make sure to replace ‘password’ with a strong, secure password.</p><p>Then, flush the privileges and exit out of MySQL:</p><pre>FLUSH PRIVILEGES;<br>EXIT;</pre><h3>7. Install WordPress</h3><p>Now, you can download and install WordPress. First, navigate to the /tmp directory and download the compressed WordPress file:</p><pre>cd /tmp<br>curl -LO https://wordpress.org/latest.tar.gz</pre><p>Unzip the file and move it into your Nginx document root:</p><pre>tar xzvf latest.tar.gz<br>sudo cp -a /tmp/wordpress/. /var/www/html</pre><h3>8. Configure WordPress</h3><p>WordPress needs access to the wp-config.php configuration file. This file doesn’t exist by default, but you can create it by copying from a sample file:</p><pre>cd /var/www/html<br>sudo cp wp-config-sample.php wp-config.php</pre><p>Open the new file in a text editor:</p><pre>sudo nano wp-config.php</pre><p>Find the section that contains the database connection settings and replace the values for DB_NAME, DB_USER, and DB_PASSWORD with the information for the database you created:</p><pre>define(&#39;DB_NAME&#39;, &#39;wordpress&#39;);<br>define(&#39;DB_USER&#39;, &#39;wordpressuser&#39;);<br>define(&#39;DB_PASSWORD&#39;, &#39;password&#39;);</pre><p>Again, replace ‘password’ with the password you created for your MySQL user.</p><p>Save and close the file.</p><h3>9. Set Up WordPress</h3><p>Finally, complete the installation through the web interface. In a web browser, navigate to your server’s IP address or domain name:</p><p><a href="http://server_domain_or_ip/"><strong>http://server_domain_or_IP</strong></a></p><p>You should see the WordPress setup page. Follow the prompts to select your language, choose a name for your site, and set up an admin user.</p><p>That’s it! You now have a WordPress site running on your AWS EC2 instance with Nginx. Please note that you might need to configure your AWS security groups to allow HTTP and HTTPS traffic to your instance.</p><h3>10. Allow uploads of images and attachments</h3><p>You’re facing issues with uploading images or attachments, it might be necessary to modify the permissions for the ‘wp-content’ folder and its files. This will also ensure appropriate security against unsanctioned access. Here’s how to go about it:</p><pre>chmod -R 755 wp-content<br>chmod -R 644 wp-content/*</pre><p><a href="https://johndecember.com/unix/ref/chmod.html">Here is a good article about file permissions here</a>.</p><h3>11. Allow upload of plugins</h3><p>This step is optional. You might be experiencing issues with uploading plugins via /wp-admin/ due to a password requirement. If you wish to disable this requirement, you can proceed as follows:</p><pre>define(&#39;FS_METHOD&#39;, &#39;direct&#39;);</pre><p><strong><em>Source:</em></strong><em> Multiple sources and my mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db97a4c820b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Apache, MySQL, PHPMyAdmin server on macOS Tahoe on MacBook with Apple Chip (Apple…]]></title>
            <link>https://blog.devops.dev/how-to-install-apache-mysql-phpmyadmin-server-on-macos-ventura-c65e68387776?source=rss-a5639a6e3431------2</link>
            <guid isPermaLink="false">https://medium.com/p/c65e68387776</guid>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[phpmyadmin]]></category>
            <category><![CDATA[mysql]]></category>
            <dc:creator><![CDATA[Aymar Sossou]]></dc:creator>
            <pubDate>Mon, 19 Dec 2022 01:24:44 GMT</pubDate>
            <atom:updated>2025-10-01T09:24:17.286Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How to Install Apache, MySQL, PHPMyAdmin server on macOS Tahoe on MacBook with Apple Chip (Apple Silicon)</strong></h3><p><em>This article is an update of </em><strong><em>How to Install Apache, MySQL, PHPMyAdmin server on macOS Sequoia, How to Install Apache, MySQL, PHPMyAdmin server on macOS Sonoma</em></strong> and <strong><em>How to Install Apache, MySQL, PHPMyAdmin server on macOS Ventura</em></strong><em>.</em></p><h3><strong>Step 0. Install XCode Command Line Tools</strong></h3><p>Open the console and execute:</p><pre>xcode-select --install</pre><h3><strong>Step 1. Install Homebrew</strong></h3><p>Just follow the terminal prompts and enter your password where required.</p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p>Now you should see the following message.</p><blockquote>Run these two commands in your terminal to add Homebrew to your PATH: (echo; echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’) &gt;&gt; /Users/USERNAME/.zprofile<br> eval “$(/opt/homebrew/bin/brew shellenv)”</blockquote><p>Execute the following:</p><pre>export PATH=&quot;/opt/homebrew/bin:$PATH&quot;<br>echo &#39;export PATH=&quot;/opt/homebrew/bin:$PATH&quot;&#39; &gt;&gt; $HOME/.zshrc</pre><h3><strong>Step 2. Install Apache via Homebrew</strong></h3><pre>brew install httpd</pre><p>To restart httpd after an upgrade:</p><pre>brew services restart httpd</pre><p>Or, if you don’t want/need a background service you can just run:</p><pre>/opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND</pre><p>Navigate to the httpd folder</p><pre>cd /opt/homebrew/etc/httpd/</pre><p>Make a backup of httpd folder (optional)</p><pre>sudo cp httpd.conf httpd.conf.bak</pre><p>Modify the httpd.conf file.</p><p>Open the file with:</p><pre>sudo nano httpd.conf</pre><h4><strong>2.1. Enable the Modules and Configuration</strong></h4><p>Uncomment the following lines (Use <strong>control + w</strong> to search, and look for the below modules name and make sure to uncomment them =&gt; it means make sure that the # in front of each line is removed.):</p><pre>LoadModule authn_core_module lib/httpd/modules/mod_authn_core.so<br>LoadModule authz_host_module lib/httpd/modules/mod_authz_host.so<br>LoadModule userdir_module lib/httpd/modules/mod_userdir.so<br>LoadModule include_module lib/httpd/modules/mod_include.so<br>LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so<br>Include /opt/homebrew/etc/httpd/extra/httpd-userdir.conf</pre><h4><strong>2.2. Modify the DocumentRoot</strong></h4><p>Search for DocumentRoot (Use <strong>control + w</strong> to search)…</p><pre>DocumentRoot &quot;/opt/homebrew/var/www&quot;<br>&lt;Directory &quot;/opt/homebrew/var/www&quot;&gt;</pre><p>…and replace by…</p><pre>DocumentRoot &quot;/Users/USERNAME/Sites/&quot;<br>&lt;Directory &quot;/Users/USERNAME/Sites/&quot;&gt;</pre><p><strong>USERNAME</strong> is your <strong>username</strong> (the user account folder name).</p><p>Then you need to modify the options as below:</p><pre>Options Indexes FollowSymLinks Multiviews<br>MultiviewsMatch Any<br>AllowOverride All</pre><h4><strong>2.3. Modify the Listening Port</strong></h4><p>By default, it will listen to port 8080. If you want to listen to port 80, modify the <strong>Listen 8080</strong> to <strong>Listen 80</strong>.<br>Use <strong>Control + w</strong> and search for <strong>Listen 8080</strong> then replace with <strong>Listen 80<br></strong>Visit <a href="http://localhost/">http://localhost</a> or <a href="http://localhost:8080/">http://localhost:8080/</a></p><h4>2.5. httpd error like</h4><p>In case you get a httpd error like the following:</p><pre>httpd error 256 root ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist</pre><p>Fix it by going back to your console and run:</p><pre>sudo apachectl stop<br>brew services restart httpd</pre><p><strong>2.5. Create Sites folder under your Username</strong></p><p>Since we defined the <strong>DocumentRoot</strong> to be <strong>/</strong><strong>Users/USERNAME/Sites/</strong>. We need to create this “<strong>Sites</strong>” folder under the user “<strong>USERNAME</strong>”.<br>Open Finder and navigate to the user’s folder and create New Folder and name it “<strong>Sites</strong>”.</p><h3><strong>Step 3. Install PHP via Homebrew</strong></h3><p>In terminal <strong>brew install PHP</strong></p><h4><strong>3.1. Modify the httpd.conf to enable the PHP on Apache</strong></h4><p>In Terminal:</p><pre>cd /opt/homebrew/etc/httpd/<br>sudo nano httpd.conf</pre><p>To enable PHP in Apache add the following to <strong>httpd.conf</strong> and <strong>restart Apache</strong>:</p><pre>LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so<br><br>&lt;FilesMatch \.php$&gt;<br>    SetHandler application/x-httpd-php<br>&lt;/FilesMatch&gt;</pre><p>Finally, check <strong>DirectoryIndex</strong> includes <strong>index.php</strong>. Search (control + w)<br><strong>DirectoryIndex index.php index.html</strong></p><p>The php.ini and php-fpm.ini file can be found in: <strong>/opt/homebrew/etc/php/8.2/</strong></p><p>To restart php after an upgrade: <strong>brew services restart php</strong></p><p><strong>3.2. Create phpinfo.php file</strong></p><p>phpinfo.php file will be used to check if the PHP is working or not.</p><p>In Terminal:</p><pre>cd ~/Sites<br>sudo nano phpinfo.php</pre><p>Once the nano application is opened, add the below line.</p><pre>&lt;?php phpinfo(); ?&gt;</pre><p>then press <strong>control + o</strong> to save then <strong>control + x</strong> to exit nano app.</p><h4><strong>3.3. Starting Apache server</strong></h4><p>In Terminal:</p><pre>brew services restart httpd</pre><p>To check if the Apache service running or not:</p><pre>brew services list</pre><p>Go to web browser and visit <strong>localhost</strong>.</p><h3><strong>Step 4. Install MySQL Server</strong></h3><p>Visit <a href="https://dev.mysql.com/downloads/mysql/"><strong>https://dev.mysql.com/downloads/mysql/</strong></a><strong><br></strong>Select the <strong>ARM 64-bit DMG Archive</strong> and download the installer.</p><h3><strong>Step 5. Install PHPMyAdmin</strong></h3><p>Visit <a href="https://www.phpmyadmin.net/downloads/"><strong>https://www.phpmyadmin.net/downloads/</strong></a> to download installer.</p><h3>Sources:</h3><ol><li><a href="https://tech-cookbook.com/2021/10/25/how-to-setup-mamp-macos-apache-mysql-php-on-macos-12-monterey-2021/">How to Setup MAMP (MacOS, Apache, MySQL, PHP) Local Server on macOS 12 Monterey M1 Mac (2021)</a></li><li><a href="https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions">macOS 12.0 Monterey Apache Setup: Multiple PHP Versions</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c65e68387776" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/how-to-install-apache-mysql-phpmyadmin-server-on-macos-ventura-c65e68387776">How to Install Apache, MySQL, PHPMyAdmin server on macOS Tahoe on MacBook with Apple Chip (Apple…</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>