The public php file in fuelphp cannot be displayed in the browser.

Asked 2 years ago, Updated 2 years ago, 143 views

httpd-v
Server version: Apache/2.4.33(Unix)
Server build: Apr 3 2018 18:00:56

Configure apache httpd.conf

ServerRoot "/Applications/MAMP/Library"
Listen 80
Listen 8080
ServerName localhost—80
DocumentRoot "/Users/■■■■/Desktop/fuel.7/public/hello"
Options Indexes FollowSymlinks
AllowOverride None
Directory "/Users/■■■■/Desktop/fuel.7"
AllowOverride All
AccessFileName.htaccess

There is a public in the fuelphp folder, and I want my browser to see hello.php in it

apache configtest
Syntax OK

URL
by typing http://localhost/hello

Not Found
requested URL / hello was not found on this server.

is the case.
What can be considered the cause?
Whenever I change the apache httpd.conf setting, I restart apache.
I will provide you with any other information you need.
Thank you for your cooperation.

apache fuelphp mamp

2022-09-29 22:08

1 Answers

If the document root is /Users/■■■■/Desktop/fuel.7/public/hello/, and the file you are interested in is /Users/■■■■/Desktop/fuel.7/public/hello/hello.php, the URL to access is
Isn't it localhost/hello.php?


2022-09-29 22:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.