There is a need for developing a web application that will be deployed on a Linux server on which I won't have admin privileges and also the internet.
I need to deploy self-contend binaries or other files on the server. I need a way to develop and deploy a web application in such a restricted environment.
My preferred development stack is Laravel but I am open for any other framework which can be used to develop the application for such a scenario.
I can only answer on Laravel's behalf: Laravel alone requires only PHP binaries. It doesn't need internet, not even composer while in production mode. You can zip the entire application with fetched dependencies from another computer and deploy it anywhere you want.
As for other software, I'm sure you can download them as tarballs and install them as basic user without root privileges. Check out the PHP site for stable Linux releases: https://www.php.net/downloads.php
Related
In our company intranet we are not provided with internet connection due to security reasons. Is it possible to develop laravel application in such an environment? Is it possible to download laravel and all dependencies in a local server and serve the same to the development team?
yes, but first u need to make main (skeleton) Laravel project with all your dependencies(with internet), and after just make copy of skeleton project(without internet). Or u can try to install installer https://laravel.com/docs/5.8/installation#installing-laravel
I am learning laravel for a school research project and am currently stuck at this. I have installed xampp and composer so far, I installed xampp to make use of the php.exe file that composer asks for, however, I realized that when I execute this command "php artisan serve" I am able to launch the new laravel project without having xampp running, does this mean that laravel does not require a separate server?
does this mean that laravel does not require a separate server?
Not really, php artisan serve is only meant to be used for developing environment since it uses PHP's built-in webserver.
Taken from its documentation
This web server was designed to aid application development. It may
also be useful for testing purposes or for application demonstrations
that are run in controlled environments. It is not intended to be a
full-featured web server. It should not be used on a public network.
In production you should use a better webserver such as nginx.
Is it possible to run Cake 3.0 or higher on Azure Web Apps? I have an app running locally on a 3+ version but when I installed CakePHP on my Azure web app it's running 2.5.1.
I feel like it's just a matter of uploading all of the newer files and the db created for the 3.0 version but scared there is some kind of write access the new cake will need thus preventing it from running and burning a ton of my time.
I started learning PHP 3 weeks ago so calling me a newb is probably an insult to newbs.
This article tells answered most of my original questions regarding this issue.
Yes, it is possible to deploy CakePHP > 3.0 applications to Azure Web Apps. But we need to some preactions to make the application to run. Generally, you can try to following steps:
Create an empty Azure Web Apps, and enable Composer extension, and also you can enable Visual Studio Online for easy script modifications and command running. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension for more.
Create a file named web.config with the content at http://book.cakephp.org/3.0/en/installation.html#iis7-windows-hosts in the root directory of your application.
Add the inlt extension in PHP runtime on Azure. Add a folder named ext in your root directory, create a file ext.ini in this folder with the content:
extension=php_intl.dll. Add an App Setting to your Web App with the key PHP_INI_SCAN_DIR and value d:\home\site\wwwroot\ext. You also can do this step leverage Visual Studio Online extension after deployment. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/ for details.
Set up the development environment of your Azure Web Apps, deploy your CakePHP application to Azure via Git. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment for details.
I have developed a symfony application and it's done.
It's been a couple of days and I can't figure out how to deploy this into a real apache server, when I copy it to the public_html it doesn't work assets don't load properly.
Can some one give me a step by step description of how to deploy it so that when I navgiate to example.com url I see my symfony application.
Thank you
If you try to deploy your application on a server, you have to configure apache. The best way its to make a virtual host.
Here the documentation:
http://httpd.apache.org/docs/current/en/vhosts/examples.html
http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html
I would suggest using Capifony which provides a specialized set of tools on top of Capistrano, tailored specifically to symfony and Symfony2 projects. (according to the documentation)
The advantages of using capifony are,
deploying is as simple as running cap deploy from your project root directory.
It stores multiple releases.
It allows you to use SCM(s) to pull your application code down to the server.
You can configure it to run any batch command during the deployment.
It performs a transactional-like deployment process (if any step fails, the deployment is
rolled back and the current directory points to your last release)
You'll also need to troll through this part of the documentation to figure out how to get your application running under Apache.
I have written a web app in codeigniter and it uses PHP 5.3.
I have looked at web roles in azure, but it strikes me as not being flexible. For example, it is not so easy to install new dlls and to mess with the server etc.
Is it better to run PHP on a virtual machine on azure or use a web role?
Have you looked into Windows Azure Web Sites? Some of the benefits for your scenario:
PHP 5.3 is installed by default
Deployments are quick and flexible [FTP, Git, GitHub, BitBucket]
Configuration is simple
Environment setup can be scripted using cross-platform command line tools