How to run my node app alongside my php application [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
I've been playing around with nginx and reverse proxy's to try figure out how to run my nodejs app alongside my php application. The node app is just a simple socket io chat app but i'd like it to run on chat.mydomain.com. Would someone be able to guide me in the right direction?
Thanks

You are looking for NGINX server blocks.
You can create one proxy for your php app on yourdomain.com and another one for chat.yourdomain.com which points to your node app.

Related

Why PHP built-in web server should not be used on a public network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I've been reading about PHP document in https://www.php.net/manual/en/features.commandline.webserver.php and was wondering why built-in web server should not be used on a public network?
Is it because of the security issues?
If yes, is there any example or details about this?
From the documentation:
The web server runs only one single-threaded process, so PHP
applications will stall if a request is blocked.
Also, it won't restart by itself if for a reason or another the process crashes.
In a pinch, it's a good tool, but it's definitely not be used on a public network.

monitoring Requests in php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a project in PHP and it works as a REStFull service, an android application constantly request some functions, I want to know, from the server side, How could I see all the petitions?
the PHP project is in a hosting.
If you are after activity log, your web server can provide that (Apache or Nginx) for example, otherwise, you will have to implement your own logging strategy in PHP (https://github.com/Seldaek/monolog can help you)
If you want to go further, you can use logstash alongside Kibana and Elastic to get you a nice representation of your service's behaviour.
https://www.elastic.co/products/logstash
If logging your Rest service is very costly in term of performance, www.gearman.org is a very good option to easily bring some asynchronousity in your application.

Access client's SQL Database with PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was thinking is there a method to gain access to a client PC's SQL database? I am creating a web portal for our LAN clients and I will need to manipulate data on the client's database.
No. you cannot do this with PHP. Php runs on the server.
You cannot do this with javascript in the browser as it is not allowed access to the client pc.
You may be able to write a chrome or firefox plugin that will have access to the host pc and then write code to interact with it.
Or just write an application for your clients to install that comunicates with your app on the php server.

Host PHP site on Dropbox [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I use DB on regular basis to host static sites for clients so that it makes easy to change anything and ask to client check. I use 'Public' folder to do that. Colloboration with client becomes super fast and easy.
Now I researched a lot on google on hosting php site there. But didn't found anything. I need to upload small changes to server to show client and the process is again and again.
What you guys recommend as a good solution?
Set up some automatic deployment to a server that your client can access. Use version control for your changes. When you merge into a specific branch, your script can automatically do the deployment for you.

Web development in LAMP VM WARE [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a LAMP configuration set up in a VM WARE. I am going to transfer files via FTP using transmit client.
Currently I have my files in the following directory
192.133.323.122/website/project/home.php
Do I create a folder in a specific directory?
Usually it'll go in your
your_user_here/var/www
but it doesn't matter really, as long as you know where it is and you know how to reach it.
I would suggest creating a folder with the name of the site, so you can find it easily, so it'll be something:
your_user_root/var/www/project_name

Categories