Instalare APACHE2.2.4 + PHP5.2.1 ON CENTOS 4.4
Cativa utilizatori au intampinat erori de genul segmentation fault dupa compilarea manuala a php cu apache 2.2.4 pe Centos 4.4. Voi explica aici un model de compilare care a functionat perfect pentru doua masini de test. In primul rand daca intentionati sa compilati php cu optiunea with-mysql instalati mai inati myssql 5.x. Pasii urmatori:
wget http://apache.hostin...d-2.2.4.tar.bz2
wget http://www.php.net/get/php-5.2.1.tar.gz/fr....php.net/mirror
tar xjvf httpd-2.2.4.tar.bz2 ; .tar xzvf php-5.2.1.tar.gz
cd httpd-2.2.4; ./configure --prefix=/usr/local/apache2 --enable-so --enable-cgi --enable-info --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic --enable-unique_id --enable-usertrack ; make ; make install
cd .. ; cd php-5.2.1 ; ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-db --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-png --with-regex=system --with-expat-dir=/usr --with-layout=GNU --enable-bcmath --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --without-oci8 --with-pear=/usr/share/pear --with-kerberos=/usr/kerberos --with-ldap=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-mysql ; make; make install
/usr/local/apache2/bin/httpd -k restart ; lynx localhost
It works!
Contact
Facebook
Twitter
RSS













