Problems with PHP and Apache installation (not httpd folder)

Alles, was den Apache betrifft, kann hier besprochen werden.

Problems with PHP and Apache installation (not httpd folder)

Postby int0xicated » 05. February 2009 10:43


I m having some problems with apache2 and php installation: I follow those instructions to install php5, that was given to me (those instructions are very old in times of php 4):

- first enpack php-5.x.x.tar.gz
- cd php-5.x.x/

- vi doit_php (create a doit file):

rm config.cache
make clean
./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib --with-exec-dir=%{libdir}/php/bin --with-pgsql --with-openssl --with-tiff-dir=/usr --with-dom --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib=yes --enable-track-vars --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-pcntl --enable-dbase --with-config-file-path=/etc/apache2 --with-regex=system --enable-shared --with-gd=/usr/local --with-freetype-dir=/usr/include/freetype2 --enable-native-gd-ttf --with-mysql=/usr/bin --enable-exif --enable-ftpi --enable-soap

- chmod 775 doit_php

- ./doit_php


-make install (make and make install is working fine)

- cp /usr/bin/php/ /srv/www/cgi-bin/php

- cp/ /downloads/php-5.x.x/php.ini-dist /etc/httpd/php.ini (the problem is i dont have any httpd folder??)

- cd /etc/httpd

-vi php.ini -> chown wwwrun:www inst.php (dont have inst.php too)

-cd /usr/local/lib/
-mkdir php
-cd php/
-mkdir extensions
-vi /etc/httpd/httpd.conf

-rcapache restart (command isnt working on my system)

Now i have to configure PHP:

-cd /etc/httpd (still not here)
- vi php.ini

Now i have to cahnge the following lines:
-log_errors On
-extensions_dir = /usr/local/lib/php/extensions/

The folder in /usr/local/lib/php/extensions maybe has to be created:

cd /usr/local/lib
mkdir php
mkdir php/extensions

That's all, but the problem is that i dont have any httpd folder and my php.ini is different too. I would be very thankful, if someone could help me to solve this problem. As information: I've already installed apache2.


Posts: 1
Joined: 05. February 2009 10:27

Re: Problems with PHP and Apache installation (not httpd folder)

Postby Nobbie » 05. February 2009 15:59

You should install Xampp and not Apache, PHP etc. seperately. You ask in the Xampp Forum but dont use it? Very strange.

Uninstall your Apache installation and download the Xampp package and install it instead.
Posts: 8629
Joined: 09. March 2008 13:04

Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests