<?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 Hira Asmat on Medium]]></title>
        <description><![CDATA[Stories by Hira Asmat on Medium]]></description>
        <link>https://medium.com/@hira-asmat?source=rss-76337f578b5f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZjcSloxxK3_K8fe_Lg1ufA.jpeg</url>
            <title>Stories by Hira Asmat on Medium</title>
            <link>https://medium.com/@hira-asmat?source=rss-76337f578b5f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:52:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hira-asmat/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[CentOS LAMP Server Configuration: Linux, Apache, MySQL, PHP]]></title>
            <link>https://hira-asmat.medium.com/centos-lamp-server-configuration-linux-apache-mysql-php-b26acee6be11?source=rss-76337f578b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b26acee6be11</guid>
            <category><![CDATA[centos]]></category>
            <category><![CDATA[lamp-server]]></category>
            <category><![CDATA[centos-stream]]></category>
            <category><![CDATA[centos-configuation]]></category>
            <dc:creator><![CDATA[Hira Asmat]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 05:43:06 GMT</pubDate>
            <atom:updated>2025-07-30T05:43:06.691Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll walk you through manually setting up a LAMP stack on CentOS. We’ll install and configure Linux, Apache, MySQL, and PHP step by step to get a functional web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyKDFlHpuAzv9Qq3zh3BHQ.png" /></figure><p>At Tradesy, we rely heavily on Ansible to automate the configuration of our servers. While there are many open-source tools available for building LAMP environments, manually setting up the stack can be a valuable learning experience. By performing the configuration yourself, you will gain a deeper understanding of what happens behind the scenes of automated LAMP setup tools. This guide will cover how to manually set up a standalone LAMP server running on CentOS 7 (x86_64). It will also include steps to harden the server against common security threats, install additional useful packages, and configure SSL certificates.</p><h3>Prerequisites</h3><ul><li>You should be comfortable navigating a Linux operating system.</li><li>Familiarity with the <strong>vi</strong> text editor is required, including basic commands to open, insert, and save files.</li><li>You should have a basic understanding of what a LAMP stack is.</li></ul><h3>Load CentOS ISO in VMware</h3><ol><li>Open <strong>VMware Workstation / Player</strong>.</li><li>Click <strong>Create a New Virtual Machine</strong>.</li><li>Select <strong>Installer disc image (ISO)</strong> and browse your <strong>CentOS ISO</strong>.</li><li>Choose <strong>Linux</strong> as the OS type and <strong>CentOS 7/8 (x86_64)</strong> (based on your ISO).</li><li>Assign <strong>1 GB RAM</strong> and at least <strong>10 GB disk space</strong>. let us give 50 GB. Set the disk as <strong>single file</strong> for better performance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*WWPiM1hJFd7tIqM_y-fwnQ.png" /></figure><p>7. next-&gt;Finish and start the VM.</p><h3>Install CentOS</h3><ol><li>Boot the VM, select <strong>Install CentOS</strong>.</li><li>Choose language (English).</li><li><strong>Installation Destination</strong> → Manual partitioning:</li></ol><ul><li>/ (root) → 4 GB</li><li>/var → 2 GB (logs and variable data)</li><li>/opt → 1 GB (optional apps)</li><li>swap → 1 GB (virtual memory)</li></ul><ol><li>Set hostname (e.g., centos-server) and network to <strong>ON</strong>.</li><li>Set <strong>root password</strong> and create at least 4 users.</li><li>Complete installation and reboot.</li><li>And then after reboot it will give terminal wich requires user for root and password.</li></ol><h3>Update System with YUM</h3><pre>sudo yum update -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuNouuaAZaZo5d0FrgSGCA.png" /></figure><h3>Configure Network, IP, and DNS</h3><p>Open the network config:</p><pre>sudo nmtui</pre><p>Go to <strong>Edit a connection</strong> → set IPv4 to automatic &amp; IPv6 to ignore, and then press OK and Quit the Network Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*SSzDSdhev3BG1fQWg483KA.png" /></figure><p>Restart network</p><pre>sudo systemctl restart NetworkManager</pre><h3>Enable SSH and Remote Access</h3><p>Install and start SSH:</p><pre>sudo yum install -y openssh-server<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*VdTW2zBXRqsQGoArb6V1Ng.png" /></figure><p>Enable it to start and then check the status that it is <strong>active </strong>or not</p><pre>sudo systemctl enable sshd <br>sudo systemctl start sshd<br>sudo systemctl status sshd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*66zoIu3WgQD_-vz0ritQkw.png" /></figure><p>Get your VM IP:</p><pre>ip addr</pre><p>Connect from <strong>Putty (Windows)</strong>:</p><p>Open PuTTY on your Windows machine, enter your VM’s IP address as the hostname, set the port to 22, and choose SSH as the connection type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*sWhpQNWtSCGZYHivRhc5pA.png" /></figure><p>Click “<strong>Open</strong>” to start the remote connection. PuTTY will then connect to your VM over SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*zK-o9NH1zKD7Nh5srTxg0Q.png" /></figure><h3>Secure SSH</h3><p>Edit SSH config:</p><pre>sudo nano /etc/ssh/sshd_config</pre><p>Once the file opens, locate the line for port 22. Make sure it’s not commented out — remove the # at the beginning if present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*uE7Wpw1cRsATcxqhYwqWJQ.png" /></figure><p>Save it. <strong>Ctrl O -&gt;Enter -&gt; Ctrl X</strong></p><p>Restart SSH:</p><pre>sudo systemctl restart sshd</pre><h3>Install Apache (httpd)</h3><ol><li>Install Apache:</li></ol><pre>sudo yum install -y httpd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*pqAoUxLtbDJ4MOUb7JwatA.png" /></figure><p>Enable Apache at startup and start it and check for its activeness:</p><pre>sudo systemctl enable httpd<br>sudo systemctl start httpd<br>sudo systemctl status httpd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNR56Z_Ch9X8TO3Ji8xPtA.png" /></figure><p>Allow Apache through the firewall:</p><pre>sudo firewall-cmd - permanent - add-service=http<br>sudo firewall-cmd - permanent - add-service=https<br>sudo firewall-cmd - reload</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*0LlsXknIWGpfxiXJbUFlKQ.png" /></figure><p>Open your server IP in a browser:</p><pre>http://&lt;server-ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2npCekQ4q0Q7BPpAvlvefA.png" /></figure><h3>Install PHP</h3><p><strong>Install PHP and the MySQL extension</strong></p><pre>sudo yum install -y php php-mysqlnd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*ejk7jExrmZToiqvcuameNQ.png" /></figure><p><strong>Restart Apache to load PHP module</strong></p><pre>sudo systemctl restart httpd</pre><p>This ensures Apache recognizes the newly installed PHP modules.</p><p><strong>Create a PHP test page</strong></p><pre>echo &quot;&lt;?php phpinfo(); ?&gt;&quot; | sudo tee /var/www/html/info.php</pre><ul><li>This command creates a file called <strong>info.php</strong> in the Apache web root directory.</li><li>The phpinfo() function displays the current PHP configuration, installed extensions, and environment details.</li></ul><h3>Open the file in a text editor (nano)</h3><pre>sudo nano /var/www/html/info.php</pre><p>add your script inside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*0umdl4bG6wMCkiK9iFzImg.png" /></figure><p>and save it. <strong>Ctrl O -&gt; Enter -&gt; Ctrl X</strong></p><h3>Open it in the browser</h3><pre>http://&lt;server-ip&gt;/info.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSdy2M2bG3y5W7h-vFGCRw.png" /></figure><h3>Install MySQL (MariaDB)</h3><p><strong>Install MariaDB</strong></p><pre>sudo yum install -y mariadb-server mariadb</pre><ul><li>mariadb-server: database server</li><li>mariadb: client tool to connect and manage DB</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*ZaqtGpFVLHpz-iSPxvzHEg.png" /></figure><p><strong>Enable &amp; start MariaDB service</strong></p><pre>sudo systemctl enable mariadb<br>sudo systemctl start mariadb</pre><p><strong>Secure the installation</strong></p><pre>sudo mysql_secure_installation</pre><ul><li>Root password set karo</li><li>Anonymous users remove karo (Y)</li><li>Remote root login disable karo (Y)</li><li>Test DB remove karo (Y)</li><li>Privileges reload karo (Y)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*qaN-8fIChdZDILucerL8SQ.png" /></figure><p>Login to MariaDB</p><pre>mysql -u root -p</pre><ul><li>Enter your password (set in secure installation )</li><li>If login, then it will show the prompt:</li><li>MariaDB [(none)]&gt;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*-G7pvkH0vTUrS9URQD-HVw.png" /></figure><h3>Your LAMP Stack is Ready!</h3><p>Now on your server:</p><ul><li>You can <strong>host websites</strong> by placing your HTML and PHP files inside the /var/www/html/ directory.</li><li>You can <strong>manage databases</strong> using <strong>MariaDB (MySQL)</strong>.</li><li>You can <strong>connect your PHP applications to the database</strong> to store and retrieve data.</li></ul><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. 🙂</p><p><strong>HIRA ASMAT</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b26acee6be11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing IBM QRadar: A Comprehensive Installation and Configuration Guide]]></title>
            <link>https://hira-asmat.medium.com/implementing-ibm-qradar-a-comprehensive-installation-and-configuration-guide-d629255ca13d?source=rss-76337f578b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d629255ca13d</guid>
            <category><![CDATA[qradar-configuration]]></category>
            <category><![CDATA[qradar]]></category>
            <category><![CDATA[ibm-qradar]]></category>
            <category><![CDATA[qchange-netsetup]]></category>
            <category><![CDATA[qradar-installation]]></category>
            <dc:creator><![CDATA[Hira Asmat]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 09:10:38 GMT</pubDate>
            <atom:updated>2025-07-22T09:12:54.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5bN-IvNFUqA8TwGcffGcDw.jpeg" /></figure><p><strong>IBM QRadar Security Information and Event Management (SIEM)</strong> is designed to collect event data and apply advanced analytics, correlation, and threat intelligence to detect known and potential threats. It supports real-time alerting, detailed reporting, and assists in incident investigations. For more details, visit the <strong>IBM QRadar SIEM on IBM.com</strong>. NXLog can be configured to gather event logs and forward them to QRadar SIEM. This chapter explains how to set up the integration for both general structured logs and specific log types. The final section provides sample outputs demonstrating how processed logs are forwarded to QRadar.</p><p><strong>Installing VMware and QRadar CE:</strong><br>First, install VMware Workstation or Player, then download the <a href="https://www.ibm.com/community/101/qradar/ce/">QRadar Community Edition</a> (.ova) file from IBM’s official site and import it into VMware to set up the server.</p><blockquote>Requirements</blockquote><ul><li><strong>Minimum RAM:</strong> 24 GB</li><li><strong>Minimum disk space:</strong> 250 GB</li><li><strong>CPU:</strong> At least 4 cores (6 cores recommended)</li><li><strong>Network:</strong> One network adapter with internet access (Bridged)</li><li><strong>IP Configuration:</strong> Static IP address is required for proper communication and functionality</li><li><strong>Hostname:</strong> Must be a fully qualified domain name (FQDN)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*6u3uWkWeYztF8AePVt661g.png" /></figure><p><strong>Configuring Network on QRadar Server:</strong><br>Once the server setup is complete, you need to configure its network settings to match your laptop or PC’s network. To do this, access the terminal or command line interface on the QRadar server.</p><p><strong>Check Network Details on Your System:</strong><br>Before configuring the QRadar server’s network settings, open the <strong>Command Prompt</strong> on your Windows system to view your current network details. Use the following command:</p><pre>ipconfig /all</pre><p>This will display important information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-obJ_hs3hX3GIxlJlva74Q.png" /></figure><blockquote><strong>Suppose:</strong></blockquote><ul><li><strong>IPv4 Address: </strong>10.10.10.111</li><li><strong>Subnet Mask: </strong>255.0.0.0</li><li><strong>Default Gateway:</strong> 10.10.10.1</li><li><strong>DNS Servers:</strong> 10.10.10.1</li></ul><p><em>Then ping the IP to check if it is already assigned to any device on the network. If it doesn’t respond, we can use that IP.</em></p><p><strong>Access the Configuration Tool:</strong><br>Run the following command in QRadar and press Enter to launch the network configuration interface:</p><pre>nmtui</pre><p><strong>Edit Network Connection:</strong><br>Once the network configuration tool opens, select the <strong>“Edit a connection”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*NdEPbPKC4L7lxe37lJpYfg.png" /></figure><p><strong>Select Connection:</strong><br>In the list of connections, choose the one you wish to configure — typically the default network interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*n9VE80TihMcHhIjK9O0i2g.png" /></figure><p><strong>Configure Network Settings:</strong><br> Update the selected network profile with the following details:</p><ul><li><strong>Profile Name:</strong> Update the profile name based on the Device information (ens33).</li><li><strong>IPv4 Address:</strong> Enter an IP address within the same subnet as your laptop/computer.</li><li><strong>Gateway:</strong> Use the same gateway IP as your laptop to ensure correct routing.</li><li><strong>DNS Server:</strong> Set a DNS address.</li></ul><p><strong>Save and Exit:</strong><br>Once all settings are updated, choose <strong>“OK”</strong> or <strong>“Save”</strong> to apply the changes.</p><p><strong>Set System Hostname in Network Manager:</strong><br>In the Network Manager, navigate to the <strong>“Set system hostname”</strong> option. Enter a <strong>fully qualified domain name (FQDN)</strong> as the hostname and confirm the change to apply it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*ZuNfGSY0BJOgqty7JkSBvQ.png" /></figure><p>Select ‘<strong>Activate a connection</strong>’, then deactivate it and activate it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*_K_TL4AA49_ZUgC8dF9gUg.png" /></figure><p><strong>Verify IP Address on QRadar Using PowerShell:</strong><br>To ensure your IP address has been correctly assigned on QRadar, open the terminal, and enter the following command:</p><pre>ip addr</pre><p>This will display all network interfaces along with their assigned IP addresses. Look for your configured IP under the appropriate interface to confirm it&#39;s correctly set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*tjHTR4XvNSodE7XUceRCqQ.png" /></figure><p><strong>Fixing Internet Connectivity Issue in QRadar (VMware):</strong><br>If QRadar is not connecting to the internet even after assigning an IP address, follow these steps to resolve the issue:</p><p>Open <strong>VMware Workstation</strong>.</p><p>Go to <strong>Edit</strong> &gt; <strong>Virtual Network Editor</strong>.</p><p>Click <strong>“Change Settings”</strong> and allow it to run as <strong>Administrator</strong>.</p><p>In the network settings, ensure that the selected network is <strong>bridged named VMnet0 </strong>and connected to your <strong>wireless adapter</strong> (e.g., Wi-Fi).</p><p>Apply the changes and restart the QRadar virtual machine. This will bridge the QRadar VM to your wireless network, enabling proper internet connectivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*TQ2wGKOWCIKFwHsUO4jfnw.png" /></figure><p>Now again, ping the IP</p><pre>./setup</pre><p>Now run this command in QRadar. It will take around 40 to 60 minutes to complete the setup installation of QRadar.</p><p>During the installation, it will ask you to set a password. Enter the same password that you will use to access QRadar through the web browser.</p><p>After this check whether the Tomcat service is active or not by running this command.</p><pre>systemctl status tomcat</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*Id7F8KVTP-02MA4pXgGxyQ.png" /></figure><p>Now, ping the IP that you assigned to QRadar using the Command Prompt, and you’ll notice that it successfully pings the QRadar IP.</p><p><strong>Access QRadar Web Interface:</strong><br>Once the network is properly configured and internet connectivity is established, open your web browser and enter the assigned IP address of the QRadar server (e.g., https://&lt;your-ip&gt;).</p><p>Enter the username ‘<strong>admin</strong>’ and the password you set during the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dPKJAr5Ttt03V3p2YLp6Bg.png" /></figure><p>after login it will show the interface like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gG26sJ6LpOQJkVnBEY32jg.png" /></figure><h3><strong>Qchange_netsetup</strong></h3><p><strong>Adding a New Network Configuration After Reboot:</strong><br>If you want to add a new network add this command in the terminal of QRadar</p><pre>qchange_netsetup</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*HcX0nk-aHBixR4_V7CMUMA.png" /></figure><p>It takes about 5 to 10 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*-fnen2rA6wK7Kc7yemtLhg.png" /></figure><p>IPv4 is already selected. Press ‘<strong>Tab</strong>’ to move to the next section, then click ‘<strong>Next</strong>’. Enter the new IP address, Network Mask, Gateway and DNS you want to assign — this will apply the new network settings to the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*xSo4zZdgJLIk5zC-ang_TQ.png" /></figure><p>Now, click ‘<strong>Finish</strong>’. This will restart all services and apply the settings. Then, check if the new IP has been added to the network. Finally, use Command Prompt to ping the newly assigned QRadar IP and verify that it responds.</p><p>Once the network is properly configured, open your web browser and enter the newly assigned IP address of the QRadar server.</p><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. 🙂</p><p><strong>HIRA ASMAT</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d629255ca13d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>