I've been having problems with Phusion Passenger since upgrading to 10.13. I've read several articles about the root cause of this issue (most of which are over my head, quite frankly) but I was under the impression that Passenger 5.1.12 was supposed to solve this problem. Nevertheless, it has not for me and Apache crashes with the following log entry:
httpd[31444]: objc[31444]: +[__NSCFConstantString initialize] may have
been in progress in another thread when fork() was called. We cannot
safely call it or ignore it in the fork() child process. Crashing
instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Any pointers would be greatly appreciated!
If you want to stick with Apache, until Apple patches their build, apparently your options current are to:
Use a non-system apache (so it doesn't have apple's patches)
Set the OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES env var to the apache
launchd plist (requires disabling SIP)
Add PassengerHighPerformance on to your virtualhost if your app can
work that way
Use a case-sensitive filesystem (requires a fresh install of macOS)
None of those sounded particularly attractive to me, so I installed and migrated over to nginx (I've been meaning to anyway, for some time now).
Related
I've been here before and even wrote an article on how I was able to connect Coldfusion 2018 with Mac OS X Mojave, but since the upgrade to Mac OS X 10.15 Catalina, I haven't been able to get Coldfusion to work correctly on virtual hosts (ie. http://local.mylocalsite.com).
Goal: install Apache connector for Coldfusion so that I can run my dev site from within the /Sites folder like I would any other site.
Problem: Apache is working and I can access websites from the /Sites folder using the virtual host (ie. local.mydevsite.com), but although Coldfusion is running (I can access the Coldfusion Administrator), my computer does not seem to recognize that Coldfusion is supposed to run. I don't know if this is Apache or Coldfusion's responsibility.
What I've tried: I've tried using the GUI connector, as well as trying to confirm the settings via command line. I have XAMPP installed, which I believe that DesktopServer (an application by ServerPress) is relying on, but that's probably not relevant; but what I'm getting at is that I believe XAMPP relies on Mac's default installation of Apache.
I've also tried to go into every file that is referenced in any instruction document to determine if there is anything out of place. Part of my confusion is that there are many instances of some of these files and I'm not sure which one is active. Here are some of the files I've looked into:
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf
/Applications/XAMPP/xamppfiles/apache2/conf/mod_jk.so
/private/etc/apache2/httpd.conf
/private/etc/apache2/mod_jk.conf
/private/etc/apache2/extra/httpd-vhosts.conf
From what I can tell, the main settings for Apache are stored in the /private/etc/apache2 folder, but I want the XAMPP version of https-vhosts.conf because that's where DesktopServer is pulling their virtual hosts from. Regardless, I don't think it matters which vhosts file is being used because Coldfusion won't run on any of the local sites from my /Sites folder that are loading correctly when I visit local.anylocaldevsite.com.
Thoughts? This is either a really dumb question because no one else is asking it, or there aren't many Mac users who also use Coldfusion. Would love assistance if anyone has a clue. Thanks!
Update: This isn't an exact answer, but the recommendation to try CommandBox was a win. I installed CommandBox and then ran the "ColdBox" application in the root of my project and the site opened up in my browser like a gem. Wonderful. Thank you! I can call that the "answer" if no one objects, but I know that it's more of a workaround than an exact fix.
Due to my own idiocracy I have managed to run two versions of Apache on my Mac OS. Since a late update to Sierra my webserver has fallen into decay. I feel it is only a matter of time, until the whole environment breaks down and the OS is doomed for reincarnation.
For now I have managed to get my system side Apache running. However I have found that my "apachectl" command has been replaced with the brew version of apache. Since I am not strong with cmd line I want to ask how I can revert this? For now I am starting system side apache with "/usr/sbin/apachectl start".
If anyone could give me some advice how to keep the two versions from colliding, I would be more than grateful: keep brew apache from autoloading, check for which httpd processes are running and where they are rooted, put brew apache in a dumpster in the middle of the night etc.
I also have brew versions of php installed but I dare not to uninstall due to dependencies... any advide here would be appreciated as well.
IF ANY NEWCOMER READS THIS THREAD: Since I updated my Mac OS to the new Sierra my whole Apache configurations have gone mad. Unfortunately I have followed a very, very bad tutorial a few updates ago (https://www.getgrav.org/blog/macos-sierra-apache-multiple-php-versions) to configure my web development environment. I RECOMMEND EVERYONE TO AVOID THIS TUTORIAL! The blogger writes that his tutorial is only for advanced developers, however the tutorial itself is a total mess: there are no hints for any backup files and the configurations are all in bad style... I would advise anyone to double check on custom configurations in apache and always backup every file you change! For me it is too late and I feel only a hard reset of the system will suffice. Dark days on the horizon...
When you upgraded to the new OS, it does change your default apache config. The good thing is it does save a copy and renames it to httpd.conf~previous also creates a folder under etc/apache2/original for the previous default version. Just copy them back over and you're good to go.
Also you can throw homebrew in the dumpster using their own script
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Hope that helps.
I don't know if anyone else has had this issue? Python 3.5.2, 3.5.5 and now agian using 3.6.0a3.Sudden unexplained python failure to start. Ide Idle Shows Fatal when trying to start when hours earlier all was fine. Have had this happen now three times. Details Below.
pythonw.exe
3.6.150.1013
585cd097
ucrtbase.DLL
10.0.10586.9
5642c5f8
40000015
0008469a
9a0
01d29a9be7dc282e
C:-----my path to it
C:\Windows\system32\ucrtbase.DLL
261c485f-068f-11e7-a405-c80aa953b2de
I will re install again and may have to revert back to earlier versions at 3.3. Any help in Preventing this or knowing what causes it would be great Thanks.
Don't try to use the development version, get 3.6.0. If python does not start, no python application can run, so IDLE is not relevant.
I strongly suspect your ucrtbase.dll is either corrupt or out-of-date. On my Win10 system, I have version 10.0.14393.0. I don't know if it should be the same on Win 7. Do you have Windows Update turned on?
In any case, other people have had problems with ucrtbase.dll. See for example, this tracker issue. It refers to this ucrtbase.dll update download page.
We've installed cf10 on a Mac with Mavericks.
All seemed to go well. We didn't get any errors.
Apache is running fine. We've setup a virtual host, and it is serving html files fine.
Coldfusion Administrator is running fine at 127.0.0.1:8050
Yes, we did select Apache when installing CF (pointing config to /public/etc/apache2/).
But when we run a .cfm page from the virtual host on Apache, it just renders the contents of the .cfm page to the browser as text (e.g. just get's render as text).
We have read and worked through the myriad of blog posts on how to get CF10 working on Mavericks, but with no luck, and we are starting to wonder that this may not be the problem.. as neither cf10, nor apache are 'broken' as such. It just seems that apache is not passing .cfm file to cf for processing.
Can anyone suggest something we may be missing?
Many Thanks
This is because the connector is broken currently. I recently moved to mac so I encountered the same issue. This article provides a working solution. It looks like a lot but it doesn't take long if you take time to read through it.
http://www.cfdad.com/2013/10/27/how-to-compile-adobe-coldfusion-10-apache-connector-for-osx-mavericks-10-9/
EDIT: Sorry I should provide the source for the bug: https://bugbase.adobe.com/index.cfm?event=bug&id=3653076
It might be a simple as running the web server connection utility. That's all I had to do with OSX 10.8. Brian blogged that this was all he had to do.
http://brianflove.com/2013/10/23/os-x-mavericks-and-apache/
You just have to tell it where the /conf/ folder is now located. We both used /private/etc/apache2/, not /public/.
I fool-hardily removed my system installation of gem. I was trying to get rbenv to work and was having some problems so I thought I could easily re-install all my Ruby stuff and start from scratch. This however is clearly not the case.
Any ideas short of breaking out the system disk would be appreciated.