Heim >Backend-Entwicklung >PHP-Tutorial >Aktualisieren Sie PHP+Apache unter Mac
sudo port install apache2
sudo port install php55-apache2handler
cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php55.so
sudo port install phpmyadmin. 如果提示没有phpmyadmin,那就port search 一下。查找正确的报名
<IfModule php5_module> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> </IfModule>
Das Obige hat gezeigt, wie man PHP + Apache unter Mac aktualisiert, einschließlich der relevanten Aspekte. Ich hoffe, dass es für Freunde hilfreich ist, die sich für PHP-Tutorials interessieren.