All posts by frank

Upgrading MyBB To Version 1.8.0

Upgrade Instructions

These instructions apply to upgrades on Windows server running Apache web server as well as upgrades on linux server installations except that with linux you may need to set various folder permissions.

  • Download MyBB version 1.8.0
    http://www.mybb.com/download/
  • Extract the website files from the downloaded ZIP file into a temporary folder of your choice
  • Backup your MyBB database and all MyBB website files and folders (in case you need to revert to the previous version 1.6.15 or earlier)
  • Copy the /inc/settings.php and /inc/config.php files to a separate folder (as a backup) so that you can copy them back into the website later
  • Disable any plugins that you have installed
  • You may choose to disable the board, but I didn’t and the upgrade went fine
  • Overwrite the files and folders in the website by coping or FTP uploading all of the new extracted version 1.8.0 files and folders into your website (use the root or forum sub folder that you previously used with the existing installation of MyBB
  • Replace the newly uploaded files named settings.php and config.php with the files those same two files that you previously copied to a separate folder.
  • You may need to delete the “lock” file in the “/install” folder of your website so that you don’t receive an error message alerting you to delete the “lock” file when you access upgrade.php
  • Now for this installation — Open a web browser and enter the address to the page /install/upgrade.php
  • Select the version of MyBB that you were previously running and click Next

2014-10-11 23_15_24-MyBB Installation Wizard _ Welcome

  • Follow the upgrade process making sure each step is completed successfully before clicking next to continue with subsequent steps of the upgrade process
  • Once the upgrade process is completed, then remove the install directory from your web server (or rename it) and follow any remaining instructions in the upgrade wizard, or in the announcement for the upgrade. This can include reverting selected templates to default.

2014-10-11 23_22_37-MyBB Installation Wizard _ Upgrade Complete

  • Enable any plugins one at a time and determine whether they require updating.  Have updated plugins ready to be installed.

Build a Raid-1 Mirror Array on Adaptec 1430SA After an Operating System Is Installed

This procedures in this article show how to:

1. Build a Raid-1 Array on an Adaptec 1430SA RAID controller from a disk that already contains an operating system;

2. Rebuild a Raid-1 Array on an Adaptec 1430SA RAID controller from a degraded Raid-1 Array already containing an operating system; and

3. Clone a disk having an existing operating system, and/or existing Raid-1 mirror (whether or not the original array is degraded), onto a larger capacity set of hard drives and build (or rebuild) a Raid-1 Mirror Array on an Adaptec 1430SA Raid controller.

On the 1430SA Adaptec card, you may install an operating system on a preconfigured RAID-1 Array; or, you may use the “build” method to create or rebuild a RAID-1 Array from a non-RAID disk drive containing an existing operating system (or data) or from drives containing an exiting RAID-1 Mirror and existing operating system (or data), or from the remaining drive in a degraded RAID-1 Array.

  • If you have an existing RAID-1 mirror (whether or not it is degraded), install a product like Macrium Refect in order to make a good backup image of existing partitions. Use an external USB drive of caddy as the target of the Drive and Partition Image. Follow the instructions set forth in this article: http://www.sheldonsblog.com/rebuild-a-degraded-raid-1-array-on-adaptec-1430sa-controller/. After you have a good image backup, now use the same software to clone the partitions onto a new larger capacity drive (expanding the operating system partition on the new blank drive), and then create a new RAID Mirror Array using the newly cloned drive as the Mirror “Source” drive and another identical blank drive as the Mirror “Target” drive. How? See the same article: http://www.sheldonsblog.com/rebuild-a-degraded-raid-1-array-on-adaptec-1430sa-controller/.

     

  • You can build a Raid-1 Array from an non-Raid drive having an existing operating system by adding a brand new unused second drive of the same size or capacity, or cloning the existing partitions and O/S onto a larger capacity drive and then adding a second same new same capacity drive and building the Raid-1 Array.

After you have one drive, existing or expanded after cloning, you must ensure that that the Adaptec 1430SA Raid drivers are installed in the existing operating system so that the drive (and the new array you will create) will boot from the Adaptec 1430SA controller.

  • If you already installed an Array that has been running from the Adaptec 1430SA controller, even if the Array is degraded because 1 drive has dropped or failed on the existing array, then you know that the Adaptec controller drivers are already installed. Test whether the remaining drive on a degraded Array will boot by removing the failed drive and booting the system from the remaining drive on the Adaptec controller.

  • If you don’t have an existing Raid Array, then you will need to install the Adaptec 1430SA controller in the PC or server, then install the hard drive with existing operating system onto a non-Raid SATA port on the motherboard. Boot the operating system, download the latest Adaptec Raid Drives for your OS and 32-bit or 64-bit architecture, and install those drivers. Shut the system down. Install the same disk drive on port 0 of the Adaptec 1430SA Raid Controller card, and reboot the system from this single drive to ensure that the drive will boot from the newly installed controller card with controller card drivers now installed in the OS. Hint: To find port 0, locate the set of two ports on the lower position of the back edge of the card (ie. The ports nearest the motherboard when installed). When the card is installed in the PCI-e slot, then Port 0 should be the port on the right side facing nearest to the bottom side of the tower case. Looking at the back edge of the controller card after it is intstalled, the 4 ports should be as follows:

[3] | [2]

[1] | [0]

SLOT

  • Install a brand new unused disk drive of identical size capacity or larger either on Port 1 or Port 2. I prefer port two directly above port 0. It is your choice. This will be the Target Drive of the Mirror. Then, follow the procedure to Build a RAID-1 Array.

After you have tested to ensure the first drive will boot when installed on the Adaptec card, and you have shut the system down and you have installed a second identical or larger capacity drive (as the target of the Mirror, then:

  1. Boot the sytem and repeatedly press CTRL + A keys together to enter the Adaptec RAID Configuration Utility. This will load into the Adaptec Raid Controller’s Bios.

     

  2. Select “Disk Utilities” from the Main Menu. While inside Disk Utilities, check that both of your hard drives are showing properly as SATA 3.0Gb/s. Then escape from Disk Utilities back to the Main Menu.

     

  3. Select “Array Configuration Utilities” from the Main Menu, and then select Configure Drives. Press the space bar to select each drive on the left side of the screen and ensure that both drives show as being selected drives on the right side of the screen. Press the Enter key. The Bios will warn you that one or more selected drives has a balid partition and that there is a risk of losing data if configured, and will ask “Do you want to continue? (Yes/No): Press the Y key for Yes. The message “Configuring the drives . . .” will briefly flash on the screen before you are returned to the Main Menu.

     

  4. Select “Manage Arrays” from the Main Menu. In the list of arrays, the two drives will each show as SIMPLE VOLUME, and the drive containing your operating system should be located on Port 0. If everything is correct here, then escape to the Main Menu. [Caution: It is absolutely imperative that the source drive be located on Port 0 before you proceed to create the Array. Otherwise, your operating system and/or data and/or partitions will be lost.]

     

  5. Select “Create Array” from the Main Menu. Next, press the space-bar on each of the drives in turn (on port 0 and then on port 1 or 2 as the case may be), so that both of the drives show in the top right side of the screen under “Selected Drives.” Then, press the ENTER key.

     

  6. You will then arrive the “Array Properties” Screen. Select “RAID 1” as the type of RAID you want to use and press the Enter key. Next type in the RAID Array Name that you want to use, such as ARRAY1 and press the Enter key. When you see “Create RAID via” you must choose “BUILD” and then press the Enter key.

     

  7. Next, press the Enter key to select “Done” at the bottom of the “Array Properties” screen.

     

  8. In the next screen, you will SELECT SOURCE DRIVE by choosing the hard drive showing on Port 0 and press the enter key. NOTE: The source drive is the drive containing your existing operating system and/or data. The sectors of information on the Source drive will be copied (mirrored) onto the blank target drive on the new RAID-1 Array.

     

  9. A warning message will appear that states: “Building the RAID 1 may take a few hours or more to complete. Do you still want to continue? (Yes/No):” Here, type Y for Yes to commence building the RAID-1 Array.

     

  10. A progress screen will display the percentage of completion of the Array. It takes a very long time for the screen to display 1%. It takes approximately 15 hours to build a 1TB Array. I suppose that means it will take approximately 15 hours to build a 2TB Array.  I will let you know soon.  When finished at 100% build, there will be a message that appears: “Building the array is successfully completed.” You may now press ESC, ESC to exit the Array Configuration and type Y when prompted to exit and restart or reboot the system.

Note. It is INCORRECTLY reported that after the progress screen has reached at least 1% completion, and if you have installed Adaptec Raid Storage Manager within your operating system, then you may be able to boot to the operating system and allow the RAID controller to finish the “build” in the background while your OS is live or your server is up and running online, and also be able to monitor the progress of your mirror “build” from within Adaptec Storage Manager program. I vaguely remember trying this, but I don’t want to say for certain that I have.  This could mean that you may have the alternative to press and hold the off switch on the front of the case on your computer or server to force a hard shut down, and then restart and boot into the operating system and let the “build” continue while you may monitor the percentage completion from within Adaptec Raid Storage Manager application.

Update: 07-21-2018 — Hard booting after the progress indicator shows at least 1% Build does NOT work.  It won’t boot all the way into the login screen or the OS.  It will try, but after 10 minutes the Windows Recovery screen comes up.  Just cancel and the system will reboot.  Press CTRL+A to go into the Adaptec Controller.  Under Manage Arrays, press Enter to select your current Array, and you should see that the status in “Building” with no progress indicator.  I could have waited about 30 hours to see if the build would complete on a 2TB drive.  However, I chose to escape back to the selected Array and then pressed CTRL+R to start a Rebuild.  The status will show REBUILDING and there will be a progress indicator starting at 0%.  Now, I wait 30 hours and see if the Array will actually boot next time.  

UNLESS YOU ABSOLUTELY NEED TO HAVE THE SERVER UP AND ONLINE, THEN I INSTEAD RECOMMEND THAT YOU LET THE CONTROLLER CARD BIOS AND CONFIGURATION UTILITY FINISH THE “BUILD” TO 100% COMPLETE BEFORE REBOOTING INTO THE OPERATING SYSTEM.

Adaptec Support Knowledgebase

 

Rebuild a Degraded RAID-1 Array on Adaptec 1430SA Controller

THIS ARTICLE ALSO INCLUDES HOW TO CLONE AND RE-SIZE THE DISK PARTITIONS CONTAINING THE OPERATING PARTITION ONTO LARGER CAPACITY DRIVES AND REBUILD THE RAID ARRAY MIRROR.

What to do when a RAID Mirror Array Degrades.  When a RAID array (mirror) is not protected by a hot spare and one of the disk drives in that array fails (and you want to keep the same size/capacity Array in place), then remove and replace the failed disk drive with a brand new unused drive of at least the same or larger capacity and feature type as the existing drives (such as the same RPM, same cache size, etc., features).

Some RAID Controllers will automatically begin to rebuild the array when the new disk drive is detected by the controller.  If not, then there are other ways to start the rebuild.

Manual Rebuild using the Array Configuration Utility (ACU) BiOS.  Replace the failed drive with a new one (of equal or greater capacity). Boot the system, press CTRL + A to access the ACU utility on system boot up. When inside the ACU utility, select ‘Array Configuration Utility’, then press Enter. Select ‘Initialize Drives’ and initialize the new drive that you have added to the system.

Then select ‘Manage Arrays’. Highlight the array that needs to be rebuilt, and select CTRL + S option in order to manage hot spares for the array, add in the new drive as global hot spare for the array and a rebuild will begin on the degraded array automatically. Note: The CTRL + S option is not available on all controllers.

Manual Rebuild using Adaptec Storage Manager

If Adaptec Storage Manager Software is installed on your System, then you should be able to use this procedure as well.  Replace the failed drive with a new one (of equal or greater capacity).  Boot into the operating system and login to the Adaptec Storage Manager software.

In the Enterprise View click on the controller with the degraded logical device.

Under physical devices view click on the newly added harddrive and select ‘Actions’ and then ‘Create dedicated hot spare for’ then select the logical device which needs to be rebuilt.

A rebuild will then begin automatically on the degraded logical device. For further detailed instructions on how to assign a dedicated hot spare in Storage Manager, please refer to the Adaptec Storage Manager User’s Guide.

REBUILD THE RAID ARRAY MIRROR AND RE-SIZE THE ARRAY AND THE OPERATING PARTITION ONTO LARGER CAPACITY DRIVES.

I plan to use either EASEUS To Do Backup or EASEUS Partition Manager, or Macrium Reflect v5 (Server Edition), to clone and to resize the Raid array onto the larger capacity drives.  If you use the search box at the Macrium Reflect website, you can find how to download a 30 day trial version of Macrium.  I will need to use the Server edition because I am rebuilding and resizing the Raid Array on the server hosting this blog site!!!  If you are reading this article more than a few days from its publication date, then my process must have worked if this website is still up and running.

UPDATE September 6, 2014:  When I cloned and re-sized the operating partition from the 500GB Drive Port 0 (degraded mirror) and expanded it onto a brand new 1TB drive on a non-Raid SATA port (using Macrium Reflect), the new 1TB drive NO LONGER contains the original Array information.  This means it will be (was) necessary to install the new clone 1TB onto Port 0 of the Raid Controller, and to install the 2nd brand new 1TB drive on Port 1 or Port 2., and then CONFIGURE A NEW RAID-1 ARRAY using the BUILD method.  The 1TB drive on Port 0 is the source of the Build, and the 1TB drive on Port 2 is the target of the Build.  It took from 11 PM until 7 PM the next day for the Build to complete and report an optimum mirror.

I currently have a RAID Mirror on Adaptec 1430SA RAID Controller using two 500GB Seagate Barracuda 7200.11 SATA-3 Drives, 32MB cache, Seagate Model SG3500320SA.  The drives are connected to Port 0 and Port 2 of the RAID Controller, respectively.  My event viewer contained an entry that stated the Adaptec Storage Manager application detected that the RAID Array had degraded.  Upon inspection, I found that the Hard Drive on Port 2 was failing.  I removed that drive from the Controller.

I plan to upgrade to the RAID Array by installing 2 Seagate 1TB 7200RPM 64MB Cache SATA Drives.  I found the drives on special at Tiger Direct for $60 each, plus tax.

I will install a single new 1TB drive on the standard onboard SATA controller on my motherboard (not on the 1430SA RAID controller which is installed in a PCI-e slot).  I will boot to the remaining single  500GB System drive on the degraded Array.  Then, I will download and install the server version of Macrium Reflect.

Once Macrium is installed, I will start Macrium and clone the 500GB drive while resizing the operating partition onto the new 1TB drive.  The Marcrium instructions say to select the 500GB source drive from the degraded Array, and then select the new 1TB target drive.  Next, select the source partition and drag and drop it onto the target drive.  Use the mouse to grab and drag the target partition to resize it, or merely click the button that says resize the partition to utilized the entire target drive.  Hopefully, the Macrium software will handle the resizing of the underlying RAID Array as well.

Then, I will remove the cloned 500GB drive from port 0 of the Raid Controller card and install the rezized 1TB drive on Port 0 and reboot the server to verify that all is working.  Checking in the Raid Array Configuration Utility, the new 1TB drive should show up as a degraded drive on the Array, and the second Drive will show as missing (because it has not yet been installed).

UPDATE September 6, 2014:  The original degraded Raid Array did not show up in the Raid Array Configuration Utility.  Instead, it showed the new 1TB drive configured by default as JBOD.  I realized at this point that the Array information is not stored in the controller card.  Instead it must be stored on the drives.  In which case, when Marcrium Reflex cloned the FAT Dell Utility partition, and copied and resized (expanded) the NTFS operating system partition, it did NOT keep the original Raid Array information.  Consequently, I need to configure a new RAID-1 Mirror Array with the two new drives using the “Build” method.

UPDATE September 6, 2014:  If you have hardware Raid rather than the Software-type Raid Controller, then it is still possible that the following paragraph of instructions still holds true because the original Raid Array information may still be contained in the Bios of the Raid Controller.  I am not sure about this, but if so, then:

Power down and install the second 1TB SATA drive on Port 2 of the Raid Controller Card.  Follow the instruction above to rebuild the RAID Array mirror, as if the Drive Partitions were never resized.

UPDATE September 6, 2014:  If the original Raid Mirror is not saved when you Clone and Resize / Extend the size of the Operating System Partition, then follow the instructions of Part II of this Article to Rebuild your Raid-1 Array.

See Part II Article at:

Build a Raid-1 Mirror Array on Adaptec 1430SA After an Operating System Is Installed

Owncloud External USB Storage Via FTP Option on Zpanel Windows Server

This article applies to a self-hosted ownCloud version 7.0.1 which is hosted through a Zpanel on Windows Server 2008 R2, and for which you have remote desktop admin access to the server.

Configuring the External USB and FTP.

Connect USB drive to USB port on the Server.  Check Windows Explorer to see if it is present as Drive (X):\ (where “X” is the drive letter assigned by Windows,  usually drive E:\).  In Windows Explorer, on the USB drive, create a new folder path on the X:\ drive, such as E:\owncloud\external_storage.

Setup the FTP Account in Zpanel.  Log into your Zpanel hosting account to setup an FTP account credential leading to the external USB drive path.  Click on “File Management” and select “FTP Accounts.” Create a new FTP account by entering a username and password.  The access type should be read and write – full access.  Select the radio button to Create a new home directory.  The new home directory will be the same name as the username chosen above.  Click the Create button.

Access Windows Server via Remote Desktop to Adjust the FileZilla FTP Account to Point to the external USB drive file path.  Since Zpanel only creates an FTP within the Directory Path configured for the Zpanel User Account, usually on  “C:\zpanel\hostdata\[Zpanel_username]\External_Storage_username” drive, you need to create an alternate FTP path to the USB Drive storage path.  How?  Log into the Windows Server using Remote Desktop access, and click the Start button, select All Programs, then Zpanel, Management, and open the FileZilla Console.  In the Filezilla console, Select the pre-configured FTP user account that you just established within Zpanel file management.  How? In FileZilla console select Users and select the particular FTP user account you just established.  Select Shared Folders, and you should see the original Home directory path that you pre-configured under Zpanel.  For the same FTP user account, click the “Add” button and add a new directory path leading to your USB file folder path, such as E:\owncloud\external storage.  Select this new path with your mouse and click the button to “Set as home directory,” in order to set this “External Storage” path as the new “Home” default folder.  Make sure for “Files” that you check each checkbox to select all -> read, write, delete, append, and check each check box under Directories to select all -> create, delete, list, +Subdirectory, to ensure these authorizations are granted.  You can leave the existing pre-cofigured Zpanel directory in place. For now, it is no longer the Home directory for the FTP path for this FTP user account. Click OK to exit the zpanel configuration.  You can now exit the FileZilla console.

Enable External Storage in your Owncloud Admin Account.  Log into your administrator account for ownCloud.  Select Apps from the left menu.  Select External Storage Support from the list.  Under the heading External Storage Support 0.2.1, internal app, Mount external storage sources, click the Enable button.

Configure External Storage Via FTP.  Remain logged in under ownCloud Administrator Account.  Select “Admin” from the Menu. Within Admin, under the heading for “External Storage,” click the drop down menu on the button for “Add storage” and select “FTP.”

Change the Folder Name to your desired folder name, such as “Ext” and, under configuration, you probably need to type in localhost (for ftp server location), enter your pre-configured FTP username and your FTP password.  Under “Available For” you can select ALL USERS or a particular user or particular group.

2014-09-21 19_54_06-ownCloud

When you open your ownCloud desktop client or your web interface and login, you should see the new folder named “Ext” in your folder list. If you copy a file to that folder, it will syncronize from the server to all webdav and desktop connected devices.

Enjoy!