I setup virtual host on my MacOS Sonoma, but when i go to it all i can see in the browser is my laravel, i tested to put a test.php under the public folder of my project folder with <?php phpinfo(); ?>
in it, and it shows correctly but when i remove the test.php in URL all i can see is laravel code
here is how i configured it to my httpd-vhosts.conf
`<VirtualHost *:80>
ServerAdmin localhost
DocumentRoot “/Users/jeremiahcorpuz/Projects/fk_lazaki_back/html”
ServerName seller.fk-local.fk
ErrorLog “/Users/jeremiahcorpuz/Projects/fk_lazaki_back/error_log”
CustomLog “/Users/jeremiahcorpuz/Projects/fk_lazaki_back/access_log” common
<Directory "/Users/jeremiahcorpuz/Projects/fk_lazaki_back/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<FilesMatch .php$>
SetHandler application/x-httpd-php
</FilesMatch>
`
also i added this in my httpd.conf
LoadModule php_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp.so "PHP Code Signing"
<FilesMatch .php$>
SetHandler application/x-httpd-php
</FilesMatch>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
here is what is the screenshot what i see in the browser
I tried to put a test file and works correctly when i go to that file, but when i remove the test file all i can see is laravel code