Can I install a flat-file CMS locally?
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
Can I install a flat-file CMS locally?
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.
The CMS I want to try is SiteMagic - https://sitemagic.org/Download.html
This page - gives the 3 ways to install it.
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
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
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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.
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.
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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.....
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.....
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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.
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.
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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
I created the directory /root/Web-Server/SMagic and placed the install.php into the directory
then in a terminal:
Hiawatha Config:
start hiawatha from a terminal:
stop hiawatha from a terminal:
I opened my browser and http://localhost/info.php which should bring a page showing something like this :
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:
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
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
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
It only involves selecting 3 packages in the PPM ,some configuring of PHP and Hiawatha downloading SiteMagic installer and running it.
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();
?>
then in a terminal:
Code: Select all
#chown -R webuser /root/Web-Server
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
Code: Select all
#hiawatha
Code: Select all
#killall hiawatha
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:
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
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
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
It only involves selecting 3 packages in the PPM ,some configuring of PHP and Hiawatha downloading SiteMagic installer and running it.
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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: 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.
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
What did you mean by - "Hiawatha Config:"; where do I put the code? Is that before I start Hiawatha?
So I stopped here.
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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
or
to stop the server:
or
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:
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
Code: Select all
#/etc/init.d/hiawatha start
Code: Select all
#killall hiawatha
Code: Select all
#/etc/init.d/hiawatha stop
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
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
There's my CMS, local development, upload with rsync, create/edit with wysiwyg editor:
http://bkhome.org/shellcms/index.html
http://bkhome.org/shellcms/index.html
[url]https://bkhome.org/news/[/url]
- MrAccident
- Posts: 361
- Joined: Mon 31 Mar 2014, 20:53
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?
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?