php - How do I install PHP7 + MariaDB + nginx + Apache on Debian 7 Wheezy? -
i plan on keeping question updated set new vps up. have seen apache httpd setup , installation , https://httpd.apache.org/docs/2.2/dso.html, seems between pcre-config, mariadb, , lack of mysql_config, isn't working right. how install it?!
install mariadb
sudo apt-get update sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.0/debian wheezy main' sudo apt-get update; sudo apt-get install mariadb-server
uninstall php5 , apache2, building source.
sudo apt-get remove php5 sudo apt-get remove php5-common sudo apt-get remove apache2-common sudo apt-get remove apache2 sudo apt-get remove apache2.2-bin
download , prepare apache2 building
mkdir apache cd apache wget -nd http://ftp.wayne.edu/apache//httpd/httpd-2.4.16.tar.gz tar xzf httpd-2.4.16.tar.gz wget -nd #brokenlink /apache//apr/apr-1.5.2.tar.gz wget -nd #brokenlink /apache//apr/apr-util-1.5.4.tar.gz tar xzf apr-util-1.5.4.tar.gz tar xzf apr-1.5.2.tar.gz cd httpd-2.4.16/srclib/ mv ../../apr-util-1.5.4 apr-util mv ../../apr/apr-1.5.2/ apr cd ../../
should have worked need pcre. wget -nd ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.20.zip unzip pcre2-10.20.zip cd pcre2-10.20 ./configure --prefix=/usr/local/pcre make sudo make install
lets configure , build , install apache2 cd httpd-2.4.16
./configure --with-included-apr --enable-so make sudo make install
now time php7!
./configure \ --prefix=$home/tmp/usr \ --with-config-file-path=$home/tmp/usr/etc \ --enable-mbstring \ --enable-zip \ --enable-bcmath \ --enable-pcntl \ --enable-ftp \ --enable-exif \ --enable-calendar \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --with-curl \ --with-mcrypt \ --with-iconv \ --with-gmp \ --with-pspell \ --with-gd \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib-dir=/usr \ --with-xpm-dir=/usr \ --with-freetype-dir=/usr \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-openssl \ --with-pdo-mysql \ --with-gettext=/usr \ --with-zlib=/usr \ --with-bz2=/usr \ --with-recode=/usr \
i got:
+--------------------------------------------------------------------+ | license: | | software subject php license, available in | | distribution in file license. continuing installation | | process, bound terms of license agreement. | | if not agree terms of license, must abort | | installation process @ point. | +--------------------------------------------------------------------+ thank using php.
woohoo!
make
i see:
build complete. don't forget run 'make test'.
okay lets test it!
make test
now lets it. (cross fingers)
sudo make install
Comments
Post a Comment