on
[RC 3기 - Server] 1주차 과제 5/5 for mac m1
[RC 3기 - Server] 1주차 과제 5/5 for mac m1
3) PHP 8.1.0 설치
apt-get install libxml2-dev
apt-get install libjpeg-dev
apt-get install libpng-dev
apt-get install libsqlite3-dev
wget https://www.php.net/distributions/php-8.1.0.tar.gz
tar xvfz php-8.1.0.tar.gz
cd php-8.1.0
./configure --with-apxs2=/usr/local/apache2.4/bin/apxs --enable-mysqlnd --with-mysql-sock=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-imap-ssl --with-iconv --enable-gd --with-jpeg --with-libxml --with-openssl
make && make install
cd ..
vi apache2.4/conf/httpd.conf
:wq!
cd php-8.1.0
cp php.ini-production /usr/local/lib/php.ini
cd ../apache2.4/htdocs
vi phpinfo.php
phpinfo();
?>
:wq!
cd ../..
apache2.4/bin/httpd -k start
ps -ef | grep httpd | grep -v grep
netstat -anp | grep httpd
curl http://127.0.1.1
http://127.0.1.1/phpinfo.php → 성공!!
400
from http://pluviayoungforever.tistory.com/71 by ccl(A) rewrite - 2021-11-27 02:01:11