Why is RewriteBase not needed in Fedora? - .htaccess

I use Ubuntu and Fedora for personal and work. Ubuntu more so because they come pre-installed on work provided devices. Whenever I have to setup a web application on my public_html, I have to add a RewriteBase directive in .htaccess in order to get things working.
However, I recently noticed that I didn't set a RewriteBase in my Fedora Core (FC21) device and yet CakePHP run just fine. Urls were resolving correctly for user directories.
I've looked around in both machines comparing Apache settings. So far, I haven't located anything that seems to do the magic.
What have I been missing setting up on Ubuntu to achieve the same behavior? Or is this a Fedora Core specific change?
Thanks.

The document for RewriteBase mentions that it can be omitted provided that a context is provided by Alias or userdir for Apache >= 2.4.13. Ubuntu 14.04.3 LTS Apache is at 2.4.7, so figured it won't work yet there.

Related

Virtuoso fails to run after any update to virtuoso.ini

I've installed Virtuoso OpenSource 7.2.+ on my Ubuntu 14.04 LTS. When I change virtuoso.ini (any change such as adding a new directory to the DirsAllowed), the server fails to work; when I set the configurations back to its defaults, then it's working. Any idea here?
Yes it is solved!
The problem, as I said, was because of existing a transaction log from an earlier version. It seems this is an old bug in Virtuoso according to Bug286953.
Anyway, I removed virtuoso.trx file and restarted my machine, it's now working.

Installing CakePHP 2.x on CentOS virtual machine

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.

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.

how to configure XHProf for drupal 6 on windows?

With the help of Lorenzo Alberton tutorial, i get XHProf installed for drupal 6 on linux server. Now i need to get it installed on windows but i found that XHProf cant be installed on windows. Additionally, at drupal.org XHProf, is available for drupal 7 onwards. If anyone has installed XHProf for drupal 6 on windows then please share.
This question has already been answered here: https://drupal.stackexchange.com/questions/19193/how-to-configure-xhprof-for-drupal-6-on-windows
Just for the records, you do NOT need the Drupal module to use XHProf. You must download a compiled version for your apache (I'm using WAMP http://www.wampserver.com/en/, but can't remember where I got mine) and then enable it in php.ini. You can set the settings in the php.ini or trigger on demmand profiles. http://es2.php.net/xhprof

Why Intelligencia.UrlRewriter not work with iis6?

Intelligencia.UrlRewriter work with ASP.NET development server but not work in IIS6.
what is the problem?
It does work with IIS6
I suspect you are trying to do extensionless rewriting with it - this will not work it iis6
I suggest having a read of this by Scott Guthrie:
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
you need to install it first when you deploy it on IIS6. Try this installation guide below: http://urlrewriter.net/index.php/support/installation

Resources