Re: Installing PHP on SBS 2003

From: Bob Genestet (bob_genestet_at_computernetorkservice.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 13:01:11 -0600

Chris,

I have had no problems running PHP on SBS2003. I hope this helps.

Thanks to those enthusiasts that I borrowed from to complete the
installation.

This installation was on Windows Small Business Server 2003 with MS SQL.

  1.. For phpbb to run, php and its web extensions must first be installed
and configured. Go to www.php.net and download the latest Windows binaries
or the complete installer package, php-4.3.4-installer.exe. I used the
Windows binaries at http://downloads.php.net/ilia/php-4.3.5RC1-Win32.zip
which is the latest binaries Release Candidate for manual install. I would
be curious to know if the installer package works on SBS2003. If so, you may
be able to forego the next several steps required for a manual install. I
did the binaries manual install so I would know exactly what changes I made
to my NOS.
  2.. I extracted php to the root directory of my chosen drive. By default,
it created a folder named php-4.3.5RC1-Win32. I renamed this folder to php
for simplicity, so now I have php extracted to <drive>:\php where "<drive>"
equals C or D, ect.
  3.. CREATE THE FOLLOWING FOLDERS in the new directory <Drive>:\php
  CREATE "log"
  CREATE "sessions"
  CREATE "upload"
  4.. NOW FIND "php.ini-recommended" in the new directory <Drive>:\php
  and COPY it to you system folder, C:\WINDOWS OR C:\WINNT and then RENAME
IT TO "php.ini" OPEN IT UP....scroll down or use Find to make the following
edits:
    1.. error_reporting = E_ALL
    CHANGE TO......
    error_reporting = E_ALL & ~E_NOTICE
    2.. ;error_log = filename
    UNCOMMENT and POINT THE PATH TO YOUR IN PHP DIRECTORY
    error_log ="<drive>:\php\log\error.txt"
    3.. ; Windows: "\path1;\path2"
    ;include_path =".;<drive>:\php\includes"
    CHANGE TO....
    include_path =".;<drive>:\php\pear"
    4.. ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "./"
    CHANGE TO....
    extension_dir ="<drive>:/php/extensions/"
    5.. ; Temporary directory for HTTP uploaded files (will use system
default if not
    ; specified).
    ;upload_tmp_dir =
    CHANGE TO....
    upload_tmp_dir ="<drive>:\php\upload"
    6.. If you want to use the php mail(); function....
    [mail function]
    ; For Win32 only.
    SMTP = localhost
    ; For Win32 only.
    ;sendmail_from = me@localhost.com
    CHANGE (SMTP = localhost) only if you are not hosting your own mail
server
    CHANGE TO.... smtp server name
    SMTP ="smtp.ya-right.net"
    CHANGE (sendmail_from = me@localhost.com)
    CHANGE TO YOUR EMAIL ADDRESS
    sendmail_from ="fataqui@ya-right.net"
    SAVE php.ini AND CLOSE.
  5.. GO TO >> my computer >> RIGHT CLICK
  SCROLL >> properties >> LEFT CLICK
  GO TO >> advance tab >> LEFT CLICK
  GO TO >> environment variables >> LEFT CLICK
  HIGH LIGHT LOWER WINDOW "Path" >> LEFT CLICK "Edit"
  at the end of the "Variables Value" >> ENTER
  ;C:\php\dlls
  The above path should point to the PHP "dlls" folder, NO trailing ( \ )
  CLICK OK 3 TIMES
  6.. OPEN IIS Manager and go to Web Service Extensions
Add new web service extension
EXTENSION NAME, ENTER "php4" << without the quotes ""
CHECK "set extension as allowed"
CLICK "ADD"
Browse to <drive>:\php
CLICK ON "php4isapi.dll"
When you click on it the full path will load into the...
"Path To File" text box....
C:\php\php4isapi.dll
CLICK OK
CLICK OK AGAIN

  7.. To install PEAR, just click on "go-pear.bat"
  in your new PHP directory "<drive>:\php" and follow the directions.
Bob Genestet
This posting is provided "AS IS" with no warranties, and confers no rights.

"David Copeland [MSFT]" <davidcop@online.microsoft.com> wrote in message
news:OIn2ziDEEHA.2652@TK2MSFTNGP10.phx.gbl...
> Chris,
>
> Check to see if the PHP file extensions are allowed by IIS.. by default
the
> would be prohibited. To check go under Start/Administrative
Tools/Internet
> Information Services (IIS) Manager, then click on Web Service Extensions..
> You may then need to click on Add a new Web Service Extension to add the
> needed file extensions to be allowed.
>
> --
>
> Hope that helps,
> David Copeland
> Microsoft Small Business Server Support
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> Newsgroups:
> SBS v4.x : microsoft.public.backoffice.smallbiz
> SBS 2000: microsoft.public.backoffice.smallbiz2000
> SBS 2003: microsoft.public.windows.server.sbs
>
>
> "Chris" <clynn@reltec.com> wrote in message
> news:1164c01c41035$756bb2c0$a501280a@phx.gbl...
> >I upgraded to SBS2003 from W2K Server. On my old server I
> > had Web Gallery software that was running on PHP. It will
> > not work on my SBS 2k3 server. Can anyone help to get PHP
> > working on my server? (If it is possible)
>
>



Relevant Pages

  • PHP, IIS 6, and Windows 2003
    ... I could not get PHP pages to display in IIS 6 with Windows 2003, ... The default install registers the .php extension as belonging to ... Open the IIS Management console ... is that you have to define and enable PHP as a "Web Service Extension". ...
    (alt.php)
  • PHP, IIS 6, and Windows 2003
    ... I could not get PHP pages to display in IIS 6 with Windows 2003, ... The default install registers the .php extension as belonging to ... Open the IIS Management console ... is that you have to define and enable PHP as a "Web Service Extension". ...
    (comp.lang.php)
  • RE: [PHP] Xampp question, pretty much 0T
    ... I suggest you look into VMWare. ... versions (player, server, etc) if you don't want Workstation (which I ... [PHP] Xampp question, pretty much 0T ... recommended it to me when I asked for an easy install of AMP. ...
    (php.general)
  • HOWTO: FreeTDS for Newbies (almost complete)
    ... One way to do that is to install FreeTDS, recompile PHP, ... You can go to freetds.org and install the RPMs on Unix or Linux ...
    (comp.lang.php)
  • Re: [SLE] updating to PHP5
    ... while running PHP 5 for my stuff. ... managed by SuSE staff where you can download latest apache with all ... SLES 9 doesn't need PHP for its default configuration. ... Thus, it seems possible to remove PHP4, install a new Apache instance, PHP5 ...
    (SuSE)