I have designed a PHP based website which needs to run on a local server. Unfortunately I have developed this on a WAMP server using Apache. The machine on which this website will be placed on only supports the IIS server and I am not allowed to install Apache on this this machine.
How do I run PHP code on an IIS server?
See this link: http://php.iis.net/
99% of stuff is compatible. There can be some problems though (for example if you use mod_rewrite, or some file operation functions behave a little differently).
You can get it installed and include the right infrastructure (IIS, WinCache, and FastCGI, and URL Rewrite) with a single click using Web Platform Installer:
To install PHP 5.2 use:
http://www.microsoft.com/web/gallery/install.aspx?appid=PHP52
To install PHP 5.3 use:
http://www.microsoft.com/web/gallery/install.aspx?appid=PHP53
http://php.iis.net/
With IIS 7, a lot of the apache/iis gaps have been closed. Like mod_rewrite is available in IIS 7 (http://www.iis.net/download/urlrewrite)
Here's how I got PHP 5.3 running on IIS 6:
http://www.howtoadvice.com/PHPIIS
Related
For web development where I use PHP on the backend, I have always used XAMPP (Windows) or LAMPP (Ubuntu).
Now I am running Ubuntu 16.04 and for some reason, I can not use an LAMPP package. So my question is what independent servers do I need to install?
I know that I need to install PHP, and I also know that I will need to install MySQL database Server if my application uses MySQL database.
But what else do I need to install, apart from PHP 7.1 and MySQL database server?
LAMPP is short for:
Linux
Apache
MySQL
PHP
Perl
So if you are developing Web Applications I would say that you are fine with Apache, MySQL and PHP. There might be some other modules (e.g. for SEO reasons like mod_rewrite) but those could be easily installed later one.
I have IIS 7 and Plesk 10.4.4 on my Cloud Server. I need to update php version. Right now php is being served by Plesk, and I don't know how to update it with Plesk.
I've managed to install the latest version with IIS 7 and Php Manager, so I was wondering, how can I force php serving through IIS instead of Plesk? Is it possible?
Thanks.
PHP it's just binary file you can take necessary complied files and just replace it where it installed in plesk %plesk_dir%\Additional\pleskphp5, but you have to create backup of replaced files and preserve all current permissions.
There possible issues with future upgrade to next plesk version, because files replacement can make Windows Installer crazy.
Btw Plesk 11.5 has feature which allows to add your own PHP handlers.
I am a newbie in PHP and the Apache server things. All I want is to run and test my PHP scripts on my computer i.e a single computer environment.
I installed the Apache HTTP Server 2.2.25 on my Windows 8 OS (64 bit). I installed PHP 5 through IIS Web Platform Installer.
During the server installation I set the network and server to localhost.
I created this file txt.php and tried localhost/txt.php but the browser shows nothing.
What's missing?
I heard we have to edit the httpd.conf file, if yes then what and how to edit?
You are installing Apache HTTP Server (wich is a http server) and PHP5 on a IIS (Wich is an http server for windows)
One of the easiest way to have a server up and running in windows is through http://www.wampserver.com/en/
So, uninstall all you installed on your question and use Wamp to manage the server with PHP and Mysql runing without more problems.
Of course, you can install all by your own, but since you want just a server runing, this one will help you to start fast.
Wamp lets you control the software versions, so you can try different php versions, apache versions, etc.
I'm running XAMPP 1.6.8 on Windows 7 Ultimate and I wonder how can I upgrade my current installation with PHP 5.3.x without changing the whole XAMPP.
Can I just download PHP 5.3 from php.net and replace the PHP folder inside XAMPP?
You cant. php_mod is what XAMPP uses, unless you can get XAMPP to use ISAPI, or CGI. ISAPI is supposed to be called inside of apache, CGI is supposed to run on request, FastCGI is supposed to be better than both.
But assuming your using XAMPP you'll only want to use the version that works best for Windows 7. More likely plain PHP CGI will be updated the most often since its a generic library from PHP not dependant on what web server software you use.
Is there a tool or extension for a browser to working with PHP offline? I read about you need to install an Apache server.
Is there an easier way to view offline in browser to see how the PHP code executes?
XAMPP sets up a local install of MySQL, PHP, and Apache that you can develop on.
In Windows, install XAMPP or WAMP
Which are Windows Apache Mysql and Php bundles
In Linux install LAMP
Which is a Linux Apache Mysql and Php bundle
Both of which could help
Nope, simpler than xampp is not possible.
This won't be much use to you now, but there has been recent talk (and submission of code) of providing a built-in web server into PHP itself.
See the RFC at https://wiki.php.net/rfc/builtinwebserver
You could then write your script (e.g. app.php), execute php -S localhost:8000 to start the web server and then see the results in your browser at http://localhost:8000/app.php.
In the mean time, you can install Apache/PHP/MySQL/etc. on your local box, as the other answers have suggested, either manually or with a package like XAMPP.
No. PHP code must be processed by a PHP engine, and the easiest way to do so in a web environment is to use a web server. It does not need to be httpd, but it must be something.
if you are on a Mac, you have Apache installed already. the additional instructions you will need to add PHP and MySQL database server can be found here http://www.entropy.ch/software/macosx/
if you are using Windows, XAMPP is a self contained Apache/MySQL/PHP environment that runs as a stand alone application.
that should get you started. good luck