johnyjj2 Posted August 3, 2009 Share Posted August 3, 2009 Hello! I've got installed server - Windows, IIS (I didn't want to install it but it was instruction from boss), KF Web Server (I didn't want to install it as well), MySQL, PHP. There was also other man, responsible for creating webpage with the use of PHP, and he installed Apache. So now we've got two redundant applications - IIS, KFWS. And now I need to fix this whole stuff. I'd like to reinstall everything and install MySQL+PHP+Apache but I cannot because of boss' decision to have those other applications installed. But I guess I can simply deactivate them. So I need to run webpage written in php. It looks as follows: directories - public, system, tmp, uploads files - index.php In index.php: <?php /* |--------------------------------------------------------------- | PHP ERROR REPORTING LEVEL |--------------------------------------------------------------- | | By default CI runs with error reporting set to ALL. For security | reasons you are encouraged to change this when your site goes live. | For more info visit: http://www.php.net/error_reporting | */ //error_reporting(E_ALL); error_reporting(E_ERROR); (...) */ require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; ?> (Above there are only beginning and end of the file, without middle part). Disc looks as follows (I show only some directories and files): Inetpub PHP - there's only one file in this directory php.ini Program Files Apache Software Foundation Apache2.2 htdocs name_of_the_website_which_I_want_to_run KeyFocus MySQL PHP Guy, who has been configuring this website, left me information: Website is kept in two places: F:\Inetpub\wwwroot\name_of_website F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\name_of_website So I exit KFWS, installed again MySQL and Apache because e.g. in the directory of Apache there were only directories: conf, htdocs and logs, so too little of them. After reinstalling of Apache there are more of files. I copied configuration files from the previous installation to the new one (I simply replaced them into those newly-installed). I enter Internet Explorer on server. I write localhost and there appear two windows: http://localhost/localstart.asp i http://localhost/iishelp/iis/misc/default.asp so it looks like IIS is still run. I don't know how to stop it properly because I have never been using IIS previously. I enter in IE in http://localhost/nazwa_stronki/ and I see in IE window file index.php, but this file is not executed. It looks like opening this index.php in notepad with one difference - it is windows of IE, not notepad. So PHP doesn't work properly. I don't really know what to do so that it would work properly. As I have already written, I cannot erase everything and install PHP+MySQL+Apache - I know it would be the best choice - because my boss wanted me to install those IIS and KF Web Server. Thanks in advance for your help! Greetings! Quote Link to comment https://forums.phpfreaks.com/topic/168645-php-doesnt-work-i-change-iis-into-apache/ Share on other sites More sharing options...
watsmyname Posted August 3, 2009 Share Posted August 3, 2009 Hello! I've got installed server - Windows, IIS (I didn't want to install it but it was instruction from boss), KF Web Server (I didn't want to install it as well), MySQL, PHP. There was also other man, responsible for creating webpage with the use of PHP, and he installed Apache. So now we've got two redundant applications - IIS, KFWS. And now I need to fix this whole stuff. I'd like to reinstall everything and install MySQL+PHP+Apache but I cannot because of boss' decision to have those other applications installed. But I guess I can simply deactivate them. So I need to run webpage written in php. It looks as follows: directories - public, system, tmp, uploads files - index.php In index.php: <?php /* |--------------------------------------------------------------- | PHP ERROR REPORTING LEVEL |--------------------------------------------------------------- | | By default CI runs with error reporting set to ALL. For security | reasons you are encouraged to change this when your site goes live. | For more info visit: http://www.php.net/error_reporting | */ //error_reporting(E_ALL); error_reporting(E_ERROR); (...) */ require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; ?> (Above there are only beginning and end of the file, without middle part). Disc looks as follows (I show only some directories and files): Inetpub PHP - there's only one file in this directory php.ini Program Files Apache Software Foundation Apache2.2 htdocs name_of_the_website_which_I_want_to_run KeyFocus MySQL PHP Guy, who has been configuring this website, left me information: Website is kept in two places: F:\Inetpub\wwwroot\name_of_website F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\name_of_website So I exit KFWS, installed again MySQL and Apache because e.g. in the directory of Apache there were only directories: conf, htdocs and logs, so too little of them. After reinstalling of Apache there are more of files. I copied configuration files from the previous installation to the new one (I simply replaced them into those newly-installed). I enter Internet Explorer on server. I write localhost and there appear two windows: http://localhost/localstart.asp i http://localhost/iishelp/iis/misc/default.asp so it looks like IIS is still run. I don't know how to stop it properly because I have never been using IIS previously. I enter in IE in http://localhost/nazwa_stronki/ and I see in IE window file index.php, but this file is not executed. It looks like opening this index.php in notepad with one difference - it is windows of IE, not notepad. So PHP doesn't work properly. I don't really know what to do so that it would work properly. As I have already written, I cannot erase everything and install PHP+MySQL+Apache - I know it would be the best choice - because my boss wanted me to install those IIS and KF Web Server. Thanks in advance for your help! Greetings! Your problem is that, IIS runs on port 80 by default and apache server as well runs on port 80 as default. So one server at a time runs. You got 3 options 1. Disable IIS and enable apache server 2. Change port in IIS and leave apache server intact so that both server runs 3. Leave IIS intact and change port for apache server so that both server runs. 1. To disable IIS a) Control Panel>Administrative Tools >Internet Information Services(IIS) b) Click the stop button C) If you want to permanently disable IIS then. i) Start Menu-> Run ->Type Services. Msc ii) From list select IIS Admin ->Double CLick it and disable it. 2. Change port in IIS a) Control Panel>Administrative Tools >Internet Information Services(IIS) b) From left select default web and right click->select properties, You have option to change default port, change 80 to something else like 8080. 3. Change port in apache -> Its hard part so i suggest you to follow 1) if you dont need asp pages to run otherwise go for 2nd option. If you go for second option and change port to 8080 you need to browse asp pages like http://localhost:8080/project/default.asp Hope this helps watsmyname Quote Link to comment https://forums.phpfreaks.com/topic/168645-php-doesnt-work-i-change-iis-into-apache/#findComment-889662 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.