I have installed php and python in my mac and made the changes required in httpd.conf file as well.
I have restarted the apache web server as well.
Here is my php webpage
Here is my python webpage
Please find my httpd.conf file here
If anyone can help me understand the issue , I'd appreciate it.
This is to be noted that plain html has no issue. PFB
Here is my python version information
Python 3.11.4 (v3.11.4:d2340ef257, Jun 6 2023, 19:15:51) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Here is my php version information
PHP 8.2.4 (cli) (built: Mar 16 2023 16:10:27) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.4, Copyright (c) Zend Technologies with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies
Here is my apache server version
Server version: Apache/2.4.56 (Unix) Server built: Apr 15 2023 04:26:33
Here is my macos
13.4.1 (22F82) Ventura
FYI:
- Php used to work in my machine couple of months ago , dunno what happened suddenly.
- I have installed Visual studio in my mac and I'm able to execute python programs from Visual studio.