- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am new to Magento and trying to have a local setup using MAMP, the issue here is php in apache server doesn’t load as expected, it just shows the contents in pub folder.
Php version - 7.4.21
Magento 2.4.3-p1
Tried all the possible solutions online but didn’t work, kindly suggest what can be done.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @dipmegpro
I have downloaded a new PHP v7.4.27 from macports then pointed that to my apache server. It is working now. Seems there is issue with the libphp7 (PHP v7.4.21) that comes default with MAMP. Thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP issue
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP issue
I am using MAMP's Apache server, but for some reason the PHP code is not executing. Instead I can see the folder contents and php code inside pub folder. I have enabled libphp7.so in httpd.conf, added index.php to directoryRoot as well.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @dipmegpro
I have downloaded a new PHP v7.4.27 from macports then pointed that to my apache server. It is working now. Seems there is issue with the libphp7 (PHP v7.4.21) that comes default with MAMP. Thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: PHP issue
Thank you, after reinstalling, it works fine.