Can we host a php site in AWS Lightsail?
I checked its feature but it shows wordpress joomla etc but not showing php.
Yes. AWS Lightsail is a server that supports many things. The feature you need is available and is called a "LAMP Stack":
LAMP stack is a popular open source web platform commonly used to run dynamic web sites and servers. It includes Linux, Apache, MySQL, and PHP/Python/Perl and is considered by many the platform of choice for development and deployment of high performance web applications which require a solid and reliable foundation.
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
In Wamp, what is the role of Apache server,SSL,php parser & SQL database from converting the program(php) to output.What is the function of each software (i.e.,Apache server,SSL,php parser & SQL database)that is used in wamp server.
The acronym WAMP refers (Microsoft Windows, Apache, MySQL and PHP). It is the alternative stack for the popular LAMP where L refers to Linux.
When we talk about a development stack we're referring to the set of software applications that work together to provide web services.
Apache is used to listen for incoming web requests from browsers on specific ports. The standard port for web requests is 80, and 443 for SSL. Each request made by a browser is interpreted by the Apache services to yield a response. The most common type of response is a HTML document which the browser displays.
When Apache is used with PHP the web requests are forwarded to the PHP interpreter. Which executes the PHP scripts as software instructions that generate the HTML document. PHP as a programming language can be very complex and people often use frameworks like CakePHP, Laravel or the Zend Framework. These are tools that help them make web applications.
MySQL is a database engine that allows applications written in PHP to read, write and delete data on the fly using SQL queries.
We call all the above the WAMP or LAMP stack because of it's popularity. It itself is not a standard but just an acronym that refers to when these tools are all working together. Over the years the popularity of this stack has resulted in people publishing easy to install packages that contain all the above, but in general you simply running this stack if you install them on the same network (or computer) and connect them together.
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.
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.