note 45030 added to install.unix.sun
| From: | masochisthalo at yahoo dot com | Date: | Mon, 23 Aug 2004 21:28:43 +0000 |
| Subject: | note 45030 added to install.unix.sun | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75182@lists.php.net to get a copy of this message | ||
Title: Barebones PHP Installation on Sun One Web Server 6.1 for JDS2
Author: Hijinio Reynoso Jr.
Last Updated: August 23, 2004
Summary: If you have installed Sun One Web Server 6.1 on the JDS (aka Java Desktop System from Sun),
this will help you get PHP installed on it (without XML and MySQL support.) In any case, this
should get you started which is better than not having it installed at all. These directions were
based mainly on those available from PHP.net, but updated to meet the needs of this specific
configuration.
Instructions
----------------------------
0. Make sure your web server isn't running and ensure that all JDS developer packages are
installed; to be safe, I always ensure that all developer packages are available via Applications
> System Tools > Administration > Software Installer
1. Download http://us3.php.net/get/php-5.0.1.tar.bz2/from/a/mirror
and extract into the directory of your choice. (5.0.1 was the only version I could get to make
install correctly)
2. CD into the extracted PHP directory and type:
> ./configure --with-nsapi=/opt/SUNWwbsvr --enable-libgcc --disable-libxml
(Your web server directory may vary from the above's default.)
3. Once it's done configuring (and it should be successful should you have all the proper
packages), type:
> make
4. When its done compiling, it's time to install as root:
# make install
5. Now, configuration of your web server begins:
# cd /opt/SUNWwbsvr/https-[yourWebServer]/config
6. vi mime.types (or other editor) to add this line into it:
type=magnus-internal/x-httpd-php exts=php
7. vi magnus.conf to add the following 2 lines to end of it: (NOTE: the 2nd line could be optional)
Init fn="load-modules" funcs="php5_init,php5_execute,php5_auth_trans"
shlib="/opt/SUNWwbsvr/bin/libphp5.so"
Init fn="php5_init" LateInit="yes" errorString="Failed to initialize
PHP!" [php_ini="/path/to/php.ini"]
8. vi obj.conf to add the following line to <Object name="default">. Make sure this
happens after all "ObjectType" entries and before any "AddLog" entries: (NOTE:
for virtual servers, edit vserver.obj.conf)
Service fn="php5_execute" type="magnus-internal/x-httpd-php" [inikey=value
inikey=value ...]
9. Now, start up your web server. Also, make sure to log into the admin server and click the
"Apply" button in there. You will also have set "index.php" as an index
filename in your virtual server's Document Preferences.
10. Congrats! Now, you have PHP installed! Of course, there are other features you could enable
(MySQL, XML, etc.), but I haven't tested against those. Just consult the following page for
hints: http://www.php.net/manual/en/install.unix.sun.php
----
Manual Page -- http://www.php.net/manual/en/install.unix.sun.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45030
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45030&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45030&report=yes
Search -- http://master.php.net/manage/user-notes.php