Can I install a flat-file CMS locally?

Using applications, configuring, problems
Message
Author
User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

Can I install a flat-file CMS locally?

#1 Post by MrAccident »

I don't have any experience in making a website; researching it now. I prefer to build the website locally - because it will probably work much faster; and then to upload\sync it with the host; probably Google-Drive.

The CMS I want to try is SiteMagic - https://sitemagic.org/Download.html
This page - gives the 3 ways to install it.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#2 Post by mikeslr »

Hi MrAccident,

I'm just guessing. sitemagic.org website does not provide a list of dependencies. Examining how joomlaPup (tahr) was created, http://www.murga-linux.com/puppy/viewto ... 450#896450 xampp may be one. If so, you'd have to first find out how to build xampp -- what are it's dependencies?

Alternatively, since it's already built into Joomlapup, perhaps you could install sitemagic into that Puppy.

I suspect, however, you may be over-complicating your goal. Having sitemagic both locally and on the web would be helpful if you are planning to modify sitemagic. But if you're objective is only to upload content into sitemagic on the web, creation of that content can be done with applications locally --e.g. LibreOffice, Gimp, mhWaveEdit, openshot-- and the finished product uploaded (FTP) to your website, or elsewhere on the web and link to it created.

mikesLr

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#3 Post by MrAccident »

Hi mikeslr.
Yeah - it seems complicated; though to install SiteMagic on the host\server - should be easy.
If it is complicated - than I'll just install it on some host.

So how is it installed in the server? It says it runs on PHP 5.2; Is that what I would need to have? Is it a program, environment?

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#4 Post by rockedge »

it is not that complicated to build a complete web server complete with mysql or mariadb, PHP5 and Hiawatha as the webserver on your puppy machine. it is possible to choose a configuration that uses /root/Web-Server instead of /var/www/hiawatha as the web root.

you could setup Sitemagic CMS v. 4.4 on your machine. reach it with http://localhost with a browser for example.

mess with the site as you desire and then ftp the entire code and content to the host you wish.

if Hiawatha is not the way....Apache can be installed instead.
all this does is create a platform to build websites directly locally and get a very fast response to changes you make. Then it it is possible to upload the finished website to any host server you wish via FTP

with Sitemagic you could just use Hiawatha and install PHP.

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#5 Post by MrAccident »

rockedge - OK I'll try it.
Thanks

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#6 Post by rockedge »

MrAccident
what version of Puppy Linux are you going to use?
I might be able to put the whole smear together as an sfs file you could load on the fly.

or if you need some tips...I got it going on Bionic with just Hiawatha and PHP7.2.5
I did need to make sure that certain php modules were installed.

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#7 Post by MrAccident »

Slocko 5.7.0
I didn't try it yet; so I don't know. And what is Bionic?

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#8 Post by rockedge »

Bionic Beaver 18.05 is a Puppy Linux built on Ubuntu Bionic 18.05 binaries. More is here: http://murga-linux.com/puppy/viewtopic.php?t=113244

I am using a Bionic I custom made using woof-CE.

I downloaded Hiawatha server from https://www.hiawatha-webserver.org/download

I use the Debian version and download the .deb file and then click on it in the rox-filer let it install via petget. I altered the /etc/hiawatha/hiawatha.conf to use /var/www/hiawatha as the server root and I installed PHP7.2.5 using the PPM.
I did have to install and enable some specific php modules but after that Sitemagic is working OK.....

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#9 Post by MrAccident »

I installed from ibiblio - hiawatha-10.3-i686_s700.pet
In PPM - there's only - php 5.6.32

To download it? And what else do I need? And how to install SiteMagic?

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#10 Post by rockedge »

I think you can use the php 5.6.32 okay.....do you need some help configuring Hiawatha and PHP?

Download Sitemagic zip file.....once we have your web server working you can un-zip the file and place it the files in the web root. /var/www/hiawatha

I made a directory /var/www/hiawatha/sitemagic and put all the files from the zip file in there.

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#11 Post by MrAccident »

Yeah, of course I'll need help. :-P
Actually - the PHP available - is 5.4.7; the other one is "patches"; I don't know what that means; does it turn the previous to a newer version, or is that unrelated?

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#12 Post by rockedge »

which Puppy Linux are you going to use? I will go for a run through with Xenial and note the steps I take....will be right back after I set up a fresh Xenialpup

I have not used Slacko Pups at all for this yet.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#13 Post by rockedge »

Xenialpup 7.5

Okay I did it even simpler using the Hiawatha v6.17.1 that is already installed in Puppy Linux (is used for the Blog written in PERL) and added php7.0 with the PPM.

I updated the PPM and installed php and mods. After the php-cgi the ZIP and XML modules will be installed.
in the PPM search for "php"
select and install :
php-cgi_7.0
php7.0-xml_7.0.30
php7.0-zip_7.0.30

this will install several more components for PHP.


then I downloaded the install.php for SiteMagic here : https://sitemagic.org/index.php?SMExt=S ... ll.php&v=6

I ceated a script and placed it in Web-Server:
info.php

Code: Select all

<?php
echo phpinfo();
?>
I created the directory /root/Web-Server/SMagic and placed the install.php into the directory
then in a terminal:

Code: Select all

#chown -R webuser /root/Web-Server
Hiawatha Config:

Code: Select all

ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log

Binding {
	Port = 80
#	Interface = 127.0.0.1
}

Hostname = 127.0.0.1
WebsiteRoot = /root/Web-Server
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
TimeForCGI = 3600

#add this stuff to get a perl script working (pplog)...
#QUISP has a binary executable CGI named 'quisp.bin'...
MimetypeConfig = /etc/mime.types
CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/php-cgi7.0:php
CGIextension = pl,bin
ExecuteCGI = yes

#QUISP puts %0D, %0A (carriage-return, line-feed) chars in the url
#(v128), to allow chars below ascii 32 need this...
SecureURL = no
ShowIndex = yes
start hiawatha from a terminal:

Code: Select all

#hiawatha
stop hiawatha from a terminal:

Code: Select all

#killall hiawatha
I opened my browser and http://localhost/info.php which should bring a page showing something like this :

Image

now the tricky part is setting up the php modules. goto /etc/php (in my case /etc/php/7.0)
there it looks like this:

Image

now the trick is look in /usr/share for the php folders...look inside each one for the .ini file and copy them to /etc/php/7.0/mods-avialable
once you have them collected all in that folder (you will probably not need them all) make sym-links from that folder into /etc/php/7.0/cgi/conf.d of the .ini files
Image

Goto and get the file /usr/lib/php/7.0/php.ini-development Rename it to php.ini and place it in /etc/php/7.0/cgi

in the php.ini goto the Date field and uncomment and place the correct timezone.

run hhtp://localhost/info.php and all your new modules and timezone should be present.

Do this again

Code: Select all

#chown -R webuser /root/Web-Server
the TimeForCGI = 3600 in the hiawatha.conf is important
now enter in the browser url bar :
http://SMagic/install.php

then when its done...takes a moment......it will say finished and give you a link to refresh and start the site....the rest is in SiteMagic's manual.

Good Luck,...let me know how you're doing!

NOTE: to keep the Puppy Personal Blog going correctly create and add this file:

/root/Web-Server/blog/.hiawatha

Code: Select all

StartFile = pup_pplog.pl
Image

It only involves selecting 3 packages in the PPM ,some configuring of PHP and Hiawatha downloading SiteMagic installer and running it.

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#14 Post by MrAccident »

I probably lost you quite in the beginning.

I forgot to update PPM; and after updating - it showed that it found php-5.6.36; and in the parentheses - it says "patches". So I uninstalled - 5.4.7 (official), and installed 5.6.36. Is that the right thing?

I didn't understand - what are "mods"; am I suppose to download them?

What did you mean by - "I created a script and placed it in Web-Server:"?

After placing:

Code: Select all

#chown -R webuser /root/Web-Server
in the terminal, and clicking Enter - nothing happens; it goes down a line.

What did you mean by - "Hiawatha Config:"; where do I put the code? Is that before I start Hiawatha?

So I stopped here.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#15 Post by rockedge »

I will construct an sfs file you can load on the fly that will set it up for you...it will be easier and you can get started designing your site(s)

soon as it's done I'll post the dowload link

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#16 Post by MrAccident »

You don't mean - with SiteMagic? Cause they'll update their software, and I'd like to update mine.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#17 Post by rockedge »

you just run the update.php included.....works pretty good for me

I have changed from SFS to making this a PET which sets up the server PHP parts and sets up install.php ready to run....this will insure the latest SiteMagic gets installed.

the PET method insures a better setup.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#18 Post by rockedge »

here is the PET -> https://drive.google.com/open?id=1AhVcu ... eD0MBwOaSA

I used Xenial 7.5 32 bit

contains Hiawatha 10.8.1 webserver PHP 7.0 and SiteMagic
download the PET click on the file let it install.
open a terminal and start Hiawatha

Code: Select all

#hiawatha
or

Code: Select all

#/etc/init.d/hiawatha start
to stop the server:

Code: Select all

#killall hiawatha
or

Code: Select all

#/etc/init.d/hiawatha stop
in a browser give the URL http://localhost/SMagic
for sitemagic upgrade http://localhost/SMagic/upgrade.php.

to check the PHP use http://localhost/info.php

any problems open a terminal in /root and enter:

Code: Select all

#chown -R webuser:webgroup Web-Server

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#19 Post by BarryK »

There's my CMS, local development, upload with rsync, create/edit with wysiwyg editor:

http://bkhome.org/shellcms/index.html
[url]https://bkhome.org/news/[/url]

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#20 Post by MrAccident »

rockedge - didn't work.
Is the "#" character - suppose to be included in the codes, or default in terminal?
The PET - installed.
When entering the code - "#hiawatha" - it just goes to the next line.
When entering the code - "hiawatha" - it says - "Error binding 0.0.0.0:80".
And it goes to the next line - when I enter the code for the case there is a problem; whether with the "#" or without.
And when entering into the address-bar - "http://localhost/SMagic" - it says - "Internal Server Error
500"

I uninstalled - everything related - that I installed previously; was that OK?

Post Reply