Enable CGI in Apex Apache

Hello All,
I've recently installed APEX. Everything from "apex" development point of view works just fine. But I amm having a hard time setting up/enabling CGI/Perl script in the Apache server.
I have used the standard setup therefor, my http server is http://myserver:7777/pls/apex. Now I've modified my http.conf file with the follwoing entries:
AddType application/x-httpd-cgi .cgi
AddType application/x-httpd-cgi .pl
ScriptAlias /cgi-bin/ "/opt/oracle/product/10.2.0/apex/Apache/Apache/images/cgi-bin/"
# "/opt/oracle/product/10.2.0/oms10g/Apache/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<Directory "/opt/oracle/product/10.2.0/apex/Apache/Apache/images/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>I have change the permission on the folder and create a file called test.pl. When I run it I always get 500 Internal error. After checking the logs it complains about some premature headers and then states that the file does nto exist. This should really not be the case, because the test.pl is just about the simplest form possible and the apache settings ( at least I think, are to be correct). I test this by doing:
http://myserver:7777/cgi-bin/test.pl
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "testing...\n";Did I go wrong somewhere? Can anybody direct me in the correct direction. I have also ran the following to get some info on my env.
begin
owa_util.print_cgi_env;
end;
/Here is the output:
PLSQL_GATEWAY = WebDb
GATEWAY_IVERSION = 3
SERVER_SOFTWARE = Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
GATEWAY_INTERFACE = CGI/1.1
SERVER_PORT = 7777
SERVER_NAME = myserver
REQUEST_METHOD = POST
PATH_INFO = /wwv_flow.show
SCRIPT_NAME = /pls/apex
REMOTE_ADDR = 10.6.100.47
SERVER_PROTOCOL = HTTP/1.1
REQUEST_PROTOCOL = HTTP
REMOTE_USER = APEX_PUBLIC_USER
HTTP_CONTENT_LENGTH = 292
HTTP_CONTENT_TYPE = application/x-www-form-urlencoded
HTTP_USER_AGENT = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
HTTP_HOST = myserver:7777
HTTP_ACCEPT = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5
HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_REFERER = http://myserver:7777/pls/apex/f?p=4500:1003:1620410303274728::NO:::
HTTP_ORACLE_ECID = 81038208787,1
HTTP_ORACLE_CACHE_VERSION = 10.1.2
WEB_AUTHENT_PREFIX =
DAD_NAME = apex
DOC_ACCESS_PATH = docs
DOCUMENT_TABLE = wwv_flow_file_objects$
PATH_ALIAS =
REQUEST_CHARSET = UTF8
REQUEST_IANA_CHARSET = UTF-8
SCRIPT_PREFIX = /pls
HTTP_COOKIE = LOGIN_USERNAME_COOKIE=admin; ORA_WWV_REMEMBER_UN=ADMIN:ORIFLAME; ORA_WWV_USER=7E9E816ED5CDC688; ys-active_tab=s%3Atab_1;ys-ext-comp-1026=o%3Acollapsed%3Db%253A1; ys-ext-comp-1081=o%3Awidth%3Dn%253A800%5Eheight%3Dn%253A465%5Ex%3Dn%253A240%5Ey%3Dn%253A108; ys-east-panel=o%3Acollapsed%3Db%253A0; ys-purchase-panel=o%3Acollapsed%3Db%253A0; ys-chart-region-1=o%3Acollapsed%3Db%253A0; WWV_CUSTOM-F_2787700778075484_123=1F474351E340C827; ys-ext-comp-1286=o%3Awidth%3Dn%253A1100%5Eheight%3Dn%253A652%5Ex%3Dn%253A90%5Ey%3Dn%253A117Thank you in advance for any assitance anybody can provide.
Regards
Jan

Usually a Wallet is created at installation time with a dummy certificate for SSL.
If you are planning to use a certificate from any commercial CA, you should go ahead and create a new Wallet, then create the certificate request and send it to the CA to get your certificate.
After that change the ssl virtual host configuration to point to the new wallet.

Similar Messages

  • To enable SSL in Apex 3.1.2, wallet must or not

    Hi Experts,
    We have to enable SSL in Apex 3.1.2. We are using Companion HTTP server as a Application Server.
    My question is,
    To enable SSL we need to create wallet or not?
    Please clarify my doubt.
    Thanks
    R.Sundaravel

    Usually a Wallet is created at installation time with a dummy certificate for SSL.
    If you are planning to use a certificate from any commercial CA, you should go ahead and create a new Wallet, then create the certificate request and send it to the CA to get your certificate.
    After that change the ssl virtual host configuration to point to the new wallet.

  • Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"h

    HI!,
    I really need help on this. I have tried multiple installs but with no sucess. Below is the copy of my marvel.conf.
    Alias /i/ "D:\oracle\product\10.2.0\apex\Apache\Apache\images\"
    AddType text/xml xbl
    AddType text/x-component htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString localhost:1521:XXXX ServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDefaultPage apex
    PlsqlDatabasePassword apex
    Allow from all
    </Location>
    I tested login with sqlplus apex_public_user/apex and that works fine. The page comes up fine but the gif files are missing and this what what I see in the error log file.
    Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"1px_trans.gif
    Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"javascript
    I have added the include line in the http.conf pointing to the marvel.conf.
    I get the login prompt and thats it - cannot go ahead than that. Any help would be highly appreciated.
    Thanks
    Ketan

    omg ! where is this documented. I have uninstalled OH , reinstalled it 3 - 4 times.
    Infact I even dowloaded the apex zip file 2 times thinking something went wrong while downloading.
    That worked for me.. thanks a lot Maxim.

  • How to enable php, mysql, and apache?

    Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem...
    According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac. My problem is when I try to enable the apache, instead of coming a localhost ( like 128.1.2.1) comes my website " your computer's website: http://nunomedi-e14....lan/ ) I donn't know what is this, I replace the index.html with index.php in sites folder.
    Can somebody help me please.

    Please look at my second post. I corrected what I said:
    macwiz1220 wrote:
    O wow. I'm sorry. I have no idea where i got that from. The file you want is in /etc/apache2/httpd.conf and the line you are looking for is *#LoadModule php5_module*
    Take a look at this article on LAMP on Leopard.

  • Cgmap.dat - url format of calling a web enabled cgi report

    Hi,
    I am running Oracle Reports on OAS 4.0.8.1 and Developer/2000 6.x Report Server. I am new to this web enabled reporting, so it's probably trivial, but:
    How should a link for my report look like, when I am running it with URL mapping.
    The CGI URL looks like this:
    http://ept_peti/cgi-bin/rwcgi60.exe?server=ptrep&report=probarep.rdf&userid=test%2Ftest%40test&destype=cache&desformat=html
    and it runs fine. I have in my cgimap.dat file the following line:
    dodo: report=probarep.rdf userid=test/test@test destype=cache desformat=html
    The question is, how does the url like if I would like to run it with url mapping.
    TIA.
    null

    Hi Sir,
    Yes, you are right. User needs to be authenticated before running the reports.
    However, one way is to fill the authentication form, which our customer would not prefer to use.
    So, the next method is put the authentication details as part of the url parameter. However this can been seen by the rest of the people and we don't want end user to know about the database username and password.
    So, we put the authentication information in the a file in NT called rep60.dat
    Now the user can run the report using url that does not contains authentication information.
    But the thing is if any of the unauthorise user came across to remember the url, he can just run it in browser without any authentication as it has been put in the file as auto authentication.
    In this case, is there any way we can enforce the security?
    Please advise.
    Thanks.

  • Enabling PHP is breaking Apache.

    I am following the tutorial at, http://developer.apple.com/mac/articles/internet/phpeasyway.html, to enable apache/mysql. Where the tutorial is titled, "Enabling PHP in Apache", I copy and pasted the code to terminal. Osascript password prompted and I entered. When the script finished, I can't access "my computers website", as it just returns as busy/not found. For some reason the Mac HD: private: etc: apache2: httpd.conf file (the copy) is created, but is completely blank. When I replace it with the original, I can access "my com website" again.
    Also. The httpd.conf file does not have a line "#LoadModule php5_module libexec/apache2/libphp5.so".... so there is nothing to toggle?
    Can I just edit that file manually to enable Php?
    Message was edited by: thejackkelly

    Solved with new php install.

  • Enable https on Apex application and now the page wont display

    Hi,
    I enabled https under security, instance on Apex application and now the page wont display. Please help because I wanted to start using https on my url

    Hi,
    I enabled https under security, instance on Apex application and now the page wont display. Please help because I wanted to start using https on my url

  • WebDB and CGI Wrapper with Apache

    Has anyone had any success using the cgi wrapper that oracle provides for running webdb on Apache (or others). I got it to work pretty much but once I log in to webdb the wdbcgi executable crashes:
    [Thu Feb 10 16:47:45 2000] [error] [client 208.229.24.130] malformed header from
    script. Bad header=Segmentation fault: /ccweb/cgi-bin/wdbcgiw
    Any ideas?

    Has anyone had any success using the cgi wrapper that oracle provides for running webdb on Apache (or others). I got it to work pretty much but once I log in to webdb the wdbcgi executable crashes:
    [Thu Feb 10 16:47:45 2000] [error] [client 208.229.24.130] malformed header from
    script. Bad header=Segmentation fault: /ccweb/cgi-bin/wdbcgiw
    Any ideas?

  • Enabling CGI in MacOS Localhost

    I am using my Mac as a 'Localhost' to serve a site while I build it, > /Library/WebServer/Documents, and have put my CGI script - pd.cgi ( http://ginini.com/software/pd/ ) - into the CGI-Executables folder. As far as I know a web page calling the script will be aliased to the script in the CGI-Executables folder. I get the error:
    This script can only be run from a valid site
    Suggestion: Update the list of referers
    Grateful for any pointers.

    http://ginini.com/cgi-bin/yabb2/YaBB.pl?num=1040433855/1

  • How to enable APEX in 11gR2?

    I just got done starting from scratch on a new server. Installed OS (Windows 2008R2 SP1) and patched. Installed Grid Control. Installed 11gR2 (11.2.0.1). Verified that the database is up and working. I'm trying to enable the existing APEX already in the database. It's 3.2 version (I will upgrade to 4.1 AFTER porting my application). I can not find any documentation that is limited to just enabling it, even though I can already see the users (see output).
    SQL> select username from dba_users;
    USERNAME
    MGMT_VIEW
    SYS
    SYSTEM
    DBSNMP
    SYSMAN
    OUTLN
    FLOWS_FILES   <---
    MDSYS
    ORDSYS
    EXFSYS
    WMSYS
    APPQOSSYS
    APEX_030200   <---
    OWBSYS_AUDIT
    ORDDATA
    CTXSYS
    ANONYMOUS
    XDB   <---
    ORDPLUGINS
    OWBSYS
    SI_INFORMTN_SCHEMA
    OLAPSYS
    SCOTT
    ORACLE_OCM
    XS$NULL
    BI
    PM
    MDDATA
    IX
    SH
    DIP
    OE
    APEX_PUBLIC_USER   <---
    HR
    SPATIAL_CSW_ADMIN_USR
    SPATIAL_WFS_ADMIN_USR
    36 rows selected.Please tell me just how to enable access. Thanks.

    Okay, for anyone else trying to do this, here's all you have to do.
    First, don't read the documentation as a step-by-step guide. The only result will be to frustrate you (like it did me).
    Second, isolate what is installed already. If you were like me, you installed ASM, then the database, and didn't know where to go. A quick query of the users shows that the schemas for APEX are installed. XDB is also up and ready to go. What it doesn't tell you is that all you need is the application server portion. Though it would have been MUCH more straightforward if they just said "now reference this section in the APEX install guide to install the [insert application server here]", they don't. So here's where to go: http://docs.oracle.com/cd/E14373_01/install.32/e13366/db_install.htm#CBHEEDHJ (please note that this is for Embedded PL/SQL gateway)
    Third, copy/paste the few scripts into a command prompt logged in as the SYS user to enable the application server of your choice.
    Fourth, go to the URL: http://[hostname]:[port]/apex/apex_admin. This should be the main APEX admin page where you set up users, create applications, etc. If you can get it, great - you're ready to begin development, porting of applications, upgrading, etc.

  • Configuring HTTP Apache Server with Oracle Apex

    Hi All,
    I have trawled through various threads on here to see if it would help my resolve the problem i seem to be having, but to no avail :(
    I have an oracle RAC db with apex installed. the RAC uses a service: apextest.com
    I have an HTTP Server installed on a seperate server, I have copied the Images over so it knows what to use. Made sure the httpd.conf file is pointing to the correct images path.
    As its a RAC db, i have put in the dads.conf file a 'TNSFormat' setting for the 'PlsqlDatabaseConnectString', using the TNSnames.ora entry named DEXTER which uses the apextest.com service name.
    My dads.conf file:
    Alias /i/ "/apex/Apache/Apache/images/"
    AddType text/xml       xbl
    AddType text/x-component       htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure         wwv_flow_file_mgr.process_download
    PlsqlDatabaseConnectString     DEXTER TNSFormat
    PlsqlNLSLanguage               AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode        Basic
    SetHandler                     pls_handler
    PlsqlDocumentTablename         wwv_flow_file_objects$
    PlsqlDatabaseUsername          APEX_PUBLIC_USER
    PlsqlDefaultPage               apex
    PlsqlDatabasePassword          apex_pword
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow from all
    </Location>My TNSnames Entry:
    DEXTER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername.com)(PORT = 1521))
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername2.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = apextest.com)
      )i can tnsping using the apex_public_user account and correct password and also sqlplus using the same account and password:
    tnsping DEXTER
    sqlplus apex_public_user/apex_pword@DEXTERim getting the error of:
    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    The error log is spitting out -
    mod_plsql: /pls/apex/apex HTTP-503 ORA-12514Does anyone have any ideas? Anything i've missed out / not done ?
    Note: I have used the same HTTP Apache Server to host a version of apex4 on a standalone database which is installed on the same server. So just wondered if that has anything to do with it?
    thanks in advance :)

    Hello,
    According to the error ORA-12514, there is a problem for the mod_plsql to connect to the database :
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Is the "alias" DEXTER defined in the file tnsnames.ora used by mod_plsql ?
    Regards

  • [SOLVED] enable apache ssl to use httpS at will for any vhost

    Hi,
    I have enabled ssl on my apache install without a problem by including the file httpd-ssl.conf in my http.conf.
    I have tested access by trying to access my phpmyadmin install by going to my site: https://example.com/phpmyadmin
    However, when trying to use a vhost with https, it doesn't work, I get redirected to a default page (first configured vhost) as https.
    If I modify the vhost like this, adding 443:
    <VirtualHost *:80 *:443>
    </VirtualHost>
    I get an error "(Error code: ssl_error_rx_record_too_long)".
    If I just add to the vhost config file instead like this:
    NameVirtualHost *:80
    NameVirtualHost *:443
    SSLStrictSNIVHostCheck off
    then I still only get the default site, but not my vhost site under ssl.
    Any pointers on getting this to work? I want to be able to universally add an "s" to "http" for any vhost whenever I feel like it to encrypt traffic...
    Thanks!
    EDIT: Here's the solution I found. I disabled ssl on apache by commentingout the httpd-ssl.conf-Include directive in httpd.conf.
    Then I installed stunnel and pointed it to my server key and certificate and enabling https connections to forward to port 80 on localhost.
    One gotcha to look out for was to put "https: ALL" into the /etc/hosts.allow file as stunnel apparently uses this to decide whether a client can connect.
    Last edited by awayand (2011-04-24 12:10:46)

    Apache is already listening on 443, otherwise it wouldn't work at all when I access https://example.com/phpmyadmin. My problem is that instead of responding by serving the requested vhost, apache serves only the default vhost page. For example, https://x.example.com, https://y.example.com, https://z.example.com all serve my default page at https://example.com instead of the corresponding vhost. Any idea as to what to configure so that apache serves the requested vhost under https?
    EDIT: clarification
    Last edited by awayand (2011-04-23 04:39:02)

  • Enabling https on already running apache server

    How to enable https already running apache server.
    Regards

    Saurabh,
    > How to enable https already running apache server.
    >
    It should be on by default. It is controlled by the secure listen
    directive in httpd.conf
    - Anders Gustafsson, Engineer, CNE6, ASE
    NSC Volunteer Sysop
    Pedago, The Aaland Islands (N60 E20)
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    http://support.novell.com/enhancement
    Using VA 5.51 build 315 on Windows 2000 build 2600

  • Webdb cgi + apache

    Hi folks,
    I have a privat question :-)
    I trying to run the webdb (linux) cgi programm with apache.
    It is running when I add the username and password in the
    configuration file.
    But that is not what I want :-(
    The other point is I don't know Apache configuartion so well
    So can somebody tell me how to configure the cgi-bin dir
    in that way, that he not makes an authentication with the
    web server but with the db.
    The reason here for is, I like webdb by itself very much,
    but the listner is a mess :-( even on linux or hp or aix.
    And I have to make some progress.
    You would really help, thanks, Olaf ;-)
    null

    Below is a script that you can use to create the WebDB objects in
    your database. It does EXACTLY the same what orainst of webdb
    usually does for you, and it WORKS. The advantage here is that
    you have more control - a lot more control - compared to running
    orainst and hoping for the best.
    Damn, I'm giving you guys all my hard earned know-how.... ok,
    that stuff is easy, no reason to be proud of it. I took it from
    the orainst-files when I debugged teh webdb-installation process
    and created that script from the information. I've used it a lot
    since to create the webdb objects on an otherwise 'naked'
    database. You need to have ORACLE_HOME set, and ORACLE_SID, of
    course.
    I DO hope you have created a big enough database?! The good old
    8.0.5.x demo database is too small!
    Attention: if using this with another database than 8i you must
    probably change the file locations. On 8i, WebDB is installed
    completely under $ORACLE_HOME/webdb/, while this is different
    when WebDB is installed on 8.0.5. That is because Oracle didn't
    want to mix old (glibc-2.0) WebDB libraries and binaries and new
    8i libs and binaries.
    #!/bin/bash
    # Installing the PL/SQL Toolkit (OWA packages)
    cd $ORACLE_HOME/webdb/support/sqlfiles/owa/
    $ORACLE_HOME/bin/sqlplus sys/change_on_install << EOF
    @owaload.sql OAS_PUBLIC users temp
    exit
    EOF
    # Install the WebDB packages
    cd $ORACLE_HOME/webdb/support/sqlfiles/wwvcb/
    ./winstall webdb change_on_install USERS TEMP
    # Install English
    cd $ORACLE_HOME/webdb/support/sqlfiles/langs/
    $ORACLE_HOME/bin/sqlplus webdb/webdb << EOF
    @webdbus.sql
    exit
    EOF
    # Install German, Spanish, Italian, French
    cd $ORACLE_HOME/webdb/support/sqlfiles/langs/
    $ORACLE_HOME/bin/sqlplus webdb/webdb << EOF
    @webdbd.sql
    @errord.sql
    @webdbe.sql
    @errore.sql
    @webdbi.sql
    @errori.sql
    @webdbf.sql
    @errorfsql
    exit
    EOF
    null

  • Compiling Apache 2.2 and php 5.2 from source on Arch

    Hi there
    Wanting to compile Apache 2 with PHP 5 on my Arch server. I figure this must be frequently done by people out there wanting more control over how their servers are setup, and was wondering if anyone had some good documentation for this? If none exists I'm keen to work on putting it up on the Arch Wiki.
    I've compiled apache httpd-2.2.16 from source already, and have it running nicely.
    Apache compile options were:
    ./configure --prefix=/usr/local/apache \
    --enable-rewrite --enable-ssl --enable-so \
    --enable-mime-magic --enable-suexec \
    --enable-static-rotatelogs \
    --disable-imap --disable-userdir --enable-cgi \
    --disable-dav \
    --disable-proxy-connect --disable-proxy-ftp --disable-proxy-http --disable-proxy \
    --disable-authnz-ldap
    $ /usr/local/apache/bin/httpd -Vvv
    Server version: Apache/2.2.16 (Unix)
    Server built: Sep 6 2010 06:10:41
    Server's Module Magic Number: 20051115:24
    Server loaded: APR 1.4.2, APR-Util 1.3.9
    Compiled using: APR 1.4.2, APR-Util 1.3.9
    Architecture: 32-bit
    Server MPM: Prefork
    threaded: no
    forked: yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D DYNAMIC_MODULE_LIMIT=128
    -D HTTPD_ROOT="/usr/local/apache"
    -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"
    Now installing PHP from source is proving to not work out so easily.
    root@server: ~/source-programs/apache/httpd-2.2.16/php-5.2.14
    $ ./configure with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php
    configure: warning: with-apxs2=/usr/local/apache/bin/apxs: invalid host type
    loading cache ./config.cache
    checking for Cygwin environment... (cached) no
    checking for mingw32 environment... (cached) no
    checking for egrep... (cached) grep -E
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking host system type... with-apxs2=/usr/local/apache/bin/apxs
    checking target system type... with-apxs2=/usr/local/apache/bin/apxs
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether gcc and cc understand -c and -o together... (cached) yes
    checking how to run the C preprocessor... gcc -E
    checking for AIX... no
    checking whether ln -s works... (cached) yes
    checking for system library directory... lib
    checking whether to enable runpaths... yes
    checking if compiler supports -R... (cached) no
    checking if compiler supports -Wl,-rpath,... (cached) yes
    checking for gawk... (cached) gawk
    checking for bison... (cached) bison -y
    checking for bison version... (cached) invalid
    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
    checking for flex... (cached) flex
    checking for yywrap in -lfl... (cached) yes
    checking lex output file root... (cached) lex.yy
    checking whether yytext is a pointer... (cached) yes
    checking for working const... (cached) yes
    checking for flex version... (cached) invalid
    configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: )
    checking for re2c... no
    configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking whether to force non-PIC code in shared modules... no
    checking whether /dev/urandom exists... yes
    checking for pthreads_cflags... (cached) -pthread
    checking for pthreads_lib... (cached)
    Configuring SAPI modules
    checking for AOLserver support... no
    checking for Apache 1.x module support via DSO through APXS... no
    checking for Apache 1.x module support... no
    checking whether to enable Apache charset compatibility option... no
    checking for Apache 2.0 filter-module support via DSO through APXS... no
    checking for Apache 2.0 handler-module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support... no
    checking whether to enable Apache charset compatibility option... no
    I end up with the PHP bin files, but just can't get the module to compile.
    $ /usr/local/apache/php/bin/php -v     
    PHP 5.2.14 (cli) (built: Sep  6 2010 05:37:45)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    Have tried to make Apache execute php bin via CGI without any luck, but I think I'd rather work on compiling PHP into a module properly.
    Any help or pointers in the right direction would be greatly appreciated.
    Thanks
    Last edited by craig_nz (2010-09-08 08:07:13)

    Thanks for this!
    Using:
    ./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --prefix=/usr/local/apache/php \
    --disable-cgi
    --enable-so \
    --enable-rewrite \
    make
    libtool --finish /root/source-programs/apache/httpd-2.2.16/php-5.2.14/libs
    In /usr/local/apache/modules I get:
    libphp5.a  libphp5.la
    No libphp5.so yet but closer.. Also looking at how I can use ABS just to compile php.

Maybe you are looking for

  • ALV Grid - Subtotal & total to be shown at the top of the table

    Hi, I am using function module 'REUSE_ALV_GRID_DISPLAY' to display a table, and I count subtotals and total for some fields. The total is always shown at the bottom of the table, and subtotals are always shown after the rows that subtotals are calcul

  • Moving Image from one Review to Another?

    I attempted to upload an image (open in Photoshop) to a specific review. However, I could not see the desired review in the Photoshop CS Review panel. Out of frustration - after attempting to "find" the desired review for several minutes - I uploaded

  • Library consolidation issue

    I notice scrolling througf my new iPod that some artists are listed twice. What I find is under one heading all of the albums are listed with associated tracks. When I look at the duplicate artist heading, I find one or more songs listed from an albu

  • Oracle Text/Intermedia issue

    Hi Friends, To implement search capabilities in my oracle database, iam trying to install and configure intermedia. While doing this i came across a few issues: 1. In Our current setup we wish to use Oracle intermedia. All we need is to be able to cr

  • Picture from lightroom (5.5) won't transfer to photoshop (2014)

    Hi, having upgraded all of CC yesterday, I'm being stuck trying to transfer a picture (.dng and .arw) from my lightroom catalogue to Photoshop 2014. Photoshop is opening as I do Modify In ... (in Lightroom), but the picture won't show. Any Idea why ?