XAMPP and Node.js on local windows 7 development machine - apache

I've being reading alot on how node.js can be used to add real time features to web applications. Am a PHP developer but i have good grasp on javascript.
I have XAMPP installed my windows 7 machine which i use for development and i just installed node.js using the windows installer on the node.js site.
How do i make app communicate with the node.js server ?

I'm on OSX, and I'm basically heading down this same path.
First off, don't think of node.js like you would PHP and think you're setting up a vhost in XAMPP.
You need to look in to getting node.js to be listening as a server. There are several tutorials out there that go over this, but this one can help get you started:
http://www.albatrossrevue.com/2012/01/31/an-introduction-to-node-js/2000

Related

How to install Laravel app to free web hosting?

I've been serving my Laravel app on my local machine (MAC OSX Maverick) via the php artisan serve command in the terminal.
How do I install it to my a free a hosting for testing? Technically, I only have a free web hosting account. This means I can't perform any command-line commands (SSH). Is there any simple way to install it? Can I just simply copy my Laravel app folder and put it on a web host?
Easiest solution: Deploy it to OpenShift using a Laravel QuickStart. OpenShift is free, gives you SSH access, and basing your app off the Laravel QuickStart should handle the more complicated configuration bits.
"Can I just simply copy my Laravel app folder and put it on a web host?"
Pretty much this is the answer. You can upload your entire Laravel application to your webserver, and it should work.
But I'll warn you now that without command-line access - your going to have issues in the future. Try and find an alternative host for your website that provides command line access

Can you have apache-tomcat and another server like wampp or xampp

I am new to Web Development but I have experience in Java, C/C++,Unix Scripting and basic SQL. I have apache-tomcat server because I downloaded Java EE but recently I wanted to start added PHP to my html and I have to download a server like wampp or xampp to run php files. But I downloaded xampp and when I tried to reach my localhost my browser froze up, I tried it multiple times but no luck reaching my local server. Then I decided to try it on wamp and the same thing happened. Can you have two different kinds of servers on your PC even if only one is turned on at a time?
No you can get PHP to run out of a TomCat Web Server.
See this somewhere in the middle of it he tells you how to download a PECL extension that will allow TomCat and the PHP interpreter to become friend.

Web DevelopmentL: PHP & Apache

Im trying to write a blog using PHP,I downloaded Php 5, Notepad++ And Apache Tomecat 7.
The problem is that I dont know where to save the .Php files I wrote so I can open them using the Apache Server.
Can anyone help please?
Thanks in advance.
You don't need Tomcat server that is for Java applications.
You're best bet is to install WAMP (on Windows) or LAMP (on Linux) then you have all the tools including MySQL to start coding. The Apache server comes preconfigured for use with PHP.
If you're coding on Windows then WAMP is a single install package.
There are plenty of tutorials to help you out, but essentially your Apache server will have a web root directory named "www" in it's configuration file. That's where you place all of your php and html files, etc.
[Edit]
Reading some of the comments, the recommendation for WAMP or XAMP for your local development. You can run all this comfortably on a laptop. When it comes to releasing your application to the world you will probably want to pick a Hosting service that supports PHP and will take care of all the server configuration for you. You'll just be copying up your PHP code files and creating the databse.

Is there any equivalent of XAMPP for Pylons?

I'd like to get started with Pylons, to be used on a Windows machine as a local web server. Is there any equivalent of e.g. XAMPP for Pylons that would set up everything with one installer?
Edit: I've just discovered the Pylons web server. Could I use this to serve pages to computers on a LAN?
One thing that you could do is use mod_wsgi with XAMPP. Unfortunately I am not aware of any installers for that combination.
You almost never want to use the web server built into the framework, but Pylons uses Paste, which is quite a bit more capable than most stock web servers so that could be an acceptable alternative if you don't need httpd.
pylons can be installed using easy_install or unzipping the tarball and running "python setup.py install" (like any python package).
the great google god machine says it's possible to run a wsgi app under IIS(shudder),
other than that, once you have your pylons application written, consider running it as a windows service

Production Grade Server Software

I am currently using XAMPP to test and Run my website on my Laptop.
Is there any (Good,Production Grade,Free,AMP based) server software?
Or Can I manually fix the security holes in XAMPP (like no password for 'root') to bring it up to production level?
Platform : Windows
Technologies: Apache, MySQL, PHP
Requirements: Hosting on Own server
Priveleges: Easy installation and configuration
You're best off just setting things up yourself. It's not that difficult, especially since there are scores and scores of guides around the web. Trying to bring XAMPP up to production quality would be just as much work. Here are some links:
Ubuntu LAMP
Debian LAMP
Fedora LAMP
Arch Linux LAMP
WAMP (Windows)
You can easily find more by doing a Google search.
Why not simply use official Apache? It's the most-used Production http server in the world.
Can you expand your question with details on your platform and requirements?
You would be better off configuring the full stack yourself. This ensures that you know what's running, and how it's configured. Even if you use a bundle (I highly recommend Zend Server if you do), you would need to run through the service configurations anyway. Never rely on anything out-of-box in a production environment.
If you do configure the stack yourself, Google is your friend, and there are plenty of resources here to help as well.