Symfony with only FTP access - symfony1

I'm currently developing on my local pc, to which I have complete access of course.
However to my production server I have only FTP access.
Now, this step
http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration
On Symfony's installation guide, suggests that I need to edit the httpd.conf
I was wondering if there's an alternative since I don't have access to it on production.

Try reading this. I haven't tried installing Symfony on a shared host, but I see no reason for it not to work.
Generally shared hosts allow you to set configuration parameters in .htaccess files, so you can override httpd.conf without modifying it.

Related

Can't access my reddit installation

I install Reddit Script on my server but I can't access my installation. I try to access http://129.xxx.xx.xx (my server IP address but is has a redirection to reddit.local and here looks to load for ever.
I install it using my automatic installer and after that I just populate the script with some data as per instruction provided in the bottom of the instruction document.
I miss something?
You'll need to configure the hostname you used (it sounds like reddit.local) to point to the correct place. The easiest method to do this is via an entry in your /etc/hosts.
Does it work if you request from localhost on the server?
The install script is designed for testing (i.e. in a Vagrant VM), not production; if you're trying to set up a production website, you'll probably want to follow the manual install guide.

access var/www folder on ubuntu 14.04 vps

I recently installed apache and php on a ubuntu vps and i'd like to be able to make web requests from an iPhone app to php files on the server namely files inside the www folder ex:'var/www/myfolder/echo.php' by ways of a web request from the app to the URL 'http://ipaddress/myfolder/echo.php' or whatever the correct url is. I do not know the URL i need to type in to access the echo.php file. can anybody shed some light on this confusing situation I'm in?
ps. this is my first time working with servers
You need to check what your DocumentRoot is set to in your Apache configuration.
So if /var/www is the DocumentRoot, which is the default on Ubuntu, then your URL will be http://machinename/myfolder/echo.php, which is what you have.
Before doing any coding on the iPhone, test the .php file in a web browser.
Any errors during development and testing, then check the Apache error log (/var/log/apache/error.log).
consult https://stackoverflow.com/a/23175981/2038460
solved my problem! i just had to specify the document root to actually be the folder i was working on, i though it'd be enough just having it at/var/www but apparently not, had to be /var/www/folder

SquishIt Access to the path denied exception when deployed to hosting

Whilst on my local machine the following code behaves perfectly.
#Html.Raw(SquishIt.Framework.Bundle.Css()
.Add("~/css/normalize.css")
.Add("~/css/nonsemantic.css")
.Add("~/css/custom/basic/site.css")
.ForceRelease()
.Render("~/css/style.min.css"))
A new minified style.min.css file is created under the specified directory.
However, when I deploy my code to my hosting provider I get an UnauthorizedAccessException with the message of "Access to the path 'C:\...\style.min.css' is denied".
I don't think it is a problem with my SquishIt implementation, but I can't for the life of me figure this one out.
You might need to use your hosting provider's file management tool to give the app pool identity write access to the folder SquishIt is trying to create style.min.css in. For an example of how this is done at one hosting provider, see Setting Folder Permissions for Elmah in this tutorial:
http://www.asp.net/web-forms/tutorials/deployment-to-a-hosting-provider/deployment-to-a-hosting-provider-deploying-to-the-production-environment-7-of-12
On your local machine do you run under IIS or using the Visual Studio Development Server (Cassini)? If it's a folder permission issue you'd see the same thing locally, as in the preceding tutorial from the same series:
http://www.asp.net/web-forms/tutorials/deployment-to-a-hosting-provider/deployment-to-a-hosting-provider-setting-folder-permissions-6-of-12

How to Run the copied sercidor symfony project in local machine

I'm new to symfony framework and a new customer has a system developed over this framework. I do not particularly have problems with PHP for many years and I have difficulty learning to use the frameworks, symfony is not difernete.
However, I took the files to my server from the client machine and am having difficulty accessing the system address on my machine.
I'm getting an error accessing the address of the application.
Forbidden
You don't have permission to access /project on this server.
Someone could still help me?
Try:
php symfony project:permissions
to fix permission problems on the project. If this does not work you can contact me (in portuguese)
Maybe you forgot the
allowoverride ALL
Directive inside the vhost, which block your .htaccess.
See config/vhostexample.txt for an example.

Rails 2.3.8 in IIS6

My server is running on IIS6, and i having trouble with setting up rails with IIS.
1st) is there any posible way to run Nginx on a domain:80 while therest:80 are running on IIS?
2nd) How should I make it work on IIS6 because despite follow the instruction here http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx , I just can't get it to work. Result is a "Directory Listing Denied" error.
Thank you very much.
I see two options if IIS is a necessity:
I would propose to investigate IronRuby, which integrates better with IIS.
Otherwise I would run nginx on another port, and let IIS forward a certain path to that instance.
Personally i have deployed on windows, but just used apache and a mongrel-cluster.
When i was looking at it, IronRuby did not yet offer the integration with IIS; and i found very little information concerning how to configure IIS to do what i wanted.
Good luck! :)
1.) No, there is no way you can have 2 different programs running on the same port, it's simply not possible. But you can change either one to run on different ports (for example, if you want Nginx as the "primary", give it port 80 and change IIS to 8080 or whatever). Or, as #nathanvda mentions, you could use a redirect script from one to send certain paths to the other (port & path).
2.) The "Directory Listing Denied" error suggests that either (a) you haven't set the directory permissions correctly in IIS--be sure that Execute Permissions allow scripts in all your Ruby directories, or (b) the handler mapping which directs files to use the Ruby interpreter via FastCGI is not set correctly--double-check step 8 or check other sources for more details on this setting.

Resources