Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Aug 2018, 05:23
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Can I install a flat-file CMS locally?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Author Message
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Thu 28 Jun 2018, 07:29    Post subject:  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.
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2525
Location: 500 seconds from Sol

PostPosted: Thu 28 Jun 2018, 10:16    Post subject:  

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/viewtopic.php?p=896450#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
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Thu 28 Jun 2018, 11:21    Post subject:  

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?
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Thu 28 Jun 2018, 11:29    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Thu 28 Jun 2018, 16:40    Post subject:  

rockedge - OK I'll try it.
Thanks
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Thu 28 Jun 2018, 18:26    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Thu 28 Jun 2018, 19:24    Post subject:  

Slocko 5.7.0
I didn't try it yet; so I don't know. And what is Bionic?
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Thu 28 Jun 2018, 21:33    Post subject:  

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.....
Back to top
View user's profile Send private message Visit poster's website 
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Fri 29 Jun 2018, 19:36    Post subject:  

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?
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Fri 29 Jun 2018, 22:03    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Fri 29 Jun 2018, 22:59    Post subject:  

Yeah, of course I'll need help. Razz
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?
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Sat 30 Jun 2018, 11:02    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Sat 30 Jun 2018, 15:38    Post subject:  

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=SMDownloads&SMDownloadsFile=install.php&v=6

I ceated a script and placed it in Web-Server:
info.php
Code:
<?php
echo phpinfo();
?>


I created the directory /root/Web-Server/SMagic and placed the install.php into the directory
then in a terminal:

Code:
#chown -R webuser /root/Web-Server


Hiawatha Config:
Code:

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:
#hiawatha

stop hiawatha from a terminal:
Code:
#killall hiawatha


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
Code:
#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:
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.
Back to top
View user's profile Send private message Visit poster's website 
MrAccident

Joined: 31 Mar 2014
Posts: 238

PostPosted: Sat 30 Jun 2018, 23:35    Post subject:  

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:
#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.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Sun 01 Jul 2018, 00:42    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0500s ][ Queries: 11 (0.0039s) ][ GZIP on ]