Apache 2.0 and PHP 5

Hello,
I have a Customer who wants to develop an application with IAS 9.0.4. There should be an Integration of PHP 5 as Apache module mod_php (using the following PEAR packages)
- DB
- DB_LDAP
- Auth
- Config
- File
- Log
- XML_Serializer
and additional Apache modules mod_ssl and mod_dav should also be used.
Has somebody done something similar.
I know that this is not official supported, but I just wan t to know if there are technical traps or bugs which could be show stopper.
thanks in advance for your help
Martin

Recent traffic on php.internals makes me think the note in
http://www.php.net/manual/en/install.apache2.php
"Do not use Apache 2.0 and PHP in a production environment
neither on Unix nor on Windows." is still valid.
-- CJ

Similar Messages

  • For David Powers - Apache 2.2 and php 5.2. Virtual hosts

    Hi David,
    I have updated to the latest Apache and PHP
    Apache 2.2 and php 5.2. Must easier instal,
    But now I'm setting up Virtual hosts to make it easier to use
    php
    includes and DW templates.
    I have followed instructions on page 86 of above book, but I
    can't
    find the section NameVirtual Host on Apache's httpd.conf and
    it is
    much shorter than 950 lines.
    Malcolm N_
    ~Malcolm N....
    ~

    On Sun, 21 Jan 2007 11:49:47 -0000, "Dave Buchholz"
    <[email protected]> wrote:
    >Malcolm,
    >
    >a different David I know but you will find an updated
    tutorial on the "real"
    >David's site here
    http://foundationphp.com/tutorials/apache22_vhosts.php
    Many thanks David - I had found his revised tutorial on
    installing
    Apache - but I must have missed the bit on virtual hosts.
    That's great - I've not got all my sites working as virtual
    hosts (:-)
    Now to play with relative links / links to php include files
    in
    templates. !!!
    I'm going to try to get headers, footers and nav panels etc
    out of the
    main template(s), and do what Murray has been nagging
    everyone to do
    for ages.....
    I wasn't getting on well with that with before !! - standby
    for more
    questions.
    I had to read two of David's excellent books about three
    times - eh !.
    Malcolm
    ~Malcolm N....
    ~

  • Need help regarding Apache httpd.conf and PHP setup.

    Hi,
    I am facing problem setting up my PHP and apache setup. I have installed Apache2.2 Root path = C:\Program Files\Apache Software Foundation\Apache2.2
    I have also installed PHP in my C:\PHP drive earlier. I moved this PHP folder to C:\Program Files\Apache Software Foundation\Apache2.2 just to keep all things at one place.
    I have copied php5ts.dll at 4 locations - C:\Program Files\Apache Group\Apache2 \bin , %SYSTEMROOT%\System32, %SYSTEMROOT%\system and %SYSTEMROOT%. I have also added these paths in Environment variable 'PATH'.
    In httpd.conf file entries are as follows:
    ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
    I have added these 3 lines as
    LoadModule php5_module php/php5apache2.dll
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    When restarting apache http server I get message as:
    httpd.exe error ...... cannot load C:\Program Files\Apache Software Foundation\Apache2.2\php\php5ts.dll into the server. The specified module could not be found.
    I have checked that php5ts.dll DLL exist at above path. Please help me out urgently.

    Sorry I don't have Windows available to check the paths. With recent versions
    of PHP I never copied files out of the php source directory.
    Make sure the Oracle 10g Instant Client is in your PATH environment variable.
    You could try using the PHP Windows MSI installer.
    cj

  • 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.

  • Apache error  virtual() and PHP

    Using DW8's server behaviors, DW writes a virtual() statement
    to include the connection to MySQL. I get an error (standard
    windows looking error dialog box) saying that: "Apache HTTP Server
    has encountered a problem and needs to close. We are sorry for the
    inconvenience." In the Apache error log it is listed as: Error in
    my_thread_global_end(): 252 threads didn't exit.
    If I use a require_once() in its place, I dont get the error
    with Apache but DW keeps re-writing the virtual() statement and
    gives me the nasty (!) in the server behaviors panel.
    Anyone have any suggestions?
    PS - I am using DW8, php5.2.4, Apache2.2.6.

    Chaos7703 wrote:
    > Sorry, can't help, but I'm going through the exact same
    thing right now. I
    > keep having to change the virtual()s to require_once()
    myself.
    I've answered this in your other thread, but for the benefit
    of anyone
    who stumbles across this one instead, I'll paste the answer
    here too:
    Dreamweaver 8 and CS3 use virtual() if you select links
    relative to the
    site root in the Local Info category of the site definition
    dialog box.
    Since the PHP include and require commands cannot interpret
    site-root-relative links, you should select document-relative
    links when
    defining a PHP site. In cases where you need to use
    site-root-relative
    links (such as in an include file), override the default link
    style in
    the Create Link dialog box (there's a drop-down menu at the
    bottom left
    of the dialog box that lets you select whether the link is
    relative to
    the site root or to the document).
    The reason virtual() probably doesn't work for you is that
    it's an
    Apache-specific function that works only when PHP is
    installed as an
    Apache module.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Apache 1.3.33 and PHP 4.3.11 compiled in

    The package
    Here are the good stabile versions of both Apache and PHP including the following stuff:
    - support for these databases: mysql, postgresql, firebird
    - gdi support
    - mod_ssl along with a dummy certificate
    - eaccelerator for PHP and the default configuration for it
    - mod_gzip for pages compression
    - mod_security for ids system (see Snort and making its rules compatible with mod_security). Also remember to disable rules if you get problems with PHP developement. mod_security tends to be too aggressive at first with these default rules.
    The files
    PKGBUILD
    httpd
    apache13.install
    http.conf.d
    httpd.conf.mod_gzip
    httpd.conf.regression-v2
    httpd.logrotate
    Done
    02.05.2005
    - fixed apache13.install to properly stop the server before unistall
    - set eaccelerator to be configured more like it is in cactus's package
    01.05.2005
    - backing up etc/php.ini and etc/httpd/conf/httpd.conf
    - added logrotate support code from Judd's package
    - phpize is now called from startdir instead of /usr/bin/phpize for eaccelerator
    30.04.2005
       - the package depends now on my firebirddb package. It was needed because
    libgds.so is needed when firebird support is compiled in
       - disabled imagick for the time being - got to find out how to make it compile properly by default
       - cleaned up the code that sets up php (the manual file copying doesn't seem to be needed anymore with 4.3.11)
       - made phpize to be called from ${startdir}
       - set mod_security filtering to Off as default
    29.04.2005 - updated php to v. 4.3.11
       - Tested using Gallery 1.4.4-pl5 and my own project (a lot of database activity and file handling)
    28.04.2005
       - fixed eaccelerator and it now works (php.ini had eaccelerator's settings inserted wrong way with "-marks). The execution of some scripts that took before 0.075 - 0.09 seconds now only takes 0.03-0.04
    27.04.2005
       - cleaned up code a bit and old comments and disabled cookie format checking for mod_security that was causing 500 error
    Todo and thoughts
    <i>10.05.2005</i> - found a great guide about securely setting up apache and php
    - it would be really great to implement a curses-based configuration where the PKGBUILD would be edited according to choices the users makes (because there are changes needed in many parts of the file) - this way the package would really be for everyone
    - deleting default apache manual
    - to get imagick to compile- graphicsmagick installation to work properly or to make it optional
    (ignore the text about graphicmagic in PKGBUILD - it was just for my own tests)

    I built it today and tested again and compiling part went just fine. Only apache13.install was missing - it had pre-remove commands (if server is already running to stop it). Then removed the older same package (pacman -R) and replaced it with the new one. Then started up apache and had 500 error - it was caused by mod_security. Turned off cookie filter in httpd.conf.regression-v2 (SecFilterCheckCookieFormat Off) and then it started up fine.
    The eaccelerator did not appear on php info page, so got to fix setting it up... Please let me know what else seems suspicious to you and what might cause errors.

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • Apache and PHP not working together

    Hey all,
    Ok, I reinstalled my server yesterday and followed the LAMP wiki to set up Apache, MySQL, and PHP. Now, I got Apache and MySql working great, but when I go to directory that has a .php file to open, my brower is asking me what application I want to open with the file.
    I have set up this to handle the docuemtns:
    DirectoryIndex index.php index.phtml index.html
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    and still no go.
    Anyone got this to work?
    Thanks!!!
    Joe

    cactus wrote:
    http://bbs.archlinux.org/viewtopic.php?t=15596
    Check and see if what I said in my last post is happening to you as well...
    Yeah, I checked and the path is correct...
    Maybe I should just reinstall it?
    Thanks!!!

  • Apple's Apache 2.0.54, PHP 5.0.4 and MySQL 5.0.18

    Hello
    Using OSX Server 10.4.4.
    I'm considering using Apple's /opt Apache 2.0.54 with the builds of PHP 5.0.4 and MySQL 5.0.18. Has anyone any experience with this combination and any warnings / advice?
    MySQL 5.0.18 is an installer straight from MySQL and PHP 5.0.4 installer is straight from Marc Liyanage's entropy site.
    Thanks in advance...
    David.
    XServe G5   Mac OS X (10.4.4)  

    Hi there MartynC
    Just wanted to let you know that I screwed up - as usual, the simplest of errors.... I created a script around apachectl to start apache and prior to the apachectl start line I inserted
    ORACLE_HOME=<my oracle home>; export ORACLE_HOME
    ...only I mistyped <my oracle home> so apache wasn't finding it
    I've corrected that, restarted Apache and now PHP, Apache and Oracle are working fine!
    Thanks very much for your offer of help (the only consolation I can take is that possibly this will someone reading this will take note and double check the dumb stuff and save themselves a lot of time and heartache)
    Also I should note for anyone interested that my Linux installation is actually Centos 4.1 (a Redhat "clone")

  • Apache and PHP Security Scans

    I am now required to keep up with the latest versions of Apache and PHP on my Xserves for security reasons. Is there an easy way to do this?

    In order to keep up with security updates you'll have to install your own apache and php and stop using the ones that comes with Mac OS X (i think it is a good idea to do that anyway).
    Fortunately there are tools out there that will help you.
    I use macports, (http://macports.org) but if you decide to use it you will no longer be able to start, stop and control apache from the Server Admin interface. (there is actually a way to continue to do it but it will break at any system update you run).
    If you are comfortable controlling the server with the command line you'll like it very much and at the end feel it is a great improvement over the apache/php that ships with OS X.
    There is also Fink (http://www.finkproject.org/) but i have never used it so i can't say if it will work well or not and i'm sure it will also prevent you from using the Server Admin.
    Good luck.

  • Apache and PHP update causes an error

    Apple update downloaded updates for apache and php, since then I cant get to work my squirrel mail, because web wont start if it has the php plugin enabled, any help or suggestions ???

    Shxnnxn please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html for information on how to resolve Error 49.

  • Apache, MySQL, and PHP

    I am new PHP development and working on a test project. I've installed Apache, MySQL and PHP on my Windows XP box and now I'm a little confused. I created a database and some sample code to retrieve data. Now, on a server I'm using which supports this how do I upload this to the server for use?
    I hope this makes sense. Is there a built-in app for that or do I upload my created db to the server.
    UPDATE: I forgot to add that I am working locally and now would like to port this over to my domain and server. My host uses a linux box with apache.
    Thanks in advance,
    mdawg

    Hi,
    Download the mysql admin gui from here : http://dev.mysql.com/downloads/gui-tools/5.0.html
    If your host server allows connections from other hosts you can use the mysql gui to connect to the local database as well as the host database and export the tables to your new database on the host. This is the way I prefer to do it... but some hosts only allow SQL connections from the localhost itself which basically means you won't be able to connect to it using the mysql gui tools.
    However you can still generate the database scripts from the gui tools and login to your hosts mysql manager - possibly phpMyAdmin and then simply execute the SQL script.
    Hope this helps,
    Brendan

  • Apache and PHP upgrade

    I'm sure there was a Darwin section once-upon-a-time but I don't see it so am posting here for advice. I want to install Apache 2.2.0 and PHP 5.1.2 but as Apple doesn't yet include these upgrades I'd like to keep them seapate from existing installs. Would installing in usr/local be the reasonable place for installation and has anyone here done this install?

    I posted an answer to your question here:
    http://discussions.apple.com/message.jspa?messageID=2000747#2000747
    Not sure which of these threads is the real you! If you posted under two different pseudonyms and are able to access both accounts, please stick to using only one account. If however, you can't access the old account, I understand, just subscribe to the old thread that you posted in so people aren't posting the same answer to your question twice.

  • How to uninstall default Apache and PHP

    I use Lion 10.8.2。Now  i  want to uninstall default Apache and PHP。But i don't how to do it . Because i want to use nginx and update php to 5.4 or new.
    Than you very much.

    2. If I want to retrieve information from the database
    and display the information in the applet, what should
    I do then ?
    You would read the response given by the PHP side and parse it. How this is done depends on how PHP returns the data. It should preferrably be plain text or some other simple format, not HTML.
    Another problem is, when I tried to send a HTTP request, I get an exception :
    access denied ( java.net.SocketPermission "the host name") resolve
    What is that and how do I solve the problem ?What applets are allowed to do is severly restricted because they are loaded and started by a web browser when a user visits a web page without consulting the user. You wouldn't like some site delete all files on your hard drive while you're browsing the web. Opening network connections to servers other than where the applet was originally downloaded from is another thing that is not allowed.
    There are two ways to solve this: put the php script and the applet on the same server, or sign the applet. Signing an applet means assuring the user that the applet won't do anything bad and that it's ok to allow it to do something that would otherwise be forbidden, here's an example:
    http://java.sun.com/security/signExample12/signedPluginEx.html

  • I have downloaded MAMP for Mac and want to use it for working with Wordpress. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    I have downloaded MAMP for Mac and want to use it for working with Wordpress. I'm on an Imac with Maverick OS 10.9. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    It depends on how you installed it. You have to shutdown the MySQL service first. If you used the standard, but obsolete Startup Item, you can do that with the Startup Item. If you created a launchd script, you can do it with launchctl. Once MySQL is no longer running, you can delete the Startup Item or launchd script and the rest of MySQL.

Maybe you are looking for