How to install WebsiteBaker on OpenSUSE leap 42.3

To install WebsiteBaker on OpenSUSE Leap 42.3

WebsiteBaker is an open source content management system (CMS) written in PHP and it uses a database to store the data. Website Baker has an easy to use interface, template based front-end, multi-user administration with privilege levels etc. It is simple to install WebsiteBaker, and in this tutorial, you will learn the method to install WebsiteBaker on OpenSUSE Leap 42.3

Requirements

-LAMP Stack

-Apache

-Mariadb

-php7

Zipper in php php-mysqli

Installing WebsiteBaker

You need to download latest stable installation package of Website Baker, you can use the wget command followed by the download link as follows.

linuxhelp:~ # wget http://wiki.websitebaker.org/wbdownload/Wb2-8-3WithSP4.zip
--2017-10-27 11:38:18-- http://wiki.websitebaker.org/wbdownload/Wb2-8-3WithSP4.zip
Resolving wiki.websitebaker.org (wiki.websitebaker.org)... 81.169.128.202
Connecting to wiki.websitebaker.org (wiki.websitebaker.org)|81.169.128.202|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wiki.websitebaker.org/wbdownload/Wb2-8-3WithSP4.zip [following]
--2017-10-27 11:38:21-- https://wiki.websitebaker.org/wbdownload/Wb2-8-3WithSP4.zip
Connecting to wiki.websitebaker.org (wiki.websitebaker.org)|81.169.128.202|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4149323 (4.0M) [application/zip]
Saving to: ‘ Wb2-8-3WithSP4.zip’ 

100%[==============================================================================================================================================> ] 4,149,323 58.3KB/s in 82s

2017-10-27 11:39:46 (49.5 KB/s) - ‘ Wb2-8-3WithSP4.zip’  saved [4149323/4149323]

Once the file is downloaded, you need to extract the downloaded package as follows.

linuxhelp:~ # unzip Wb2-8-3WithSP4.zip -d /srv/www/htdocs/websitebaker
Archive: Wb2-8-3WithSP4.zip
inflating: /srv/www/htdocs/websitebaker/UPGRADE
inflating: /srv/www/htdocs/websitebaker/README
inflating: /srv/www/htdocs/websitebaker/LICENSE
inflating: /srv/www/htdocs/websitebaker/INSTALL
inflating: /srv/www/htdocs/websitebaker/DEVINFOS
inflating: /srv/www/htdocs/websitebaker/COPYING
inflating: /srv/www/htdocs/websitebaker/CHANGELOG
inflating: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif
extracting: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif
inflating: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif
extracting: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif
inflating: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif
extracting: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif
extracting: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif
inflating: /srv/www/htdocs/websitebaker/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif
.
.
.
.
inflating: /srv/www/htdocs/websitebaker/wb/templates/index.php
extracting: /srv/www/htdocs/websitebaker/wb/config.php.new
inflating: /srv/www/htdocs/websitebaker/wb/favicon.ico
inflating: /srv/www/htdocs/websitebaker/wb/htaccess.txt
inflating: /srv/www/htdocs/websitebaker/wb/index.php
inflating: /srv/www/htdocs/websitebaker/wb/README-FIX
inflating: /srv/www/htdocs/websitebaker/wb/upgrade-script.php
creating: /srv/www/htdocs/websitebaker/wb/media/

Later, you need to move inside that document root, you can run the following command for the same purpose.

linuxhelp:~ # cd /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # ll
total 16
drwxrwxrwx 2 wwwrun www 4096 Oct 9 23:15 gif
-rwxrwxrwx 1 wwwrun www 2356 Mar 18 2017 info2html.css
drwxr-xr-x 3 root root 4096 Oct 27 11:43 websitebaker

In here you need to provide appropriate owner permission and file execution permission. Run the following commands for the same purpose.

linuxhelp:/srv/www/htdocs # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # chmod -R 775 /srv/www/htdocs/

Once it is done, make sure you configure your Apache VirtualHost. Run the following command to open the .conf file.

linuxhelp:/srv/www/htdocs # vim /etc/apache2/conf.d/website.conf

In the file, you need to make the following configuration.

< VirtualHost *:80> 
DocumentRoot " /srv/www/htdocs" 
ServerName www.linuxhelp1.com
< Directory " /srv/www/htdocs/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

Once it is done, you need to restart your Apache service by running the following command.

linuxhelp:/srv/www/htdocs # systemctl restart apache

Now, switch over to your browser and enter your WebsiteBaker directory

Here, it asks you to rename your config.php file.

So, get into your website baker directory by running the following command.

linuxhelp:/srv/www/htdocs/websitebaker # cd wb/

Here you can rename the config.php as follows.

linuxhelp:/srv/www/htdocs/websitebaker/wb # mv config.php.new config.php

Back to your browser, refresh it and check all the details.

Also, you should enter all your necessary details. And then, click on Install WebsiteBaker.

Once it is done, you will be asked to Log into WebsiteBaker. Enter your login credentials and click on Login

Once you are inside WebsiteBaker, you will be asked to delete your instalation folders.

Switch back to your terminal and run the following command to move the php file to some other location.

linuxhelp:/srv/www/htdocs/websitebaker/wb # mv upgrade-script.php /tmp/

Also, you should delete or move your install directory.

linuxhelp:/srv/www/htdocs/websitebaker/wb # mv install /tmp/

Once it is done, move back to your browser.

With this, the installation of Website Baker comes to an end.

FAQ
Q
What does the error message headers already sent mean?
A
The error message 'Cannot modify header information - headers already sent.' occurs if a WB routine tries to send a header after text is displayed in the browser. If this error occurs during installation process, try to clean your browser cache and session variables, then try again.
Q
How is WB spelled correctly - Websitebaker, Website Baker or WebsiteBaker?
A
There were and are many different spellings. The association decided the correct spelling is "WebsiteBaker" - and nothing else. It is one word without any space, and "W" and "B" are written in capital letters.
So please do not use other spellings except "WebsiteBaker" - we know it's not easy, but give it a try.
Q
What is WebsiteBaker?
A
WebsiteBaker is a PHP-based content management system which enables users to produce websites with ease. It has been designed from the ground up to simplify the task of creating and maintaining professional-looking websites
Q
What are the licence terms of WebsiteBaker?
A
WebsiteBaker is released under the GNU General Public License, more commonly known as the GPL. For further information about the GPL visit the link below: http://www.gnu.org/copyleft/gpl.html.
Q
Help, I have forgotten my admin password, what should I do?
A
use the followAll passwords are stored as encrypted MD5 hash in the WB database. If you have access to your MySQL database (e.g. via phpMyAdmin), you can replace any password in the field: password of the database table users by executing the following SQL statement.ing link, https://www.linuxhelp.com/how-to-install-website-baker-on-centos-7/
UPDATE prefix_users SET password = md5('mypass') WHERE username = "admin"