PHP Application Server With Laravel - php

This is my first time developing with PHP. I have been googling around but still, not got the answer.
On my Centos 7 server, I have installed LAMP.
I want to know what the web server is and what the application server is.
As I know, the web server is Apache HTTP Server.
What about application server?
From wiki, it said PHP-FPM
List of application servers
From Stackoverflow, they said Quercus, Zend Server and appserver.io
Stackoverflow

First of all you need to understand that Apache is the Web Application Server.
LAMP is an archetypal model of web service stacks, named as an acronym
of the names of its original four open-source components: the
GNU/Linux operating system, the Apache HTTP Server, the MySQL
relational database management system (RDBMS), and the PHP programming
language. The LAMP components are largely interchangeable and not
limited to the original selection. As a solution stack, LAMP is
suitable for building dynamic web sites and web applications.
Wiki on LAMP
There are different types of application servers like file servers, email servers and web servers. So you don't need an additional server as an application server. Apache is your Web Application Server, also called Web Server.

Related

SOS! How do I deploy multiple Laravel apps on a windows IIS server in a LAN

I am setting up an IIS server in readiness to host multiple PHP web apps. These will be used within our local network so no need internet access. I have read a lot of stuff on how to go about it but am getting lost even more. someone please help.
You can refer to this document for detailed steps about deploy php application on IIS.
Here are some main important points:
Install IIS in control pannel(windows) or server manager(windows server).
Configure php. Youcan download it from php official website or Web PI(more recommand). The version over php8 may not work on IIS.
Make the physical path of site points to root folder of application. It will auto generate web.config. Set the permission of root folder to avoid 500 error.
If you have multiples version of php, you can isntall php manager to configure them.

Is there a way to host Axis2 service within PHP/WordPress?

I am new to web services and I am learning to create web service on Axis 2 framework. I created a couple of simple (HelloWorld type) web services. I want to host these services on my Hostgator account, currently having a wordpress installation on it. I am not able to find a link between Php based framework and Axis 2. Is there a way to do that?
P.S: I dont want to write SOAP based web service in PHP yet.
Look, as you have found yourself, hosting an HTTP server (with HTML/PHP,JS files and a PHP interpreter engine) is different from hosting a Java web application (like your web services). You need a different hosting solution where you can deploy a web container/web server with your Web services application and there's no way your current hosting alone will do the trick.

Bypass tcp/ip communication to service located on same server

I'm working on a project that is located on 2 domains within same server:
1. DataSource system, which provides data for main app
2. Main app, providing the data for front-end app.
App 1 needs to work on seperate domain, as it's data source for more applications. I'm trying to find some way to boost communication performance. Simple call from app 2 to app 1 takes approximately 0.3-0.4s.
Is there anyway to force server to bypass TCP/IP communication and call service directly from localhost?
Both applications are written in PHP with Zend Framework. The server is IIS. Both applications are based on SOAP solutions.
Would appreciate any tips. Will provide additional information if needed.
Thank you in advance for any help.
You have a misunderstanding here. If you call services from localhost (i.e. via Zend_HTTP_Client), this means you are using the tcp/ip and http layers here. Everything works via sockets, no matter if localhost or external ip address.
If the other application needs to be accessible "from the outside" (no integration possible) you can imho only speed up by using a faster webserver (e.g. nginx), turning off modules in your webserver that you don't need or writing your own socket server, dismissing a whole lot of the processing apache and nginx do. http://devzone.zend.com/209/writing-socket-servers-in-php may help you with your first steps.

Basic knowledge for Node.JS?

I'm trying to learn about node.js and there are tons of examples out there, but one question that I can't find an answer to or example is how does this work with web hosts (i'm using inmotionhosting.com)?
say I have a basic website www.url.com/index.php (note: I'm using PHP also). For this website to work, all I have to do is upload a file into my file manager in my web hosting site.
How does node.js work? do I just upload a node.js file into the web hosting also?
In all the examples, they are using localhost with port 8000 or something. Can someone shine some light?
Thanks!
you will need at least VPS hosting to install node.js, shared hosting won't allow you to install any application on your own, unless you they give you the option to do it.
then it all depends on how you have configured and what application is node.js serving, you can't really say where to upload files by default unless a path is set either from you or from webhosting..
from nodejs.org
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
it doesn't say it specific for web use, instead you should use a web framework such as
ExpressJS where you can build you web application or any other stuff.. your host should provide further information on how to manage packages in your nodejs instance, configuration, etc..
some usefull links
Domain API
ExpressJS
ExpressJS examples
Here is something i came cross.
Hosting your node app?
Hosting Node Apps
nodeFu
Supported hosting providers?
Node Hosting
just read the descriptions for each section.

Is it possible to configure Apache to host both an ASP.NET Web Service and a PHP Web site?

Noob question (because I'm a noob when it comes to Web development). I'm not sure whether I should ask it here or at ServerFault.
I am developing an ASP.NET Web Service and a PHP Web site consuming the Web Service. They are meant to be run on different machines. However, only for development purposes, I need to run both on my machine. I cannot use virtual machines.
I would like to know if it is possible to configure IIS Apache to host both my Web Service and my Web site? Or, do I need to host the PHP site using Apache?
I am using
IIS 7.5 Apache HTTP Server 2.2 (NOTE: I have nothing against Apache. In fact, so far I like it more than IIS, however, I would rather not have two Web server applications installed in the same machine.)
PHP 5.3.4
.NET Framework 2.0 3.0 or 3.5 (whichever comes with Visual Studio 2008)
mod_aspdotnet for Apache 2.2
You can't. The best way is to setup apache and IIS on the same machine. Since it is dev you can just bind Apache to port 8080 or something. If you need them on separate IPs you need to make sure to change IIS to not bind to all addresses if you want to run both on port 80.
My setup is similar except in dev I bind apache to port 8080 and then on production we run servers with both IIS and Apache where unique IPs have to be binded to by each server.
For running them on binded ports, same ip (dev)
http://blogs.sitepoint.com/2010/07/13/run-apache-iis-same-time-1/
For running them on same machine binded to different IPs on port 80:
http://www.monochrome.co.uk/blog/2006/06/20/running-apache-and-iis-6-together-on-the-same-server
Apache can not host ASP.net websites. You will need to install IIS, which also works for PHP. You can get an all-in-one installer from Microsoft here: http://go.microsoft.com/?linkid=9722553
Apache does not officially support ASP, however, there are ports like Apache::ASP.
Please see the Apache Server FAQ
It is possible. Look at mod_aspdotnet project.
.NET and PHP files will be triggered by extensions and/or directories. Just set them up correctly in your httpd.conf
However, you will be working with older asp version. If you are on a Windows machine, the best course of action is to set up IIS and PHP.

Categories