#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    32
    Rep Power
    15
    I'm installing PHP after Apache (because the server that I got already had Apache installed but they neglected to install php) so I've been reading and figured out that you need to install PHP as a DSO module, correct? Well - no site seems to be informative enough to tell me how - so here I am I've been trying - here are my 2 builds for both Apache and PHP

    PHP:

    ./configure --with-gd=/install/gd/ --with-mysql=/usr/local/mysql/ --with-system-regex --with-apache=/usr/local/apache --with-config-file-path=/usr/local/lib/ --enable-track-vars

    Apache:

    ./configure --prefix=/usr/local/apache/ --sysconfdir=/usr/local/apache/compile --activate-module=src/modules/php4/libphp4.a --enable-module=status

    I'm not sure if I'm doing something majorly wrong or what. httpd.conf is edited correctly and php.ini is installed correctly (I am 99% positive).

    I guess what I'm looking for is if the above is approximately correct in trying to install php as a DSO module or if not, how do I install it?

    Thanks a lot in advance
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    You wanted to install PHP using DSO method but you were neither using DSO method nor static method.

    Your PHP: --with-apache=/usr/local/apache

    You need to point it to apache source, not apache PREFIX install directory.

    If you don't have permission to recompile apache on your server, then your only option is to install using DSO method so long as apxs is available.

    Maybe you should start here -> http://www.devshed.com/Talk/Forums/F...ML/000020.html and at step 10, it should be cp php.ini-dist /usr/local/etc/php.ini instead
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    32
    Rep Power
    15
    Well - the problem with that is that Apache was not installed with apxs. So I'm at a loss there. I do have permissions to recompile Apache under the server. I've been in contact with the people that setup Apache and they said that it was set up for DSO module installation, but there is no apxs directory (which is where I'm having the major conflicts with every install guide I come upon). So, I guess my question now is how do I compile apache with apxs support?
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>So, I guess my question now is how do I compile apache with apxs support?

    Once again, this link -> http://www.devshed.com/Talk/Forums/F...ML/000020.html at Step 6.

IMN logo majestic logo threadwatch logo seochat tools logo