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
-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.
regards,
i