<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.rabbibob.com/index.php?action=history&amp;feed=atom&amp;title=PhpBB</id>
	<title>PhpBB - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.rabbibob.com/index.php?action=history&amp;feed=atom&amp;title=PhpBB"/>
	<link rel="alternate" type="text/html" href="https://www.rabbibob.com/index.php?title=PhpBB&amp;action=history"/>
	<updated>2026-08-30T08:31:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.rabbibob.com/index.php?title=PhpBB&amp;diff=2052&amp;oldid=prev</id>
		<title>Rabbi Bob: Created page with &quot;Category:Weblog-2026-08 Category:Linux  phpBB, proof that I am a masochist.  =Updating versions= * Ref: https://www.phpbb.com/support/docs/en/3.3/ug/upgradeguide/update_full/ ==Prepping== * Download the full package and read the update directions ** tl\dr: unzip the zip and clear out folder\files to NOT overwrite in the destination later &lt;syntaxhighlight lang=&quot;bash&quot;&gt; del config.php rmdir /s /q &quot;files/&quot; rmdir /s /q &quot;images/&quot; rmdir /s /q &quot;store/&quot; &lt;/syntaxhighlight&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.rabbibob.com/index.php?title=PhpBB&amp;diff=2052&amp;oldid=prev"/>
		<updated>2026-08-29T10:29:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Weblog-2026-08&quot; title=&quot;Category:Weblog-2026-08&quot;&gt;Category:Weblog-2026-08&lt;/a&gt; &lt;a href=&quot;/index.php/Category:Linux&quot; title=&quot;Category:Linux&quot;&gt;Category:Linux&lt;/a&gt;  phpBB, proof that I am a masochist.  =Updating versions= * Ref: https://www.phpbb.com/support/docs/en/3.3/ug/upgradeguide/update_full/ ==Prepping== * Download the full package and read the update directions ** tl\dr: unzip the zip and clear out folder\files to NOT overwrite in the destination later &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; del config.php rmdir /s /q &amp;quot;files/&amp;quot; rmdir /s /q &amp;quot;images/&amp;quot; rmdir /s /q &amp;quot;store/&amp;quot; &amp;lt;/syntaxhighlight&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Weblog-2026-08]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
&lt;br /&gt;
phpBB, proof that I am a masochist.&lt;br /&gt;
&lt;br /&gt;
=Updating versions=&lt;br /&gt;
* Ref: https://www.phpbb.com/support/docs/en/3.3/ug/upgradeguide/update_full/&lt;br /&gt;
==Prepping==&lt;br /&gt;
* Download the full package and read the update directions&lt;br /&gt;
** tl\dr: unzip the zip and clear out folder\files to NOT overwrite in the destination later&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
del config.php&lt;br /&gt;
rmdir /s /q &amp;quot;files/&amp;quot;&lt;br /&gt;
rmdir /s /q &amp;quot;images/&amp;quot;&lt;br /&gt;
rmdir /s /q &amp;quot;store/&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Double check the listing below and create cleanup.sh executable in the phpbb dir on the webserver&lt;br /&gt;
* Run the script from that dir (else it fails) using &amp;quot;Usage: ./cleanup.sh &amp;#039;&amp;#039;&amp;#039;/var/www/html/target_directory&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Check if target directory is provided as an argument&lt;br /&gt;
if [ -z &amp;quot;$1&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Error: Target directory not provided.&amp;quot;&lt;br /&gt;
    echo &amp;quot;Usage: ./cleanup.sh /path/to/target_directory&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Resolve absolute paths for reliable comparison&lt;br /&gt;
TARGET_DIR=$(realpath &amp;quot;$1&amp;quot; 2&amp;gt;/dev/null)&lt;br /&gt;
CURRENT_DIR=$(pwd)&lt;br /&gt;
&lt;br /&gt;
# Verify the target directory actually exists before comparing&lt;br /&gt;
if [ -z &amp;quot;$TARGET_DIR&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Error: The specified target directory does not exist.&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# SAFETY CHECK 1: Ensure script is run from inside the target directory&lt;br /&gt;
if [ &amp;quot;$CURRENT_DIR&amp;quot; != &amp;quot;$TARGET_DIR&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Safety Check Failed: You must run this script from inside the target directory.&amp;quot;&lt;br /&gt;
    echo &amp;quot;Please &amp;#039;cd&amp;#039; into $TARGET_DIR and run the script from there.&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# SAFETY CHECK 2: Confirm config.php exists&lt;br /&gt;
if [ ! -f &amp;quot;config.php&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Safety Check Failed: &amp;#039;config.php&amp;#039; was not found in $CURRENT_DIR.&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# SAFETY CHECK 3: Confirm config.php contains the word &amp;#039;phpBB&amp;#039;&lt;br /&gt;
if ! grep -q &amp;#039;phpBB&amp;#039; config.php; then&lt;br /&gt;
    echo &amp;quot;Safety Check Failed: &amp;#039;config.php&amp;#039; does not contain the word &amp;#039;phpBB&amp;#039;.&amp;quot;&lt;br /&gt;
    echo &amp;quot;Aborting to prevent accidental deletion in a non-phpBB directory.&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Safety checks passed. Starting cleanup in $TARGET_DIR...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Execute cleanup&lt;br /&gt;
# -mindepth 1 and -maxdepth 1 ensure we only look at the immediate contents of the directory&lt;br /&gt;
find . -mindepth 1 -maxdepth 1 \&lt;br /&gt;
    -not -name &amp;#039;cleanup.sh&amp;#039; \&lt;br /&gt;
    -not -name &amp;#039;config.php&amp;#039; \&lt;br /&gt;
    -not -name &amp;#039;ext&amp;#039; \&lt;br /&gt;
    -not -name &amp;#039;files&amp;#039; \&lt;br /&gt;
    -not -name &amp;#039;images&amp;#039; \&lt;br /&gt;
    -not -name &amp;#039;store&amp;#039; \&lt;br /&gt;
    -not -name &amp;#039;styles&amp;#039; \&lt;br /&gt;
    -exec rm -rf {} +&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Cleanup complete! Unnecessary files and directories have been removed.&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* You should have a clean area now. &lt;br /&gt;
* Follow the rest of the directions&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rabbi Bob</name></author>
	</entry>
</feed>