PHP Site on IIS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jats_ptl
Forum Newbie
Posts: 2
Joined: Tue Oct 15, 2013 4:52 pm

PHP Site on IIS

Post by jats_ptl »

Hi All,

I have a PHP site that is running good on Apache server. It is an Intranet application with In/Out board.

Now I have a task to move that site to IIS 7 .

Will you please guide me What steps should I approach so that later on I don't have to make more changes.

Thanks,
Jatin
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP Site on IIS

Post by requinix »

How many times on how many forums am I going to have to tell you this?

http://www.php.net/install.windows.iis

If you don't understand or can't figure it out then ask questions, don't just go someplace else for answers.
jats_ptl
Forum Newbie
Posts: 2
Joined: Tue Oct 15, 2013 4:52 pm

Re: PHP Site on IIS

Post by jats_ptl »

I have already installed PHP on IIS7. But I need to know any other changes I have to make.

i.e. installing mySQL or any other.

Because If I am surfing the page is doesn't give the expected output.

Thanks,
Jatin
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP Site on IIS

Post by requinix »

What is the code you're trying and what happens when you try to run it? Also look at the HTML source of the page (eg, through your browser's View Source) to see what PHP is actually outputting and not what your browser is interpreting it as.
tazz24mania
Forum Newbie
Posts: 10
Joined: Tue Oct 15, 2013 2:53 pm
Location: Newcastle Upon Tyne

Re: PHP Site on IIS

Post by tazz24mania »

If you are installing MySQL.... one of the problems I faced and had to learn was that no MySQL connections work correctly until you add the MySQL ODBC connector in also.
priyankagound
Forum Commoner
Posts: 27
Joined: Thu Sep 19, 2013 2:53 am

Re: PHP Site on IIS

Post by priyankagound »

Try out this one:
If IIS is serving correct output from the site you've setup PHP on, then check the php log file. Most likely, there are some errors occuring due to the php configuration (php.ini), and php is not displaying the errors to the screen. This happens to me a lot when I setup a new install of php under IIS.

Look in your php.ini file to find the location of you're log file. If the log file isn't being written to that directory, make sure the directory is writable by PHP. This will be the user the app pool is configured to use (by default it something like network service, iis_usr, or the like). Make sure that user has fill write permissions on the log file directory.

Hope this helps.
Post Reply