Installing CakePHP 2.x on CentOS virtual machine - linux

I have (finally) got a working CentOS VM with LAMP installed after following through this tutorial.
I am now trying to setup CakePHP on it as well. I have been following this guide but at the end of step 2 I discovered that the contents of my cakephp folder (from running ls -l) are (folders are marked with >)
composer.json
>config
>contrib
LICENSE.txt
README.md
>src
>tests
VERSION.txt
There is no app folder as I was expecting...
Can anyone explain why this is and how I should be downloading/setting up CakePHP?
Edit
I've just realised this may be something to do with how CakePHP 3.x should be installed (composer?). I just wish to have the latest 2.x (2.6.8 I believe). Does this just mean changing the web address used in the guide to download CakePHP (the address was https://github.com/cakephp/cakephp/archive/master.zip)? What should it be changed to?

As I wondered in the question - it is because that article was old and so master is no longer the version I want right now.
Instead the address becomes https://github.com/cakephp/cakephp/archive/2.6.zip
Since I wanted the latest 2.6.x release in particular. The last part of the address is just the major.minor version number.

Related

Why NetBeans can't find Mercurial path?

I have a Linux Mint VM, where I installed formerly NetBeans 12.x (up to 12.6) and now I've updated it to 13.0, all with flatpak, and even starting from a clean setup.
With all those setups, NetBeans can't find Mercurial, even if I really have it in /usr/bin/hg available and working (when used from the shell).
From menu Team / Mercurial / Initialize repository... I get the error "Mercurial could not be found", asking to check PATH.
The strange behavior is that if I even browse for Options and Mercurial Executable Path to /usr/bin I can't see hg in there, while it is in the filesystem!
Is NB browsing somewhere else when I open /usr/bin?
Is it accessing some virtual environment? I'm confused
I have a partial solution: the flatpak package is indeed at fail, as for some reason it's not seeing my /usr/bin but a virtualized (?) directory, where many files are missing - notably hg and hg-ssh
So I removed the package suggested by the Linux Mint Software Manager and installed the package got from the Apache NetBeans site, similarly to what #flied-onion did.
What's still missing is that NetBeans relies on the hgk application as an hg GUI interface for some functions (see Team / View). This is unknown to me, and I don't find it in any (recent) Debian flavor.

Downloading debian Neo4j version from Windows

I'm trying to download the Debian Neo4j version from a Window 7 machine. I'm not managing to find the URL in order to download the package/file . I have installed the GOW software for some linux commands.
Any assistance would be appreciated.
Update
I found this link - https://neo4j.com/download/other-releases/ . Know I need to figure out what is the best file to download in order to install it on an Ubuntu Machine
You've got two options :
If you've got access to the package repository (from your Ubuntu machine), follow the information in https://neo4j.com/docs/operations-manual/current/installation/linux/debian/ to install it as a package. That's the best option which also provides start/stop scripts, a user that runs Neo4j (neo4j) and also allows for easier upgrades.
If you can not reach the internet from your Ubuntu machine (as could be deduced from the way you're trying to do it, the zip (or tar.gz for Linux) download is the way to go. You can find that at http://info.neo4j.com/download-thanks.html?edition=community&release=3.2.3&flavour=unix
Hope this helps.
Regards,
Tom

Docs for installing Lucee?

I wish to use an alternative to ColdFusion. Researching Railo, I found the pointers to Lucee. There do not appear to be any docs explaining how to set up a Linux/Apache/Tomcat/MySQL platform for Lucee, and then install Lucee on top of it. I've tried setting up such a platform for Railo, but got stuck trying to get Railo talking to Apache over both http and https.
I wish to avoid the "all in one" installers that include Tomcat, as I'd like to use yum to keep Tomcat up to date on security patches.
If I've just overlooked the Lucee docs, can someone please point me to them? And if they don't exist, how could one "translate" the Railo docs to work with Lucee, and get the Apache-Lucee connection working?
UPDATE 2016-04-06: Thanks to all who answered. It looks like you've helped a number of people! I never was able to get Lucee running, but this was for lack of time, not lack of instructions. The powers that be also decided to move to an outsourced web design and hosting solution, and the firm that won the bid uses Drupal.
For Linux installs (Ubuntu) Digital Ocean has a great tutorial on installing Railo. https://www.digitalocean.com/community/tutorials/how-to-set-up-railo-cfml-engine-with-tomcat-and-apache-on-a-debian-7-or-ubuntu-13-vps
You can follow these same instructions to install Lucee just...
replace
wget www.getrailo.org/down.cfm?item=/railo/remote/download/4.1.1.009/tomcat/linux/railo-4.1.1.009-pl0-linux-x64-installer.run -O railo.run
with:
wget http://lucee.viviotech.net/downloader.cfm/id/136/file/lucee-4.5.1.022-pl0-linux-x64-installer.run -O railo.run
And everything else is the same.
note - If you want to get the latest installer just go to http://lucee.org/downloads.html scroll down to the Installers section and right-click the Linux 64-Bit link and copy the link url. Then replace the link in the wget above with the one you just copied.
Installation of Lucee on your local machine, following this help link : How to Set Up Railo CFML Engine with Tomcat and Apache on a Debian 7 or Ubuntu 13 VPS
Open your terminal and follow the instruction given below
Commands :
aptitude update
aptitude -y upgrade
Installing Apache
aptitude -y install apache2
Install Lucee
wget http://cdn.lucee.org/downloader.cfm/id/143/file/lucee-4.5.2.018-pl0-linux-x64-installer.run -O lucee.run
chmod 744 lucee.run
run sudo ./lucee.run
Follow the instructions.
That's it ..
To complement and for posterity, I'm adding this answer with new actual information. I've created a step by step video guide about installing Lucee on a clean Ubuntu Server 20.04.LTS and added them as a contribution to the official documentation. You can find the quick video guide at https://docs.lucee.org/guides/installing-lucee/installation-linux/linux-ubuntu-quick-video-guide.html
so that summed up is:
Follow this:
https://www.digitalocean.com/community/tutorials/how-to-set-up-railo-cfml-engine-with-tomcat-and-apache-on-a-debian-7-or-ubuntu-13-vps
replace with this:
wget
http://lucee.viviotech.net/downloader.cfm/id/143/file/lucee-4.5.2.018-pl0-linux-x64-installer.run
-O lucee.run
OR
wget
http://d8yjolse1mixx.cloudfront.net/downloader.cfm/id/143/file/lucee-4.5.2.018-pl0-linux-x64-installer.run
-O lucee.run
based on the version here:
http://lucee.viviotech.net or http://lucee.org/downloads.html
Drop the Jar or War install file into the correct folder for your J2EE engine. Or use your engine's admin pages into install the that file.
Config changes can also be made to more fully integrate across instances.
Almost any engine will do: Jetty, Tomcat, GlassFish, JBoss and Elastic Beanstalk are all good choices.
Lucee is also now fully OSGi compliant.
The easiest way to get started with Lucee is by using Ortus Solutions' CommandBox. CommandBox comes with an embedded Lucee server so you can be up and running in just minutes. CommandBox is a standalone, native tool for Windows, Mac, and Linux that will provide you with a Command Line Interface (CLI), package management, embedded CFML server and application scaffolding.

Unable to configure Tomcat 7 on Eclipse Juno

I have Eclipse Juno with Spring Tools Suite plugin installed.
I need to deploy a newly imported web project to Tomcat 7, which I installed on my system via repository.
The problem is that the New Server Wizard screen won't allow me to select Tomcat 7, as the description is empty and unmodifiable.
How can I fix this? I can select other versions of Tomcat but when I select the installation path of Tomcat I get an error that the installed version is 7.
As per the instruction s provided in this site
Follow these steps, as this is a known issue
Go to Window–>Preferences–>Server–>Runtime Environments and fix the broken path/link for the server.
Rename the org.eclipse.jst.server.tomcat.core.prefs to org.eclipse.jst.server.tomcat.core.prefs.bak (or you can delete this file). This file can be found at \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
Rename the org.eclipse.wst.server.core.prefs to org.eclipse.wst.server.core.prefs.bak (or delete the file). This file also can be found at the same location as above.
Follow these steps
1.)Go to Window–>Preferences–>Server–>Runtime Environments and fix the broken path/link for the server.
2.)delete this file org.eclipse.jst.server.tomcat.core.prefs under this location \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
3.)delete this file org.eclipse.wst.server.core.prefs under this location \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
After following these step's you can configure tomcat in eclipse.
Click on Add Configuration Runtime environments
On the Server Runtime Environments Window you will more than likely see Apache Tomcat 7.
If you remove the runtime environment and then go Back to the New Server Wizard Tomcat 7 will be available to add again.
Hope that helps. That drove me nuts for a few days
The Eclipse Juno may not be fully compatible with the Apache Tomcat 7 yet. Installing and configuring with Tomcat 6 works. Simple.

Mercurial / IIS / No module named osutil

I am trying to get Mercurial to be hosted via "hgweb.cgi" on IIS 7.5. I have everything configured according to http://www.jeremyskinner.co.uk/mercurial-on-iis7/ except for that I installed python 2.6 and Mercurial 1.7.3. When I try to go to the hgweb.cgi script, I get the following error:
"No module named osutil"
After a bit of searching, I've found that I need to install the python-dev packages, but that seems to only apply to unix. Is there anything else I need to get this working on windows?
Thanks.
Note that I tried the mercurial binaries/library.zip on both both HgTortoise and the Mercurial x86 installer available here:
https://www.mercurial-scm.org/downloads
(Mercurial 1.7.3 Inno Setup installer - x86 Windows - does not require admin rights)
I had the same issue trying to re-create an HgWeb server with Mercurial 2.1.1. I posted a question on the Mercurial mailing list.
Because HgWeb requires Python, you have to get Mercurial as a Python module. Fortunately, the Mercurial folks supply one; it's tagged py2.6 with the description
installs Mercurial source as Python modules and thus requires Python 2.6 installed. This is recommended for hgweb setups
Once I ran that installer, HgWeb started working.
Looking at the available downloads and the version specified in the question, it looks like you might have installed TortoiseHg 1.1.8 with Mercurial 1.7.3, which is probably missing some python packages.
I've been researching this problem myself (except I'm trying to run Mercurial via ISAPI), and it appears 1.7.1 is the last version that works with IIS due to dependency problems with msvcr90.dll in all later versions, including the newly released 1.8.2.
See this issue, which ultimately seems to be caused by this still open 1-year-old Python issue.
Judging by the conversation, a fix is not easy. I know of no workarounds, so I am forced to use 1.7.1 in the meantime.
Edit: CGI works with 1.8.2 though, so the above issue seems to only affect running Mercurial through ISAPI.

Resources