How to install Apache Web Server with PHP on Sun Solaris Sparc machine

Hi,
We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
Thanks,
Harish

Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
php is available at www.php.net
I found an old document for installing PHP maybe this will help.
Cheers
-Dhruva
+++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
Introduction
This document describes how to install PHP for Apache on Solaris.
You should have Apache installed before trying to install PHP.
If you want to use PHP with MySQL then you must install MySQL first.
Before we Begin
1. These instructions assume that you have Apache installed according to instructions.
Getting PHP
1. You must be logged in as root to perform this installation.
su root
2. I save all my downloads in:
/usr/local/dist
If you don't already have one, you may need to create that directory now:
mkdir /usr/local/dist
3. You can get PHP 3.0.14 from here(www.php.net).
cd /usr/local/dist
ftp ftp.php.net
cd pub/distributions
bin
get php-3.0.14.tar.gz
bye
Installing PHP
1. We will install PHP in /usr/local/build, but use a tricky tar command
to do it in on hit from the download directory:
cd /usr/local/dist
tar xvfz php-3.0.12.tar.gz -C ../build
Compiling PHP
1. First let's get where the action is:
cd /usr/local/build/php-3.0.14
2. You now have 3 options:
* Simple PHP install without MySQL - goto step 3
* Simple PHP install with MySQL - goto step 4
* Custom PHP install - goto step 5
3. Simple PHP install without MySQL. Next, jump to step 6.
./configure --with-apache=../apache_1.3.12
4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
should look like this:
./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
Next, jump to step 6.
5. Custom PHP install. Take a look at the available configuration directives by using this command:
./configure --help
6. Now we can make the PHP executable. This may take a while.
make
7. Now we install the PHP module with:
make install
Adding the PHP Module to Apache
1. Now we have to setup Apache to include the PHP module:
cd ../apache_1.3.12
2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
You can see your previous Apache configure command by doing:
cat config.status
You can configure Apache using the previous command with the added PHP module by doing:
./config.status --activate-module=src/modules/php3/libphp3.a
If you used the simple Apache install from instructions the command will look like this:
./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
3. Make and install Apache with PHP enabled:
make
4. We need to stop the server before installing the files:
/usr/local/apache/bin/apachectl stop
5. Now we can install the new binaries:
make install
6. Start apache again (now running the new php enabled version):
/usr/local/apache/bin/apachectl start
Setting Up PHP
1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
cd /usr/local/apache/conf
2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
AddType application/x-httpd-php3 .phtml
Check that it Works
1. We have to restart Apache to make these changes take effect on the running server.
cd /usr/local/apache/bin
./apachectl restart
2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
./apachectl status
Apache Server Status for dev.synop.com
Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
Server Built: Oct 25 1999 00:37:07
3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
following text:
<?php phpinfo(); ?>
4. Point your browser at this file on the virtual host which you used:
http://localhost/test.php3

Similar Messages

  • How to install Apache Web server on my SAP Content Server

    Dear Experts,
    I am in the process of installaing Content Server in my landscape, i am working on Suse Linux 10 SP2 and planning to install ContentServer 6.30.
    I have read the standard SAP installation document for the same and it says that we need to install Apache Web server version 1.3.XX, so i have downloaded the file apache_1.3.27-x86_64-whatever-linux22.tar.
    Now i want to know the following before i take any actions on my further installation of the Content Server
    What is the difference between Apache and httpd servers (services) are they different or same
    Is the file apache_1.3.27-x86_64-whatever-linux22.tar correct to install Web Server on my Linux system
    Do i have to download any other httpd files
    How to install and start the Web server on my Linux
    Waiting for some information
    Thanks and regards
    BasoKing

    You can install a higher apache also (2.2.x), I'd not use the old versions. I'd also not use a "somwhere" compiled apache, you don't now if that version is clean.
    I'd rather compile an own one, it's not that difficult:
    Note 664384 - Generation info for Apache Web server for SAP Content Server
    The result will be a default webserver (httpd) without any unnecessary modules compiled in.
    Markus

  • How to Configure Apache Web Server  with Tomcat web container in Linux

    Hi all,
    I am working on Tomcat web server 5.0.19 on Linux AS 3.0., ( my Control Server)
    I need map my tomcat to Apache Web Server (httpd) in another system
    (web server).
    I dont have jk2_ or jk_mod .so files to use in my tomcat/conf directory to make them available for httpd.conf files of Apache Web server.
    I have only jk2.properties file in my conf.,
    Please tell me how to go about it
    my mail id [email protected]
    Thank You
    Subramanyam.V
    Hyderabad
    India

    The simple answer is to download a web server that has a web container already integrated on it, so all that painful configuration work is avoided.
    You can use the mature SJS Web Server 6.1 SP5 at
    http://www.sun.com/webserver
    Or you can try a preview of the upcoming version at
    http://www.sun.com/download/products.xml?id=446518d5
    You will get better performance and security, with easy of use, at about the same price ;)

  • Should I install Apache Web server to use Jakarta Tomcat Servlet engine?

    Hello,
    I have some problems and now have a question:
    Should I install Apache Web server to use Jakarta Tomcat Servlet engine?
    JTK home page is available via http://localhost:8080
    Tomcat ver 3.1.3
    Thanks.

    No, you don't need to run Apache webserver (httpd) to run Tomcat. Tomcat by default runs on port 8080, but you can set it to any port, including 80, if you have permission to do so (on *nix systems, you need root permissions to run services on any port below 1024).
    Tomcat is a webserver as well, just one that includes a servlet container and JSP processor. So it will serve your html files, images, etc (aka static content), just as well as Apache httpd, in addition to being able to run servlets and JSPs.
    Apache httpd has more options for serving static content than Tomcat, so many people prefer to use it as their main webserver and only use Tomcat as a sort of "plugin" to handle servlets and JSPs. This can be achieved through a connector. Instructions on how to set this up are on the Jakarta website.
    So you could use Apache and Tomcat combined, next to each other, or totally separated. In many cases, just Tomcat will do.

  • Install Apach web server and Tomcat

    Is it possible to install Apach web server and Tomcat into Oracle Application Server?
    If possible, which way is the best? People said that I would better install Apach web server and Tomcat in Redhat.
    If you know the answer, would you mind give me the answer or document link?
    Thanks

    Tomcat is just a servlet engine. Oracle Application Server already includes a servlet engine. Apache is a default component too.

  • How to use Apache Web Server?

    Hi all,
    How to use Apache Web Server?
    Thanks
    contact me: [email protected]

    i do not know for certain about the jsps you're talking about, but i would guess they should run just fine under jrun, and you wouldn't have to make jrun and jserv coexist.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by One:
    Hi ilya:
    Thank you for your quick reply.
    I will try that way but I wonder if the thing like "how about the *.jsp developed by the JDeveloper and BC4J run under JRun; could and is it necessary to make the Apache+JServ and Apache+JRun co-exist ... "<HR></BLOCKQUOTE>
    null

  • How to integrate Apache Web Server and Apache Tomcat 4.0 ?

    <pre>
    Hi All,
    Can anyone give me a detailed description(or url that tells so) of how to install the Apache Web Server, Apache Tomcat Server4.0 and Integrate both of them.
    Still now I am using Apache Tomcat 4.0 as a standalone application and now I want to learn how to install,use Apache Web Server and integrate this with Apache Tomcat.
    Please point me to exact location,url to download the recent Apache Web Server and,
    Can I use my existing Standalone Apache Tomcat 4.0 to integrate this with Apache Web Server that I am going to download.
    A detailed explanation of how to integrate both is very helpful.
    Thanks in advance.
    <pre>

    The way to integrate Apache Web Server & Apache is very easy. The first step is download the library to connect both servers. This library can be download from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0/bin/webapp-module-1.0-tc40-windows.zip.
    Copy the files to APACHE_HOME\modules and open httpd.conf to change any lines:
    You find the section "LoadModule" and you add the next lines:
    LoadModule webapp_module modules/mod_webapp.so
    AddModule mod_webapp.c
    And the end of the file you must add these lines:
    WebAppConnection conexion warp localhost:8008
    WebAppDeploy examples conexion /examples
    The first parameter -2nd line- (examples) is the URL name application, the second is the connection's name and the last parameter is the application's name. This name is the same which in servlet.xml.
    At last you can add one more lines to check the module's configuration:
    WebAppInfo /webapp-info
    If you visit http://<yoor_host>/webapp-info you can see the configuration.

  • How to uninstall Apache web server from 9.2.0.7.0/windows

    Hi All,
    Due to security vulnerability issues we would like to uninstall the Apache Web server from the currently installed oracle 9i version 9.2.0.7.0 on the windows box.
    One of the production database is associated with the current oracle version.
    I really don't know is it possible to uninstall Apache Web server from the oracle version, if we can uninstall is there any documentation available from oracle metalink?
    Please let me know what is the correct procedure to uninstall Apache Web server.
    Thanks in advance,
    karv.

    Using the Oracle Universal Installer, click the uninstall button and see if the Web server appears in the list of installed products. If so you should be able to uninstall it there.

  • Configure/installing apache web server (1.3.26) plug in for weblogic server  6.1

    hi,
    can any body know the exact steps to configure the apache web server which can proxy requests to weblogic server 6.1?
    thanks in advance.

    hi,
    can any body know the exact steps to configure the apache web server which can proxy requests to weblogic server 6.1?
    thanks in advance.

  • How to install Apache Http server on Solaris sparc-32 bit systems

    Hi Friends,
    I installed apache in windows platform, where we have direct .exe file to install apache on windows.
    I heard, in solaris different process of installation is that right...?
    will we get direct .bin executable file for apache like wls923_solaris32.bin or need to we follow diff procedure for apache installation in solaris.
    Please help me
    Thanks
    Deep
    Edited by: user10249953 on Feb 22, 2009 8:28 PM

    Hi Friends,
    I installed apache in windows platform, where we have direct .exe file to install apache on windows.
    I heard, in solaris different process of installation is that right...?
    will we get direct .bin executable file for apache like wls923_solaris32.bin or need to we follow diff procedure for apache installation in solaris.
    Please help me
    Thanks
    Deep
    Edited by: user10249953 on Feb 22, 2009 8:28 PM

  • InBuilt Apache Web Server v2.0.58 on Solaris 10

    Hi,
    We are working on a custom application which works with the inbuilt Apache Web Server on the Sun Solaris platform. Here are the details of the versions of the various components involved:
    Apache Web Server: Version 2.0.58
    Platform: SunOS 5.10 Generic_127111-03
    Our application is in the form of a shared library(.so binary) which is loaded into the Apache Web Server by mentioning the following directive in the Apache Web Server's configuration file (httpd.conf):
    LoadModule at_module "/var/apache2/logs/sample/sample.so"
    Where, sample.so is our application's binary
    And at_module is the name of the module.
    Problem details:
    For each request to the Apache Web server, the server maintains a table of type "apr_table_t" which contains the header environment from the request. There is a structure "request_rec" maintained in the httpd.h file:
    /** A structure that represents the current request */
    struct request_rec {
    /** The pool associated with the request */
    apr_pool_t *pool;
    /** Request method (e.g. GET, HEAD, POST, etc.) */
    const char *method;
    /** MIME header environment from the request */
    apr_table_t *headers_in;
    In our case, when we try to retrieve the address of "headers_in", we get a NULL Value. Please refer to the code for "sample-apache.cpp" program. Here it goes:
    ** Sample Program acting as a loadable Apache module.
    ** Overview:
    ** This sample program contains the necessary methods to make the program act as a module which can be loaded into the Apache ** Web Server. This program contains skeleton code which is necessary for any module which needs to be loaded into the Apache ** Web Server.
    ** Usage:
    ** 1) Compile and link this program to create a shared library.
    ** Compilation step:
    ** /opt/SUNWspro/bin/CC -c -o sample.o -I<Path to your include directory for Apache API's> sample-apache.cpp
    ** Link step:
    ** /opt/SUNWspro/bin/CC -G -compat=5 -mt -M map.SunOS -o sample.so sample.o -lsocket -lnsl -lpthread -ldl -lposix4 -lCstd ** -lCrun -lm -lw -lthread -lcx -lc
    ** 2) The sample program creates a module named "at_module" which can then be loaded in the Apache Web Server's configuration ** file, httpd.conf in the form of a configuration directive as shown below:
    ** LoadModule at_module "<Location of the shared library created from this sample program>"
    #include "httpd.h"
    #include "http_config.h"
    #include "http_request.h"
    #include "http_log.h"
    static const char s_szInputFilterName[] = "INPUTFILTER";
    extern "C" module at_module;
    typedef struct
         int Enabled;
         char *szConfigFile;  
         apr_array_header_t *input_filters;
    } server_config_struct;
    extern "C" apr_status_t ChildExit(void *p);
    extern "C" apr_status_t ParentExit(void *p);
    extern "C" int Init(apr_pool_t p, apr_pool_t pLogPool, apr_pool_t pTempPool, server_rec s)
    void *data;
    const char *user_data_key = "init_module";
    apr_pool_userdata_get(&data, user_data_key, s->process->pool);
    if(!data)
              apr_pool_userdata_set((const void *) 1, user_data_key, apr_pool_cleanup_null, s->process->pool);
    else
              server_config_struct pConfig = (server_config_struct ) ap_get_module_config(s->module_config, &at_module);
              apr_pool_cleanup_register(p, s, ParentExit, apr_pool_cleanup_null);
              ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, "Exit callback registered.");
              fflush(NULL);
    return OK;
    extern "C" void ChildInit(apr_pool_t p, server_rec s)
         apr_pool_cleanup_register(p, s, ChildExit, apr_pool_cleanup_null);
         return;
    extern "C" apr_status_t ChildExit(void *s)
         return APR_SUCCESS;
    extern "C" apr_status_t ParentExit(void *s)
         return APR_SUCCESS;
    extern "C" int access_checker(request_rec *r)
         FILE * fp;
         fp = fopen("/var/apache2/logs/sample.txt", "a");
         fprintf(fp, "\n r->headers_in = %u, r->method = %s", r->headers_in, r->method);
         fclose(fp);
         return OK;
    extern "C" apr_status_t input_filter_init(ap_filter_t *f)
         return APR_SUCCESS;
    extern "C" apr_status_t input_filter(ap_filter_t f, apr_bucket_brigade pbbOut,
                                                 ap_input_mode_t mode, apr_read_type_e block,
                                                 apr_off_t readbytes)
         return APR_SUCCESS;
    static void register_hooks(apr_pool_t *p)
         ap_hook_post_config(Init, NULL, NULL, APR_HOOK_MIDDLE);
         ap_hook_child_init(ChildInit,NULL,NULL,APR_HOOK_MIDDLE);
         ap_hook_access_checker(access_checker, NULL, NULL, APR_HOOK_REALLY_LAST);
         ap_register_input_filter(s_szInputFilterName, input_filter, input_filter_init, AP_FTYPE_RESOURCE);
    extern "C" module AP_MODULE_DECLARE_DATA at_module =
    STANDARD20_MODULE_STUFF,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    register_hooks
    //End of sample
    In this program, inside the access_checker() method, we try to retrieve the address of "headers_in" and get that as NULL:
    extern "C" int access_checker(request_rec *r)
    FILE * fp;
    fp = fopen("/var/apache2/logs/sample.txt", "a");
    fprintf(fp, "\n r->headers_in = %u, r->method = %s", r->headers_in, r->method);
    fclose(fp);
    return OK;
    Here is the output of the sample program after accessing the main page of the Web server:
    r->headers_in = 0, r->method = GET
    r->headers_in = 0, r->method = GET
    r->headers_in = 0, r->method = GET
    Though we are able to retrieve one member of the structure request_rec (method), we are not able to retrieve the address of the other member (headers_in).
    Observation:
    We made an interesting observation that when we used the same sample program with the inbuilt Apache 2.0.52 Web Server on Solaris, we were able to successfully retrieve the address of headers_in. Here are the details of the set-up which is working fine:
    Apache Web Server: Version 2.0.52
    Platform : SunOS 5.10 Generic_118822-30
    Thus, there is something different which has happened between the Sun's Solaris Apache Web Server's versions 2.0.52 and 2.0.58 which is making it unable to retrieve the address of the request headers (headers_in) in version 2.0.58.
    Can sombody please help me find out the reson for this difference and let me know if we need to change the way of retrieving the request headers for Solaris Apache 2.0.58.
    Thanks

    Ok, found the problem:
    Do not use this "SSL_RENEGOTIATE_NEVER" as a value for the environment variable:
    NSS_SSL_ENABLE_RENEGOTIATION=SSL_RENEGOTIATE_NEVER;export NSS_SSL_ENABLE_RENEGOTIATION
    instead, use "0":
    NSS_SSL_ENABLE_RENEGOTIATION=0;export NSS_SSL_ENABLE_RENEGOTIATION
    Add that line to your startserv script and it should disable ssl renegotiation permanently.
    Regards,

  • Is it possible to use Standalone Apache web server with APEX ?

    HI,
    We are currently evaluating Oracle Applciation Express to be part of our product suite.
    Currently, in our software landscape, we are using standalone apache http server on the database server (Required for our java front end application). We support our product on both 9i & 10g. My query is for Oracle APEX, can I use the same standaloe apache http server or Is it a must that I have to use Oracle HTTP server. (I read abt' embedded PL/SQL gateway, however I am not sure whether it's supported on 9i). I am not sure, whether for mod_plsql we have to use Oracle HTTP server only.
    Any inputs on this will be of great help.
    Thanks,
    Ganesh

    To access APEX through Apache, you need to use mod_plsql. I don't think there is a mod_plsql plug-in that you can install into a standalone Apacher server. I could be wrong, someone else might know more about this.
    I think it would probably be easiest to use the HTTP server that comes on the 10g companion disk - that comes "free" when you buy the database. It is Apache and it has mod_plsql already installed and set up.
    Seems like I played around with the embedded PL/SQL gateway (DBMS_EPG package) on 9i a while ago. I could be wrong, it was a while ago. I was in the process of upgrading 8iR3 to 9iR2 and also evaluating new features of 10gR1. Things seem to mesh together after time.
    Thanks,
    Dan

  • How to link Apache Web Server and SJSAS 9.0

    I am running Apache 2.2.3 http server on port 80. I want to use Sun Java System Application Server 9.0 to serve my J2EE apps. I want to process JSP and servlets through the web server and have them redirected to the app server. In setting up Tomcat to do similar you have to use mod_jk and I would like to know how to do it on SJSAS ? Any help much appreciated, thanks.

    http://weblogs.java.net/blog/amyroh/archive/2006/08/index.html

  • Upload form problems on Mac web server with PHP

    First time using a mac web server and I'm having a heck of a time getting a simple upload form to work in this environment. The errors I'm receiving are:
    Warning: move_uploaded_file(/Library/WebServer/Documents/mydirectory/content/mwm/) [function.move-uploaded-file]: failed to open stream: Is a directory in /Library/WebServer/Documents/mydirectory/umin/uploadContent.php on line 66
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/private/var/tmp/php1pRrx5' to '/Library/WebServer/Documents/mydirectory/content/mwm/' in /Library/WebServer/Documents/mydirectory/umin/uploadContent.php on line 66
    Usually this problem is resolved by changing permissions on the directory receiving the upload. I've already done that, and set the permissions to 777, though the problem still persists.
    I'm basically defining my upload directory, and then moving the file thereafter:
    define('UPLOAD_DIR', '/Library/WebServer/Documents/mydirectory/content/'. $category . '/');
    move_uploaded_file($_FILES['uploadedFile']['tmp_name'], UPLOAD_DIR);
    The rest of the script, without the move execution, works properly. Any help would be appreciated.
    Message was edited by: LoopyChicken

    BAH!
    I had forgotten to add the name of the file to the move command:
    Fix here:
    move_uploaded_file($_FILES['uploadedFile']['tmp_name'], UPLOAD_DIR.$file);
    Thanks.

  • How to Install Apache 2.x with ssl on solaris 8/9 for reverse proxy

    Hi,
    I need to install Apache 2.x on solaris , along with mod_ssl and openssl . I am not sure where to find the required version for solaris and also where to find openssl and mod_ssl for installation for 2.x.
    I need this for configuring reverse proxy pointing to the Portal.

    Harish,
    I think, I don't get your problem...
    the files are available at http://www.apache.org (binaries and source)
    http://www.artfiles.org/apache.org/httpd/binaries/solaris/
    openssl at http://www.openssl.org
    mod_ssl at http://www.modssl.org
    kr, achim

Maybe you are looking for

  • Search not working for Acrobat Macintosh forum  Adobe hates Mac?

    I have tried searching this forum, only to get 0 results every time. Even such basic keywords as "pdf" results in 0 results. I've have tried seaching without singing in, with signing in, in Firefox, in Safari... nothing. I want to make some forms in

  • Messages not being marked as Read on IMAP account on iMac

    I use the Mail application on my iMac to read my Gmail. I have it set up as IMAP, and it has worked very well for a long time. Recently, however, I noticed that if I read my mail on my iPhone, or my work computer (both of which have the correct IMAP

  • Mail merge ('09) is giving spurious results

    I am trying to do what should have been a fairly simple mail merge function, but it is producing weird results.  I am doing date calculations in Numbers, and using that for producing a document with different date elements (all are in the spreadsheet

  • Helvetica bold displays incorrectly - InD CS5

    Depending on the size, Helvetica Bold displays incorrectly in sizes 9 pt and 13 pt.  For instance, the word "Howard" displays correctly when the regular font is used; when bold, the 'w' in Howard looks like it is one point smaller: Howard Unfortunate

  • Questions: Hyperlink and Rollover

    Dear all, I use InDesign CS6 and i'm going to create a Interactive PDF file. I have two questions: 1) I want to create some create buttons in all the pages of my document. I've created 3 small object on the Master page (one button for the "previous p