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.

Similar Messages

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

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

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

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

  • 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

  • OCI8 to existing Apache and PHP install

    Hi
    Wonder if anyone can help. I have an Apache server already installed with PHP on my linux system (Ubuntu) and I'd like to add the OCI8 driver so I can hook up my PHP pages to speak with the Oracle database. I've managed to do my applicaiton with postgres and mysql, just Oracle to do.
    Can anyone provide me with the steps I need to make to get the OCI8 driver installed? I don't really want to install my server again, is thera way I can chnage the PHP.ini and httpd.conf files and install the OCI8 driver without rebuilding?
    thanks

    If you have the pear/pecl utilities, you might find a 'pecl install oci8' works. If you hit problems, try downloading oci8 1.3.4 from http://pecl.php.net/package/oci8/, extract it and cd to the directory, run "phpize", "./configure --with-oci8=instantclient,/path/to/instclient/libs" and "make". Move the oci8.so to your extension directory (see your php.ini) and enable oci8 with extension=oci8.so in your php.ini.
    This is it in brief. Ping back if this + other standard install doc doesn't get you going.
    -- cj

  • 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

  • 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

  • Multiple versions of Apache and PHP

    I'm setting up a new Xserve with Apache2 and PHP5. I understand that Xserves ship with Apache2 and Apache 1.1 already installed and when I do
    httpd -v
    it reports back the older version of Apache. When I do
    php -v
    it reports back version 4.4.1.
    At the time I investigated this, I didn't know Apple had pre-installed Apache2 so I installed it via Fink and FinkCommander. When I installed it originallyl from the entropy.ch files, asking httpd for its version reported the older version even though the System Preference pane said that Apache2 was up and running. What is going on that both are running simultaneously?
    After installing Apache2 via Fink, httpd now properly reports its version as 2.0.55... which is what I would expect after properly updating Apache from 1 to 2.
    I'm experiencing something similar with my PHP5 installation via Fink. Asking terminal for php -v reports version 4.4.1, however when I query PHP through a web script running phpinfo() it reports back in the web browser as being version 5.0.4.
    So, what triggers the command line to report back different versions of installed web services than other methods? Why does my webpage through phpinfo() report back 5.0.4 where terminal says php -v is 4.4.1? Does it even matter? Does this mean two copies of PHP are running? What turned on the old version? I thought PHP had to be triggered by a PHP request. Why does Apache2, when insttalled through one method still report the older version when queried through terminal, but installed a idffererent way report the new version? Why did that not seem to afffect the ability for Apache2 to run properly? What does the version, as reported through terminal, of a given web service even mean if multiple versions of web services can run simultaneously and multiple reports of those versions can return different results? For that matter, how can I then truly verify that the version running is the version I installed? It wasn't until terminal reported my version of httpd as being 2.0.55 until I felt like the Apache2 installation was truly successful. Was I overthinnking the problem? Is there even a problem? Aaaagghghgh!!!!!!
    17 Powerbook - 1.5Ghz   Mac OS X (10.4.4)   2GB RAM, Adobe CS2, Xcode 2.2

    Ahhh!!!! OK, that makes a ton of sense. I checked the PATH environment variable and see what you're talking about.
    This kind of leads to a follow up question . If I do a
    php -v
    and I get back some information about some version of php installed at some path referenced in the environment variable, how can I tell what path OS X found the php command in? Is there any way to say, "Hey, computer, tell me where you think php is located." Because there are seven or eight paths I could search in, but it seems like a trivial matter for the computer to just tell me where it's looking, rather than me hunting for the command file.
    It also seems that fink has installed /sw paths into my environment variable for me and that my apache httpd command is located in one of these but my new installation of php5 is not. That's really what was tripping me up was that I hadn't modified the environment variable for $PATH myself and some things were reporting properlly and others were not. Fink did most of the work I expected, but not all, leading to a confusing version report.
    17 Powerbook - 1.5Ghz Mac OS X (10.4.4) 2GB RAM, Adobe CS2, Xcode 2.2
    17 Powerbook - 1.5Ghz Mac OS X (10.4.4) 2GB RAM, Adobe CS2, Xcode 2.2

  • 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

  • How to store the selected gruop of values in the FORMS

    I have one multi record Data Block in Forms. Every record contains one CHECKBOX. Each Record contains one Primary Key. Now, My Requirement is, while selecting the CHECKBOX i should add that record's primay key value to some ( collection / string) I w

  • Re: Generating Security files for BIAPPS ODI in linux

    Hi,       DId you have to make any additional setting after have installed ODI ? I mean, I've installed OBIEE, ODI (just with Java EE components and Bi Apps).       When I've ran configApps.sh I have got the following error at Configuring ODI step :

  • The new upgrade took all my ringtones also how do you fix it?

    the new upgrade took all my ringtones how do you get them back???

  • Creating templated elearning modules in Flash

    I need to create a set of standardised (look & feel) set of elearning modules. Each module should take as an input, one or more MPG videos, a text document (XML / Word ML / RTF or similar) and a series of questions and answers to make up a quiz. I wa

  • JRE Package could not be opened.

    I am trying to update my java because pogo wont work without me doing so. when i try to install jre version 5 a message pops up saying 'this installation package could not be opened. verify that the package exists and that you can access it, or conta