How to compile a project from github for composer but do not use composer repository? - github

I want to instal October CMS, installation guide is here: https://octobercms.com/docs/setup/installation
but I do not want use composer and install it from repository by composer.
I want download files from here: https://github.com/octobercms/october
and install/compile downloaded files on my local server.

October is no longer free and open source (see https://octobercms.com/blog/post/october-cms-moves-become-paid-platform), and as a part of their v2 they no longer support hosts without composer support or exec() access. The best you could do with October is purchase a license, use composer locally; and then just transfer the files to your server directly, but you won't be able to use the backend to install or update the core, plugins, or themes from the marketplace.
The good news is that the core maintainers have forked the project and are continuing the original project as Winter CMS (see https://github.com/wintercms/winter/issues/5; disclaimer, I'm one of them); and Winter CMS will continue to supports hosts without composer or exec() access.
Winter CMS is currently only available to install through composer, but it does support installing and updating plugins via the backend without composer. We're currently hard at work at getting our marketplace up and running, as well as our web installer, but in the meantime it uses October's marketplace instead.

Related

How to make Alfresco ADF work with Community Edition 5.2?

I simply installed Alfresco 5.2 Community edition and installed Alfresco ADF 2 demo shell application:
https://github.com/Alfresco/alfresco-ng2-components/tree/master/demo-shell
But after running npm install and npm start, I get the below error when I login:
Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
I follow various forum post to correct this CORS issue but none of them work. Even the instruction given in the readme of demo app related to CORS setting are incorrect as it refers to config/webpack.common.js which does even exist in the same demo app.
Is this because I am running Community Edition as it seems to suggest to run Enterprise edition? I want to build ADF on top of Community Edition.
I also tried against Alfresco 6.0 EA Community Edition but no luck.
Follow this documentation or stop alfresco server, download enablecors-1.0.jar file and place it under <alfresco-home>/modules/platform folder and start alfresco.

Upgrade Moodle 2.5 to Moodle 3.3

I want to upgrade a moodle website currently on version 2.5 to the latest version.
I need to clarify that is it possible to upgrade Moodle 2.5 directly to Moodle 3.3.
OR
As mentioned in the moodle upgradation document
"Note: You can only upgrade to Moodle 3.0 from Moodle 2.2 or later. If upgrading from earlier versions, you must upgrade to 2.2 as a first step."
I can only upgrade to Moodle 3.0.
Please confirm.
Thanks in advance.
In order to upgrade Moodle 2.5 to 3.3, start by backing up your site. This includes:
The Moodle files.
The Moodledata files.
The Moodle database.
Make sure you have everything and that no errors occurred while you were backing it up. If you want to be extra sure, restore it to a different location, maybe even locally on your computer and get it working there. Don't forget to adjust the settings in the config.php file as well as running the Moodle Search and Replace tool (it is not in the Moodle menus). Once you are sure that everything is working, and you still have the original unmodified backup files, you are ready to move on to the next step.
Verify your web server environment
Make sure your web server meets the hardware requirements for Moodle 3.3. Note the changes, especially in memory requirements from 2.5 to 3.3. Also make sure your server meets the software requirements for Moodle 2.7. In fact, when upgrading, it is best to verify the software requirements for every version of Moodle you will be skipping in order to find out which system components you will need to be add before proceeding.
Also, before you get started, make sure any 3rd party plugin and themes added to your site will be compatible with Moodle 2.7 and Moodle 3.3. If not, you will need to upgrade these first. If they are not available for the newer releases of Moodle, check with the maintainer of the plugin/theme to see if there might be an updated version forthcoming. If not, you will either need to fix any problems in the code yourself that may come up, switch to another similar plugin that provides similar functionality or remove the plugin completely.
Re-creating .git
The easiest way to upgrade Moodle is using Git. If Moodle was not installed using the "git clone" command, your installation will likely be missing the .git directory. You can check this by using the "git status" command. If you already have a .git folder, you can skip this section and go straight to Upgrade to Moodle 2.7. Otherwise, here is how you can re-create it:
Take note of the build date for your current Moodle installation. You'll find this on its Notification page near the bottom of the page.
Re-create your .git folder using the following commands:
# git clone a new copy of Moodle into another location
git clone git://git.moodle.org/moodle.git
# Checkout Moodle 2.5 (the version of your current site).
cd moodle
git checkout MOODLE_25_STABLE
Look through the log for a weekly release that is dated the same as your build number. The build number is a date in the following format: YYYYMMDD. Take note of the related commit number.
Next, rollback the files to the commit number of the build. Replace "56e05fced" with the actual commit number.
git reset 56e05fced
Once this is done, copy the just the .git folder into the web root of your current Moodle site.
Upgrading to Moodle 2.7
Before you get started, make sure any 3rd party plugin and themes added to your site will be compatible with Moodle 2.7. If not, you will need to upgrade these first.
git checkout MOODLE_27_STABLE
Login to your website as an administrator. You should see prompts that will guide you through the process of upgrading Moodle.
IMPORTANT: Up to this point, you could just roll back the files and everything should be back to the way it was. Once you move beyond this point, the only way to revert your website will be to delete the whole site and restore the backups you made earlier of your site's files and database.
Follow the prompts to upgrade the database. Be prepared as you may need to upgrade some of the plugins as well or make some upgrades to your web server and/or database environment.
Once you have everything running again, it will be time to upgrade to Moodle 3.3.
Upgrading to Moodle 3.3
Have you upgraded to Moodle 2.7 yet? If not, go back and complete that step first. Don't forget to make sure your web server meets the hardware requirements for Moodle 3.3.
Make sure your server meets the software requirements for Moodle 3.3 in order to successfully complete the upgrade from Moodle 2.7.
Next, upgrade Moodle from 2.7 to 3.3:
# Enable version tracking so that it is easier to upgrade Moodle in the future.
git branch --track MOODLE_33_STABLE origin/MOODLE_33_STABLE
# Upgrade Moodle to version 3.3.
git checkout MOODLE_33_STABLE
As you did before for Moodle 2.7, Login to your website as an administrator. You should see prompts that your database is about to be upgraded. If not, go to the Notifications page under Site Administration. Follow the prompts again to upgrade the database. As before, be prepared as you may need to upgrade more plugins and themes, and will likely need to make some upgrades to your web server and/or database environment.
That's it. If you followed the above instructions, your Moodle 2.5 site should now be upgraded to Moodle 3.3. To get the most out of your upgraded site, be sure to at least read the New Features page for each version of Moodle from 2.6 to 3.3.
To upgrade your site to newer bug/security release of Moodle 3.3, you will need to repeat some of the instructions. Essentially it will involve:
Backing up your site files (moodle and moodledata) and database.
Using the "git pull" command from within your Moodle folder.
Logging in as an administrator and following the upgrade prompts from the Site Administration > Notification page.
Verifying that everything on your site still work as expected.
Bug and security fixes come out every week but are only officially release every 2 months.
Hope you find this information useful.
Best regards,
Michael Milette
Per the upgrade documentation for 3.3 it says "You can only upgrade to Moodle 3.3 from Moodle 2.7 or later." https://docs.moodle.org/33/en/Upgrading
So you must first do an upgrade to v2.7 before you can do an upgrade to v3.3
Also note in the v2.7 upgrade documentation it says "You can only upgrade to Moodle 2.7 from Moodle 2.2 or later." https://docs.moodle.org/27/en/Upgrading
Personally I have found less problems when I do upgrades in smaller jumps. So in your case 2.5 to 2.7.20 is a requirement. In theory you could then go from 2.7.20 all the way to 3.3 but you may want to consider 2.7.20 > 3.0.10 then 3.0.10 > 3.3
I can say that I have actually upgraded Moodle 2.3, and Moodle 2.5 successfully to 3.x, though not 3.3 specifically.
That being said, you have to also take the following considerations:
Are you up to the minimal PHP version? (5.6.something)
Do you have the new modules required by 3.x version (3.3 added a few I think)
Are your modules ready for 3.x?
If you aren't sure of any of these, I would go grab a Vagrant/VirtualBox/Docker setup of Moodle, stage your current site (i.e. install it with the same software you have installed on your production server), and upgrade it locally to ensure everything goes as planned.
First you backed up before any moodle 2.5 upgrade.
Then download new moodle 3.3
After then unzip folder
go to xampp->htdocs->your project
paste and override new folder
Copy your old config.php file back to the new Moodle directory
Sometimes, the environment may cause issues, sometimes the Moodle versions. I have faced both. But managed to upgrade. Last time for upgrade to 3.9.2 installed the old version to local server for reference and did a clean install on the cloud. I have upgraded Moodle 2.x to 3.2 for a couple of institutions. Please feel free to contact if needed.
Few steps to consider in this
Take backup of Moodle app, Moodledata and DataBase
You have to follow the upgrade process twice
First you need to upgrade from moodle 2.5 to moodle 3.0
Now you can upgrade you new moodle 3.0 to moodle 3.3

How to install multiple vendors into one project using composer

I would like to know how to install multiple vendors into one project using composer. E.g I would like to install Paypal SDK and Stripe SDK into my project.
How do I go about this, and how would the folder structure look like?
You can install as many dependencies as you wish using Composer. For instance, to install both Paypal's and Stripe's PHP libraries, you'd run these commands:
composer require "paypal/rest-api-sdk-php:*"
composer require stripe/stripe-php
Afterwards, both libraries would be installed in the vendor directory, and both would be automatically included in your code when you load dependencies with:
require_once("vendor/autoload.php");

git dreamweaver/cfbuilder/eclipse local history

looking solution for code local history in dreamweaver/cfbuilder. we are using Git-Hub for version controlling. I don't know if I can using git-hub for local history in dreamwearer or cfbuilder.
I was googling and found {https://github.com/vishr/local-history}. look like. it is for Atom IDE but we are use dreamwearver & cfbuilder. if some have any idea if I can enable these two Editors local history it will be great help?
Thanks
I'm sure that CFBuilder will have a plug-in for git. Since CFBuilder is a version of Eclipse; this plug-in will probably work:
http://www.eclipse.org/egit/
I do use DreamWeaver and here is a plug-in that integrates git:
https://github.com/ChrisMcKee/gitweaver/
UPDATE:
I'm sorry. Adobe stopped development on the Adobe Extension Manager CC for CC 2015+. It will not work with newer versions of DreamWeaver CC. I did have Adobe Extension Manager CC version 7.3.2.29 installed. The version that you can download from Adobe's web site is 7.2.1.6. Neither of these versions work with DreamWeaver CC 2017
https://www.adobeexchange.com/resources/27
Adobe doesn't appear to offer an alternative for installing extensions.
I did find an Extension Manager that works with DreamWeaver CC 2017 on the DMX Zone web site.
https://www.dmxzone.com/go/22670/dmxzone-extension-manager-for-dreamweaver/#
You can use it to install the extension (and refresh the installed extension list to get it to appear). However, the extension does not appear in DreamWeaver at all. So, even though it is "installed" it doesn't do anything.
At this point, I would recommend using something else that is not integrated into DreamWeaver CC 2017+. Adobe seems to going down a path that discourages plug-in/extension development.
I have used gitKraken before and it works pretty well as a graphical git interface.
https://www.gitkraken.com/

Umbraco CMS: Manual Installation

I am using Windows Vista Ultimate and I want to install Umbraco CMS, with which I have no previous experience.
Common installation methods i.e. Installing either via Microsoft Webmatrix or Web Platform Installer didn't work for me. The former is for 7 and 8 versions of Windows and the latter downloads all installation files but fails to install. That is it shows "Installing ..." dialog for over 3 hours that makes me to forcefully end the installation. So all efforts have to be done from scratch (including download of the installation components using Web Platform Installer).
Is there a way to manually install Umbraco without the help of Platform Installer? I have downloaded seperately the files needed for Vista(e.g. Umbraco 7xxx.zip,Powershell 2, ASP.NET MVC, etc.). I don't see any executable in the package for Umbraco. There are just DLL's which I don't know where to copy to, as well as many aspx and ascx files that I don't know what to do with.
http://our.umbraco.org/contribute/releases shows the latest and all other available umbraco releases.
Under the 'Current' heading, you will find links to the most recent stable release detail page where you can grab UmbracoCms.X.X.X.zip which are all the files you need to go through the process manually.
One of the absolute best things about umbraco is that it's so easy to spin up a new isntall this way!
Important! Before you unzip - be sure to right-click the .zip file and open the properties page.
There will be an option to "Unblock" - be sure to click this or you may well experience issues with the dlls.
Unzip these files to where your webroot will be, set-up your IIS site and open in your browser - umbraco will automatically pick up that you need to do 'the install' and take you through a few simple steps that set-up the database and your admin credentials. There are no exe's or installer files - it's all embedded, more-or-less, in the site.
A good practice is the remove the [/install/] folder once you've gone through these steps.
Umbraco has some installation documentation here if you want to see all the various ways and steps available to install an umbraco site. -I prefer the .zip way described above, but you can also go the NuGet route too.