How important is choosing a particular community Ubuntu AMI on ec2 to deploy rails app? - ruby-on-rails-3

I tried my best to deploy rails website on ec2, Unfortunately, I got some weird error like "Symbolic link not allowed" More details here ->
Deployed rails site on ec2 using capistrano, but it doesn't show up on the browser, here is the site -> http://passionate4.net/
Question: Is there a better way to choose ubuntu ami? Will that make the difference?

You have configuration issue. Just fix it.
Have you set Options FollowSymLinks in your HTTPD config?

Related

laravel 5 template changes doesn't show

I just started learning laravel 5, and have one running on an amazon web service EC2 instance. On the EC2 instance, I have Centos 7 with the lamp stack installed. I configure laravel to work with apache virtual host (I have other virtual hosted sites running which do not use laravel). My laravel website is fine, but some of the blade template doesn't show changes on the browser when i make changes to them. Only some of the templates have this problem. I tried php artisan cache:clear and php artisan route:clear but it doesn't do anything. Anyone have the same problem and have a fix? Thanks
After some more research i was able to solve the problem. I solved it by going into the storage/framework/view and delete all files in the directory except the .gitignore file

Yii app on Amazon EC2 how to make it work?

I would like to deploy a Yii app to Amazon EC2.
I've installed httpd, mysql, php and all the necessary modules.
The app was running fine on my wampserver localhost.
I've transferred everything (DB, app folder) but I'm having issues with accessing the site. I see default apache site, and I see directory structure under var/www/html/app folder, and var/www/html/app/web gives a blank page (or Internal Server Error). I have a .htaccess file in var/www/html/app/web. I was searching a lot, and have found informations about allowoverride, virtual hosts (I have only IP, what is server name then? the IP?), etc, and have tried a few different things, but I don't want to mess it completely up, and I'm pretty sure it must be some very simple adjustments to make it work, but I don't know what (maybe some settings with EC2 like elastic IP? I dont yet have that one but I'm not sure I need it). I don't have much experience, can you please point me to the right direction what else I have to set in order to make it work? Thank you very much!
UPDATE: I have set Elastic IP up and registered a domain.
I have simply chosed another image, and without any special actions it works. The first was an Amazon Image, now it's an Ubuntu.

Avoid font downloading in Glassfish

We currently have a Glassfish Server 4.0 hosting our webpage, with Apache 2.2 as our Digital Certificate Holder in Ubuntu Server. One of our clients did a Vulnerability testing and discovered that a font (specifically, the glyphicons-halflings-regular.ttf) could be downloaded by using the URL:
http://<URL>/<War>/faces/resources/fonts/glyphicons-halflings-regular.ttf
Is there any way that we can avoid that download and instead redirect that Link to a error page when people try to access any link of that type?
Thanks in advance
Well, the solution I found was this
I opened the Glassfish Console, went to Configurations –> server-config -> virtual servers -> server and then I clicked on the Add Property button
the name was: Redirect1
The code was:
from=/<war>/faces/resources/fonts/glyphicons-halflings-regular.ttf url-prefix=https://<URL>/<war>/
I did it with all of the Cluster and configuration instances of Glassfish Cluster
After a Glassfish and Cluster restart everything was working fine.
Regards!

"Cannot locate WordPress root directory," error while updating WordPress or installing any plugins

I am running WordPress on a CentOS server with Apache and Mysql and it was running smoothly a couple of days ago but when I am trying to install any plugin or update WordPress, it gives the error with the exact statement "Unable to locate WordPress root directory".
Any suggestions are welcome because I need to install a few plugins.
This error can be caused by the wrong FTP username being given (not an incorrect password – that would be trapped nicely by wordpress – but the username).
I guess this isn’t something that is going to happen often – moving a server and so changing the FTP username – but I’m glad I thought to read around before spending hours diagnosing the server.
This could be because of the web host you are using. If you are hosting it on a free web host it could be somewhat unstable. If you really want to test wordpress out to see how it would word if it did word correctly, try using WAMP.
http://www.wampserver.com/en/

subdomain for redmine via terminal

I installed redmine on a virtual server (Ubuntu 10.04) with this tutorial:
install guide
Everything seems to be correct, where I stuck is how to make my redmine installation accessible from browser or in other words how to add a subdomain to the existing.
The virtual Server is available under:
lvps46-163-79-1.dedicated.hosteurope.de
which points to a standard htdocs directory.(/var/www/vhosts/default/htdocs/)
My Redmine installation is under:
/usr/share/redmine/
I tried to setup a subdomain with plesk as written in the tut but this failed. Is there an easy (understandable for beginners) way by terminal to make the installation available under:
redmine.lvps46-163-79-117.dedicated.hosteurope.de
Kind regards,
toni
Just to make this complete. I followed the instructions with the apache doku. Unfortunately I couldn´t get the vhost working. I´m now using Mongrel Server on Port 3000 which works for me.