I have created yii app locally. And now I wish to upload the same. I have brought the domain, but am bit confused, as which type of hosting should I go for ?
I have options like Cpanel(Linux), Parallels Plesk for Windows, VPS and Dedicated servers on some sites.
I have developed application using Yii 1.1
and database in MySql.
Could you guys suggest me best hosting available and suitable for me to go with.(Though It should be economic. :-p)
And what things should I consider, or are required while buying a hosting for my Yii application.
Edit :
I actually tried hostname/path/to/yii/requirements/index.php and It passed on my friends shared hosting, but I couldn't find proper way to install the Yii on his server space (He has an Windows hosting).
Someone said I'll require an SSH to run a command ( $php /yii/framework/yiic webapp directory-where-app-will-reside ) to install yii framework on server.
When called the Tech-support of his hosting agency they said youll have to go with VPS or dedicated server for SSH.
Yii applications runs on any servers/hosts that support php.
In this case you need a server or host that support mysql too.
Its related to your website traffic that choice sharing hosting or VPS.
In your application have to exists a file named requirement.php that shows Yii requirements, of course in Yii2. For Yii1:
Requirements ΒΆ After installing Yii, you may want to verify that your server satisfies Yii's requirements. You can do so by accessing
the requirement checker script via the following URL in a Web browser:
http://hostname/path/to/yii/requirements/index.php Yii requires PHP
5.1, so the server must have PHP 5.1 or above installed and available to the web server. Yii has been tested with Apache HTTP server on
Windows and Linux. It may also run on other Web servers and platforms,
provided PHP 5.1 is supported.
However is better your host be on LAMP platform.
Related
Hi to all and Thanks in advance,
I am new to google cloud platform. Recently i created one google account and created one Ubuntu vm instance on that.Meanwhile, downloaded free version of xampp(php mysql server) from apache and installed on it.And also pointing one domain to that IP.I have a plan to host more website on(by making virtual host) it.I don't know whether its wright or wrong. I am really grateful if you are answering my below queries.
1.Whether its secure or not. If no, how to configure secure xampp server.Please also mention
alternative options.
If yes, to do something to get it right?.
2.Please tell me, the proper way to make ubuntu apache server on google cloud platform
I am very much eager to hear from you guys.
You've already created a VM instance and installed based on Ubuntu and installed XAMPP on it. In general there's no difference in installing and configuring software on standard server or GCE VM.
Have a look at the tutorial Setting Up LAMP on Compute Engine:
This page shows you how to get a LAMP stack running on a Google
Compute Engine virtual machine instance. Follow the steps in this
tutorial to configure LAMP on a Debian, Ubuntu, or CentOS instance.
and check if you missed something.
In addition, I'd recommend you a few extra steps:
reserve a static external IP address and assigning it to your VM instance instance.
use appropriate to your load machine type instead of mentioned in the tutorial f1-micro (you can change it later).
learn more about GCP Firewall to use it instead of firewall on your VM instance.
create snapshots of your persistent disk to protect your data.
choose DNS servers for your domains: it could be Google Cloud DNS or other DNS servers.
think about reservation of Compute Engine zonal resources, it could be helpful in some cases.
check Marketplace for preconfigured LAMP solutions.
Going back to your questions:
To avoid some obvious security issues you should follow community tutorial, official documentations, security recommendations for used software and common sense.
You're able to install LAMP manually (as you already did) or use preconfigured solution from Marketplace.
you can use centos to configure your apache mysql php to run your site. For more info visit the link here,
https://www.wlpbasic.tech/how-to-configure-a-lamp-on-centos-7/
I've installed WordPress on a Windows Azure App Service utilizing the provided template. It works, but it is extremely slow. I am using Azure Databases MySQL on the same datacenter as the site. According to the logs, the database has plenty of juice and available resources. The site is hosted on an S3 service plan running PHP 7.2 and WordPress 4.9.8. How can I know what is the cause of the slow responses? I need to see if it's a driver, MySQL, PHP on Windows, Plugin, etc? I would love to do this at a low level. I've followed this horribly formatted blog post instructions, but I don't get any logs.
Have you tried to use the built in App Service Diagnostics tool?
https://learn.microsoft.com/en-us/azure/app-service/app-service-diagnostics
We're developing a dynamic website that is to be hosted on Azure Websites. Before going to the staging phase, I'd like to test it locally in an environment that is as similar to the production environment as possible. (By testing I mean clicking around and checking that things work, nothing fancy.)
Right now we're doing this with standard Apache, MySQL and PHP installations, but I fear that things that work on this setup might not work on the live web server (Azure Websites).
Ideally, we'd use our own computers to run virtual machines that would be exactly like the production server we will be deploying to. Is this possible? If so, how? If not, is there another way that is better than what we're currently doing?
Your best bet will be to perform a test deployment to an Azure Website instance. There isn't a local emulator or replica for Azure Websites and Azure Websites are more than just a vanilla instance of IIS.
To provide you with the best chance of success I would recommend:
Replace Apache with IIS locally.
Ensure the version of PHP you are using aligns with a supported versions on Azure Websites. Deploy the PHP "runtime" on your IIS setup locally.
MySQL - again check supported versions align with the version you are running. This isn't embedded in the Azure Websites feature - you could run your own on a VM or leverage one from ClearDB.
Don't want to pay for dedicated server for dev work.
I don't want to run a live apache server.
Is it possible to integrate lithium framework into shared hosting account doc-root?
Sure it's possible.
The only requirement is the version of PHP which should be >= 5.3
The .htaccess shipped with the framework is the only thing needed, to get a shared LAMP stack running with Lithium.
If you're meeting the requirements for Lithium (PHP5.3, etc) there's no reason you'd need anything dedicated.
Per http://li3.me/docs/manual/getting-started/requirements.wiki, the only requirement is PHP5.3. Everything else is gravy.
Command line access and stuff like git should come with any self respecting hosting company's offerings, even the bargain basement ones. Some of the optional modules, like MongoDB, can usually be run on the slightly beefier options (i.e. Dreamhost only allows Mong
Check http://nephtaliproject.com/php53hosts/index.php for a list of known shared hosting companies that support PHP 5.3 (or higher)
I have a server which already host ASP.Net website. I am migrating from blogger to WordPress. So I need to install WordPress on our server. Can we host WordPress on windows server??
Yes you can install Wordpress (or any other php application) on a windows server IF php is installed on the server. There are many tutorials on google on how to install and setup PHP on IIS (the Windows web server), but Microsoft actually provides an easy PHP install from their website : Install PHP on IIS from Windows Web App Gallery
Wordpress also needs MySQL to work, so that would have to be installed on the server as well.
Your main concern here I guess is whether you have access to the server to install PHP & MySQL:
If this server is provided by a hosting service, it might not support
PHP, in which case there's nothing you can do. You'll need to check with the provider whether they support it or not, and if they can install it.
If you have complete access to the server, you just need to install PHP and MySQL (a bit of configuration will probably be needed - lots of tutorials on google to help you there); then install Wordpress normally as you would on any other kind of server.
PS: if you install PHP yourself, you should make sure to check which version of IIS you are running (IIS6 on windows 2003? IIS7+ on windows 2008?). IIS6 requires some extra configuration to make everything work, as pointed out in the article linked by Marty in his comment.
When I first started using Wordpress I used a Windows Server (granted it was shared space by a service provider) and it ran poorly. I switched to a Linux hosting account and it ran much better. Just my two cents based on my experience.