403 Forbidden in Big Sur using MAMP - mamp

After OS upgrade to BIG SUR I can't access my sites locally. I even set folder permissions at 777, staff, admin and user have permission to read and write, I've already checked the .htaccess file. I've tried everything and nothing works. Any idea?

Same for me
Check if you have the presence of an .htaccess in the parent folder (My case).

Related

TYPO3 V11 installation or configuration

I have have recovered a project in TYPO3 v11.3.0
My database is imported without error.
I access the installation tool :)
I have access to the typo3 login / password, but if I validate the form, I get the message "Not Found, The requested URL was not found on this server."
On the internet, I found the issue https://forge.typo3.org/issues/94054
I tried the following fix: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/11.0/Breaking-93048-BackendURLRewrites.html
but suddenly I no longer have access to either the instal tool or the login form, I simply have a TYPO3 error:
Page not found The page did not exist or was inaccessible. Reason: The
requested page does not exist
Any ideas?
There is an example .htaccess file in the core that you can copy:
# cd into your web root
cd yourWebRoot/
# make a backup of your current .htaccess
mv .htaccess _.htaccess_old
# get a example .htaccess
cp typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess .htaccess
TYPO3 11 should work with that, now you can copy changes that you made in your old .htaccess into the new one.

can't connect local site to Iphone with XAMPP

Ive build my site on wordpress and using xampp
i want to test my new dev site on my remotely on my iphone and ipad via wifi
They're both connected to wifi
When i search iphone http://000.000.0.00 or http://000.000.0.00:80, :8080
it comes up with a link to a folder , which is my true path
when i click on this next sub folder , i loop back round to 127.0.0.1
As i guess iphone doesn't know where to find my site contents
I've tried renaming my wordpress site the with the http://ipaddress, :80, :80;80
ad it comes up with an error
ive found in my XAMPP index.php file
The footer seems to send me to 127.0.0.1/dashboard/
i can view this from my iphone
i've tried changing that footer on index.php to my site path
As well as deleting the file all together
Deleting the file allowed me to access more folders but not into the subfolder where my site remains
I've read through questions and tutorials but can't seem to find a solution
i was wondering if i've missed something or if i need to configure files in such a way , maybe to this index.php for XAMPP itself to get it to point at my site as a default
Thank you in advance
Check if your files are in htdocs or you have given correct path to your working directory in your httpd.conf file.
If the directory is correct and you have run your php pages already, I suggest you use ngrok for remote connection to your localhost.
https://ngrok.com/download
it is simple to use.
to run it go to the directory of ngrok in cmd and type ngrok http 80 while your XAMPP servers are running. It will provide a link that could be accessed through internet by any device.

Moved site to new drive, DB won't work with old drive removed

I have a site in MAMP-PRO for windows (installed on C drive) that I need to move due to a failing drive (F drive). I have moved the site folder to the new drive (N drive) and changed the path for the host in MAMP settings and restarted the servers - everything works fine. When I remove the failing drive, I can not get the site to connect to it's database (regular sites, HTML/PHP only, work fine), but anything database related (like wordpress) just tried to load indefinitely. When I put the failing drive back in - everything works again. I have validated that even with the failing drive in, changes on the new drive are what is reflected in the browser, so I know that the host file and document root changes are working, it's the database connection that seems to be the issue. I have no idea why this would be. Any suggestions?
Solved. Caching plugin in Wordpress was the culprit.

Permission denied when overwriting files with Codekit

Using MAMP Pro, I've set up a virtual host for a site where I run Codekit (http://incident57.com/codekit) to autocompile LESS files to its directory. I've set the owner of the host to www, this interferes with Codekit's preferences in some way though and it isn't able to overwrite any file when compiling (the app displays an "EACESS, permission denied" error). Tried several approaches with setting file permissions for different folders but without success. Ideas?
You should be adding to CodeKit the actual folder where your project files exist on disk, not the virtual host that Mamp sets up.

how save file on server using HostingEnvironment.MapPath()

in this code iam trying to save text document on server / wwwroot folder. nothing happens :(!
if i am working on localhost and doing the same routine like this, everything works fine and i can save text document on local pc.:
If the same code works in your Dev machine and not working in Production, It should be folder Permission issue. I guess you have to change the folder permissions in server so that ASP.NET can write to that directory.
Checkout this link which explains how to do that.
Make sure you are not giving Write/Modify Permission to "Everyone"