简体   繁体   English

PHP 无法在 apache 上执行

[英]PHP can't execute on apache

I'm a Student, i have never contact with php before.我是一名学生,我以前从未接触过php。 But for reasons of work, i have to research an web app named Ultimate POS, i'm using Mac os 12, i tried so many ways to install php, and finally i'm scuccessed.但是由于工作原因,我不得不研究一个名为 Ultimate POS 的网络应用程序,我使用的是 Mac os 12,我尝试了很多方法来安装 php,最后我成功了。 But after Installed PHP(Via HomeBrew), i'm faced with a new problem again.但是在安装 PHP(通过 HomeBrew)之后,我又遇到了一个新问题。 it seems apache2 server can't idefinded php version.似乎 apache2 服务器无法识别 php 版本。 I'm tried so many ways include modifying httpd.conf.我尝试了很多方法,包括修改 httpd.conf。 but it's still not working, anybody help me pls?!!!但它仍然无法正常工作,有人帮帮我吗?!!! enter image description here在此处输入图像描述

enter image description here enter image description here在此处输入图像描述 在此处输入图像描述

Use XAMPP.使用 XAMPP。 It has built-in PHP, MYSQL.它有内置的PHP、MYSQL。 Download: https://downloadsapachefriends.global.ssl.fastly.net/8.1.6/xampp-osx-8.1.6-0-vm.dmg?from_af=true下载: https ://downloadsapachefriends.global.ssl.fastly.net/8.1.6/xampp-osx-8.1.6-0-vm.dmg?from_af=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM