I have had localhost apache set up on Monterey on Mac mini w/M1 chip.
I was disappointed about not having php available. But I was able to set
up the doc root folder with the content I want to access with browser set
to localhost.
BUT, now it is not working. When I launch the browser (Firefox, Safari)
the index page that is served is the 'It Works' page. This is NOT being
served from /Libraray/WebServer/Documents. When I try to access
content that should be available it comes up not found. I have not done
anything with the configuration (httpd.conf).
Has anyone had similar issues and may have some fix suggestions?
The only difference I have made beyond the initial settup is to install
MAMP to have access to php. This was some weeks before the current
issue showed up.
I have tried looking at the console. But it appears significantly different
than the consoles I am used to. I do not see any access to apache logs.
As a side note: I have also been using Garage Band to generate some simple
chime tone mp3 files. When I tell Garage Band to download and install sound
libraries, it fails and the project file has become partially unresponsive: for
tracks I cannot change sound assignments and sounds are not produced with
playback. (this is on the same machine under the same OS)
I do not know if these two issues are related. But if they are I may suspect a
network related issue.
Post
Replies
Boosts
Views
Activity
Are there scoping issues with document.cookie in Safari?
I have written a javascript constructor function around
document.cookie. The constructor function is defined
in the global scope but is used inside of another object
instance. It works in Firefox and Chrome but does not
work in Safari.
If I do
window.onload = function()
{
var ck = 'test=this; max-age=600; domain=localhost; path=/dev_lab_current/lab_56; SameSite=Lax';
document.cookie = ck;
}
it works.
But it does not set the cookie in my html application.
The application has a host object constructor that creates
an instance of the cookie manager constructor within it.
So it is about 2 scope levels deep. But the exact same code
DOES work in Firefox and Chrome.
The html is designed to allow hard coded records to be kept
for cookies created by it. PHP is used to write the hard coded records in a javascript source code file. For this reason I would not post a demo on my publically available
web site.
Thank you for time and attention
JK