I would like to have an asp.net website hosted in IIS at site like this
www.mydotnetsite.com
and then have a wordpress blog that is an application to it...
www.mydotnetsite.com/wordpressblogsite/
Is this possible?
Yes, it will be not a problem. Even some Windows Shared Hosts offer PHP plans - Windows Hosting PHP.
You can configure IIS to support both Asp.Net and PHP at the same time.
yes,you can host your php website in IIS
Yes it is possible! You can install wordpress in a subdirectory.
You need to have PHP/MySql configured in your IIS. (Here is how)
You need to point www.mydotnetsite.com/wordpressblogsite/ to the wordpress folder (Download the latest from wordpress.org). In most of the cases, simply copying the folder with the desired name(wordpressblogsite) within the document root of webserver is enough.
You can then go to the URL and follow the installation option (recommended) OR you can edit the wp-config.php file to put the db credentials etc.
The short answer: Yes.
The long answer:
First you're going to have to make sure that PHP and MySQL are installed and working properly on your server and configured for use with IIS. There are installers available to make this process easy. Check out http://php.iis.net/. That will help out a lot with getting PHP up and running as well as installing wordpress. MySQL should be easy too, just check out their site and install the correct package.
Related
Previously I used shared hosting, and the hosting company provided Apache Tomcat with PHP and MySQL. I have since switched to virtual private server hosting with Linux, so I can use a server of my choice, in particular Glassfish 4.1.1 for Java ServerFaces 2.2 applications, and have already deployed a war file for a particular application.
However, I have quite a lot of old code, including some PHP. I have put my old code in Glassfish's docroot folder and all the straight HTML5, JavaScript etc. work without any problems. How do I get the PHP code to work as before? In doing a Google search, it appears possible to deploy a war file from Quercus, but if this is done, how do I get PHP to work in the docroot folder?
I'm not aware of anybody who has done this before, so any advice would be most appreciated - thanks in advance.
I used GlassFish before with JSP. Now PHP has become the language of my choice. I feel like it's much more maintainable.
But to answer your question, in order to get PHP to work in the docroot server, you have to enable PHP on OracleGlassFish Server. From Oracle documentation :
1. Download the Quercus PHP interpreter from http://quercus.caucho.com/.
2. Deploy the downloaded WAR file to the GlassFish Server.
3. To verify that your PHP engine is working, enter the following URL in your browser:
http://localhost:8080/quercus-4.0.1/
4. Move your PHP application to a subdirectory of the Quercus directory.
5. To verify your PHP application is working, access your application from a browser.
For example, enter the following URL in your browser:
http://localhost:8080/quercus-4.0.1/myapp/
Also, this previous answer from SO may also help :
Allow Glassfish and PHP to work together in the same server using Apache
I want to make custom php/apache2 installer including my web application for distribution. So for example user downloads the one click installer and he will have installed php/apache2 and web application. And all he have to do is go to localhost. (The best thing would be double click then shortcut icon just to go to localhost in browser, but check that apache is running)
What is the proper way to do it? Any tips, easy tip of doing it?
p.s. for all popular os Mac OS, Win, and Linux/Ubuntu
I'd ship a Virtual Machine with the application, and supporting platform, installed and ready to go. Virtualbox is well supported and would be a good place to start.
Good luck,
Anthony.
Latest PHP version has a webserver included and with SQLite, all you need is to start PHP WebServer, maybe it could help to make a lightweight installation.
I want instal the Php in My windows7 PC here i want use Apche webserver is there any simple way to install?
Thanks in Advance..
You can try http://www.wampserver.com/en/ (WAMP = Windows Apache MySql Php), it will integrates all you need (php + mysql + apache) including correct configuration
Also you can try http://www.apachefriends.org/en/xampp.html (XAMPP).
These packs will help you to install PHP, MySql and Apache without problems.
Agree with #michael-swan
i will suggest to go with XAMPP, since you can simply start the XAMPP server and you got apache/php/mysql working.
No need for any installation can be used in a portable drive too.
I am not sure if any such option is available in wamp, but it has easy to handle configs vars
Both the software are bundles of APACHE/PHP/MYSQL package - which are the complete package
You'll want to use a packaged distribution of Apache, MySQL, and PHP (WAMP) that's all configured and ready to host websites after a short automated install.
Start with this list of WAMPs: http://en.wikipedia.org/wiki/Comparison_of_WAMPs
It's the most comprehensive list and will give you some ideas about what's available.
The ones I've seen used most often are Xampp, WampServer, and UniformServer. There are also commercial ones like Wamp-Developer.
Try installing 3 of 4 different WAMPs and just trying them out one by one with 1) setting up a new website and 2) installing WordPress as a blog. This will give you a good idea of what works best for you.
I want to do a sample program in PHP on Windows XP.
Do I need any special software to get this to work?
I am afraid that I simply open notepad type the PHP program and save it with php extension. Then I open it with the browser as a HTML file. But it does not work.
Please help
Thanks in advance
However you decide to install a webserver and php (or just php and use it in the console like someone mentioned):
Check out the PHP Manual, especially the Getting Started section.
Apache (Very, very easy)
Check out the WampServer getting started presentation.
Download and install WampServer.
And you are ready to go.
Microsoft (Not tested this myself)
Check out PHP on Windows.
Download and install the Microsoft Web Platform Installer.
Let me know how that work out... (never tried it myself, since WampServer is so easy)
You need to have a web server with PHP installed on your PC to make this work.
I highly recommend installing wampserver on your computer. It is a Windows installer that will put PHP, MySQL and Apache in your computer and let you manage all the services and such very easily. If you have problems getting it to work, you can also try out XAMPP, although I've never used it myself.
Some answers containing the hint for using wamp.
You should better use the Zend Server Community Edition.
This is also free and can be downloaded here:
http://www.zend.com/de/community/zend-server-ce
This contains Apache, Mysql, PHP and some Zend related Tools.
Benefit: its much better preconfigured than wamp.
Another easy one to set up (though it takes extra config to support PHP5) is easyPHP
you can simply install PHP, and then run the program and redirect the output
php foo.php > output.html
and then use any browser to open up that html file.
Since you have IIS on the windows cd I would suggest you go to control panel, install/uninstall programs and click on windows components and install IIS. Then install ASP.NET 3.5 from www.asp.net and finally install Phalanger from http://www.php-compiler.net/
That will give you the benefit of both worlds, you can program in ASP.NET using PHP as the language, you can use only PHP if you prefer that or you can mix using ASP.NET/C# on some pages and PHP on other pages within the same application.
I use XAMPP, works out of the box with his installer and is more than enough for a simple developer windows environment.
The simplest way - use www.microsoft.com/web platform installer. get the whole stack to run PHP all from one place.
i would like to share that before starting PHP we have to set environment for that and then we can start working with PHP.
http://code.freefeast.info/php-tutorials/setting-up-the-environment-for-php-php-tutorial/
I am trying to get PHP working on my vista home machine but I am getting weird problems. First I had file permission problems for which I disabled Vista's UAC. Now I can't get the PHP interpreter working.
I have made all the necessary changes following some tutorial but I still can't get it working.
Tutorial was located here: http://www.tanguay.info/wamp/installPhp5.php5
Try XAMPP. I use that at home on a Vista machine and it worked nicely after the install.
WAMPServer is also a good option. You can easily enable/disable both PHP extensions and Apache 2 modules. Everything is set up somewhat securely (only local access to the serve), and you get phpMyAdmin already set up.
Only thing I've ever missed is Memcached, but that is fairly easy to set up on your own.
The only problem I have installing PHP and Apache on Vista is that you need to make sure that when you edit the httpd.conf that you are editing it as an admin, otherwise the file is saved in compatibility mode.
To overcome that problem just type notepad++ or whatever in your start menu, right click the item and run as administrator. Then open the file from the app.
You can use FastCGI for IIS 7. I'm using this also and it works perfectly!!
FastCGI
You can try Zend Core
It works on both IIS and Apache (it includes the installation of the Apache)
iis7 is one of the best web servers and especially for php, if you can't get it to work it means you need to google enough, because it isn't logical to blame Vista for php/apache issues