{"id":459,"date":"2025-01-12T22:36:19","date_gmt":"2025-01-12T22:36:19","guid":{"rendered":"https:\/\/www.flexpaul.com\/?p=459"},"modified":"2025-01-19T21:20:15","modified_gmt":"2025-01-19T21:20:15","slug":"remove-xoops-from-server","status":"publish","type":"post","link":"https:\/\/www.flexpaul.com\/index.php\/2025\/01\/12\/remove-xoops-from-server\/","title":{"rendered":"Remove XOOPS from Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this post we are going to attempt to remove xoops from our build.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remove Apache Settings<br>Remove xoops folders Location will be \/var\/www\/flexpaul_net\/xps_<br>Remove Xoops User from MariaDB<br>Restart Server<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Disable sites virtual host: a2dissite <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo a2dissite xps_<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2. Remove Files<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo rm -v \/etc\/apache2\/sites-available\/xps_.conf\n\n*OR*\n\n$ sudo rm -v \/etc\/apache2\/sites-available\/xps_*<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The 2nd Command will remove all files starting with xps_. Use with caution.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"100\" src=\"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/1000018036-1024x100.jpg\" alt=\"\" class=\"wp-image-460\" srcset=\"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/1000018036-1024x100.jpg 1024w, https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/1000018036-300x29.jpg 300w, https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/1000018036-768x75.jpg 768w, https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/1000018036-1536x150.jpg 1536w, https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/1000018036.jpg 1839w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It will remove xps_-le-ssl.conf &amp; xps_.conf in the above example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remove the xoops files.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo rm -v -r \/var\/www\/flexpaul_net\/xps_<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And the &#8220;hidden&#8221; files<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo rm -v -r \/var\/www\/.xps_private<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That should remove all the files in use for Xoops.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reload Apache2.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo systemctl reload apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3. Remove Xoops user and database from MariaDB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">open mysql &gt; <\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">List your databases.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>&gt; SHOW DATABASES;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should see a list of available databases, if you followed the <a href=\"https:\/\/www.flexpaul.com\/index.php\/category\/tutorial\/\" data-type=\"category\" data-id=\"4\">previous tutorials<\/a>, we are using database names and users in that <a href=\"https:\/\/www.flexpaul.com\/index.php\/2023\/11\/17\/lamp\/\" data-type=\"post\" data-id=\"26\">tutorial<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Delete the database.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>&gt; DROP DATABASE myxpsdb;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and finally delete the user for that database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s list users.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>&gt; SELECT user FROM mysql.user<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then we remove our xoops database user.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>&gt; DROP USER myxpsdbuseruser@localhost;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We can then exit MariaDB (mysql).<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>&gt; exit;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That should be it.  You could reboot the server at this point.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>$ sudo reboot now<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Good Luck<\/p>\n\n\n<div class=\"wp-block-post-author\"><div class=\"wp-block-post-author__avatar\"><img alt='Avatar photo' src='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-96x96.png' srcset='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-192x192.png 2x' class='avatar avatar-96 photo' height='96' width='96' \/><\/div><div class=\"wp-block-post-author__content\"><p class=\"wp-block-post-author__name\"><a href=\"https:\/\/www.flexpaul.com\/index.php\/author\/ppmuetze\/\" target=\"_self\">Paul<\/a><\/p><p class=\"wp-block-post-author__bio\">Coffee-fueled and code-driven, I&#8217;m Paul, a digital nomad tech consultant with a knack for navigating the ever-evolving landscapes of open-source software, solar power, and the occasional political pit stop. With 20+ years of experience under my belt, I&#8217;m excited to share my insights, weave captivating narratives about technology&#8217;s impact, and offer valuable perspectives on leadership and positivity. So, grab your digital passport and join me on this virtual voyage of the internet&#8217;s quirky corners, one thought-provoking discussion at a time. Buckle up, it&#8217;s gonna be an informative and wildly exciting ride!<\/p><\/div><\/div>\n\n<div class=\"is-default-size aligncenter wp-block-site-logo\"><a href=\"https:\/\/www.flexpaul.com\/\" class=\"custom-logo-link\" rel=\"home\"><img loading=\"lazy\" decoding=\"async\" width=\"158\" height=\"158\" src=\"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/globe01.png\" class=\"custom-logo\" alt=\"Flexpaul Software\" srcset=\"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/globe01.png 158w, https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/globe01-150x150.png 150w\" sizes=\"auto, (max-width: 158px) 100vw, 158px\" \/><\/a><\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post we are going to attempt to remove xoops from our build. Remove Apache SettingsRemove xoops folders Location will be \/var\/www\/flexpaul_net\/xps_Remove Xoops User from MariaDBRestart Server 2. Remove Files The 2nd Command will remove all files starting with xps_. Use with caution. It will remove xps_-le-ssl.conf &amp; xps_.conf in the above example. Remove [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,365],"tags":[358,363,360,359,356,364,361,357,362,355],"class_list":["post-459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","category-xoops","tag-apache-configuration","tag-database-cleanup","tag-linux-server","tag-mariadb-cleanup","tag-server-cleanup","tag-server-maintenance","tag-system-administration","tag-website-deinstallation","tag-website-removal","tag-xoops-removal"],"jetpack_featured_media_url":"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/images.jpeg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":7,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/459\/revisions"}],"predecessor-version":[{"id":473,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/459\/revisions\/473"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media\/467"}],"wp:attachment":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media?parent=459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/categories?post=459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/tags?post=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}