Support ⇒ Dragonfly CMS v10 ⇒ Phar based installer ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

Phar based installer Reply to topic


I made an installer using Phar.
  1. Download and extract the zip
  2. Upload dragonflycms.phar.php to a directory where you want Dragonfly CMS v10
  3. In your browser run example.com/{directory}/dragonflycms.phar.php

In 2 steps it should download the dragonfly cms package and extract it.
After that, the normal installer can be used.

When PHP is not running in user mode, it asks for FTP login details.

With this script it took me 10 seconds instead of 30 minutes to install all files on a server Smile

Keep in mind this is the first alpha release!!!!
Attachment: dragonflycms.phar.php.zip
Description This is version 2 which has some bugfixes
Filename dragonflycms.phar.php.zip
Filesize 5.74 KiB
Downloaded 42 Time(s)
You are not allowed to view/download this attachment

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Sat Feb 27, 2016 4:53 pm; edited 5 times in total


Excellent!

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


When PHP is not running in user mode, it asks for FTP login details.

Evidentally, my php is not running in user mode as it asks for my ftp login details. It is entirely probable that I do not understand how this works, but is it a big ftp security concern to post my ftp login details into phar so that it can connect to my ftp server? Can this information be retained on your end? Also, is there a way to input the ftp port number when running on a non-standard port?

Maybe a better question is how to put php in user mode. I have been googling but I don't understand, yet. I have always used it in a default install with no changes. I also read where "safe mode" was deprecated in version 5.3 or 5.4 so it would not apply to me in version 5.5. But then, I am testing on a server where I am root and there are no other user accounts on it. It is not a shared hosting server.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Devuan jessie / Apache 2.4x / MariaDB 10.x / PHP 5.6x / DF 9.4


warden wrote
Evidentally, my php is not running in user mode as it asks for my ftp login details. It is entirely probable that I do not understand how this works, but is it a big ftp security concern to post my ftp login details into phar so that it can connect to my ftp server? Can this information be retained on your end? Also, is there a way to input the ftp port number when running on a non-standard port?

If you use HTTP instead of HTTPS then yes, your FTP details will be transferred insecurely once.
But then again, if you use an FTP application and don't use SSL/TLS for the connection, the same is the issue.
The phar installer itself uses TLS when available.

warden wrote
Maybe a better question is how to put php in user mode. I have been googling but I don't understand, yet. I have always used it in a default install with no changes. I also read where "safe mode" was deprecated in version 5.3 or 5.4 so it would not apply to me in version 5.5. But then, I am testing on a server where I am root and there are no other user accounts on it. It is not a shared hosting server.

Google for:
  • PHP-FPM (NEW and preferred)
  • PHP-FCGI
Currently you are probably using PHP as an Apache module.
blog.layershift.com/wh...s-fastcgi/

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Sat Feb 27, 2016 6:58 pm; edited 1 time in total


Google for:

PHP-FPM (NEW and preferred)
PHP-FCGI

Thank you DJ! I recently configured a nginx server with php-fpm, so this will be a first with apache. That article you linked to was excellent. Thanks again.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Devuan jessie / Apache 2.4x / MariaDB 10.x / PHP 5.6x / DF 9.4


I have apache2 (v.2.4.x) with php5-fpm (devuan-jessie) configured for user mode.

I then used the phar download script and it is great!

However, in installing the DF script, the database configuration script only picked up the mysqli, and not the MariaDB (mysql) database. Is this an installer bug or do I need to revert back to mysql database? I only installed MariaDB to test it out anyway. It has served as a perfect "drop-in" replacement for mysql, so far.

In case you are wondering, yes, I did check that the mysql service is running, 😀

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Devuan jessie / Apache 2.4x / MariaDB 10.x / PHP 5.6x / DF 9.4


MariaDB = Percona = MySQL and MySQLi is the php driver
That's the good and bad part of forks Smile
I've modified the installer to make that clear in the select option at install

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Sun Feb 28, 2016 4:57 pm; edited 2 times in total


I'm just trying a v10 DF install to see what it's like with my existing themes etc. I've never used mercurial etc. and am no expert! So I've installed this version using the Phar install which worked a treat, thank you. So what do I do now to ensure that DF10 is kept up to date with bug fixes etc? I'd appreciate easy to understand step-by-step instructions from here!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


You can just rerun the phar installer and it should update all files.
I just updated to the latest v10, so try it 😺

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Mon May 30, 2016 2:17 pm; edited 1 time in total


That's easy then, thank you! Will the update service pick up when it needs running?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Not yet, we are still thinking how to solve an auto-update.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


OK, thanks. Incidentally, the email I receive to say that someone has responded to a thread has the message and the subject the wrong way around...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


rosbif wrote
OK, thanks. Incidentally, the email I receive to say that someone has responded to a thread has the message and the subject the wrong way around...

Please start a new topic about that issue.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Tue May 31, 2016 9:41 am; edited 1 time in total

All times are UTC


Jump to: