Is it possible to run Phalcon project on shared hosting? - phalcon

I know to install Phalcon framework on a server I need root/administrator access on the server. But the shared hosting providers don't provide any ssh or root access. Then, How can I run my Phalcon project in shared hosting? Is there any solution?

No solution to shared hosting other than to find a shared hosting provider that supports it.
Official answer here:
http://forum.phalconphp.com/discussion/929/phalcon-on-shared-hosting
Answer includes list of shared hosting providers that support phalcon.
My advice: Don't use shared hosting. Check out VPS hosting which provides 'some' guarantee of allocation of resources. Price can be less in many cases unless you are using free shared hosting. Either way, its better to get acquainted with setting up a VPS sooner than later.

Related

How to setup Netdata to monitor my website performance?

So I have installed netdata on my machine using this tutorial https://www.how2shout.com/how-to/how-to-install-netdata-on-windows-10-wsl.html
I started it in my browser via the provided command 127.0.0.1:19999 and it only monitors and sends performance of my local machine (the laptop I'm using)
I own a website so I tried to enter my website IP + 19999 at the end but of course that did not work.
I'd like to set it up so I can measure live performance from my website.
Any idea how I can do that?
Your website runs on a server that your hosting provider owns. To use Netdata, Netdata would have to already be installed on your provider's hosting infrastructure, or you would require sufficient (effectively administrator) access to your hosting server (or servers) to install it yourself, which many hosting services would be unlikely to provide. If you are using a hosting provider that manages your website hosting you likely don't need Netdata to monitor your website performance - monitoring then is considered to be part of what you pay for.
On the other hand, if you are managing your own cloud infrastructure, it should be easy (and a good idea) to install Netdata to monitor any website servers that run on top of it.

Can Omnipay be used if you don't own the server?

Omnipay uses something called "GetComposer.com" for installation whos purpose is apparently to download and install other, required software.
Am I correct that this means Omnipay cannot be used in a shared hosting environment where you don't have hands-on-metal access to the hardware?
I know this is an old question, but it's unanswered so....No, you're not correct.
Composer simply downloads the required libraries for your application. It does require terminal access (Putty for example) to the machine, and that's about the only limitation you could see on a shared hosting environment. Some allow it, others do not.
You can use Omnipay on your website installed on external hosting. To do this first you need to download all libraries on local machine with use Composer an application-level dependency manager. But You must have installed web server with PHP on You local machine.(for example XAMPP) You need to use Command Prompt on Windows or Terminal on Linux to download libraries with use Composer. Then just copy "Vendor" folder to your hosting through FTP. Remember to use proper version of PHP.

Accessing the C:\ drive on azure VPS with ASP.NET

Basically I have a asp.net site hosted on windows azure, and I also have a virtual machine hosted there. Is it possible for me to read/write files to the disk on the virtual machine from my website?
I'm using ASP.NET MVC 4 if that's any help at all. Sorry for the possibly vague question, if you need more info i'll happily try to provide it.
Thanks in advance!
Sure. Since you want to access the VM's drive, and you have complete control over the VM it's easy.
Server
Expose your VM's drive using WebDAV. It's a HTTP API for file sharing.
Here's a WebDAV setup guide for Windows: http://mythoughtsonit.com/2013/05/deploy-a-file-server-in-the-cloud-webdav-on-windows-azure/
Client
If you are using Windows Azure Websites (very restrictive), your only option on your ASP.NET site is to add C#/VB code to read/write from the WebDAV share. Here's some .NET WebDAV clients:
https://github.com/kvdb/WebDAVClient
http://webdavnet.codeplex.com/
http://www.independentsoft.de/webdav/
If you are using a Windows Azure Cloud Project and have a Web Role (more flexible), on that web role you could make a startup task which maps the WebDAV as a network drive and use normal System.IO.File code. I think this is easier than the WebDAV client stuff, but it's up to you.
I came to a similar conclusion to #Yoshi. However, when trying to map the share to a drive on the instance hosting the web role via a startup task, I found that this requires WebDav client to be installed. This is installed as part of the Desktop Experience feature. To date I have been unable to install this using a startup task as it requires a reboot.
I have tried writting a startup task that includes the steps from this article but cannot get it to work so far.
Has anyone else managed this?

Is there any reason not to host a software repository with a standard web hosting service?

I have webspace and I was thinking of setting up a git repository on it.
If I am developing software and I want to host a repository (CVS, SVN, git, etc) online, is there any reason not to use a standard web hosting provider (GoDaddy, etc) to do this?
I'm thinking in terms of security, reliability, etc.
One reason for not using a standard-company is that usually shell-access is needed to setup a Version Control System (VCS). Many providers don't give shell access on normal webspaces.
When you are developing open-source software I'd recommend hosting at SourceForge, github, Google Code or similar providers, as your code is public there, you will get an issue tracker and several other tools that may help you. On github for example adding more developers to your project is very easy.
When you are developing closed-source software you still can use github, this gives you the same advantages as mentioned above, but of course it costs you a few bucks a month. Open-Source projects are free.
So while there is no real reason to not use standard hosting providers there are good reasons to use a company dedicated on hosting code.
As you asked especially for security: github (I use it as an example, as I host my code there as well) gives you a full list of information of what they do to ensure your code is safe.

Setting up Railo in the same way as Multiple Instance Adobe CF

I'm looking to install Railo in the same way we currently do for Adobe CF.
At present we run Adobe CF8 on top of JRUN 4, in a multiple instance setup. On our local sandboxes we use Apache as the web server. We then use Apache Virtual Directories to point to our codebase which exists outside of the CF Context. This gives us ultimate flexibility in that we can be running multiple servers, multiple sites, from anywhere location on our machines. In Production we use IIS 6, but the above still applies.
All the documentation that I've come across to date has not yet been able to emulate this. I've tried combinations of JBoss, Railo WAR, Apache, JkMount, Resin, JRUN, etc.
Things we are trying to avoid: We don't want Tomcat to be involved (duplicating the web server requirement), we don't want to have to configure anything in JBoss per new site (as well as Apache), we need our codebase to be run from any location.
Has anyone successfully managed to emulate this approach for Railo? Could you point me in the right direction, or could a representative from Railo write a blog post for it?
Thanks in advance!
Dave
The ability to install several instances of Railo or CF is not a Railo or CF feature but one of the application server. Railo has the great built in Sandbox security for each defined web context. A web context normally is aligned with a virtual host setting in the app server. Since in Adobe CF there is only one web context something like the sandbox security needs to be applied.
Anyway, different application servers (like Resin) allow you to use regular expressions for virtual hosts definition (this means that the web contexts are created on the fly and implicitly) or single conf files in a certain directory for each web context you want to create. After this has happened the settings for your different applications running in the different web contexts are separated from each other. Security at its best.
You can have your webroots located wherever you like. The only thing that does not work is that you create a virtual directory in Apache or IIS and then your application already runs in there as well. BUT what you can do in Railo is to create a mapping that is called identically and that points to the exact same location. Then you can use it exactly as in CF.
We might even consider to read the virtual directories from the web servers and implicitly create the corresponding mappings. In addition you could create per application mappings in order to solve that problem.
If you have any other questions, just email our Railo google group.
Gert Franz
Railo Professional Open Source
gert (at) getrailo.com
Here is a blog post on setting up Railo in JRun. Sean would be the guy to ask about this too if you have any more problems.