Neos 2.1 on Mac MAMP PRO using fcgi - pdo

I tried to run TYPO3 Neos 2.1 under MAMP Pro 3.5 (PHP 5.6.10 cgi).
It doesn't work. I get a Doctrine DBAL Exception (Connection Refused).
If i run php as a module rather than cgi, it works.
But i want different php versions per host, so cgi is preferable by me.
Phpinfo says pdo_mysql is active.
Any ideas what is wrong with the cgi?

I had the same problem with MAMP. Sometimes the DB connection worked and abruptly the connection was lost and the db destroyed. I would try to use vagrant or even better docker. Just search for docker and neos on github: https://github.com/search?utf8=%E2%9C%93&q=docker+neos.
But if you really want to use MAMP, use PHP 7. For me it solved the problem. Hope this helps...
EDIT:
My Workbuddy wrote a nice shell command tool for Neos: http://sbruggmann.github.io/dino.sh/

Related

macOS Sierra 10.12.2 Apache not working

I've upgraded to the current version of macOS. I want to work with Apache. Well, my problem is, that when I try to access localhost with or without ~Username, I get an error message saying ERR_CONNECTION_REFUSED on Chrome or "Can't open Page" on Safari. Apache is running and apachectl configtest says "Syntax OK".
I placed the current version of phpMyAdmin into /Library/WebServer/Documents and tried to access it, same problem.
I followed the steps in this guide without a solution for me
Apache localhost/~username/ not working
So does anyone know what problem I'm facing? I'm clueless right now.
I had the same outcomes as above, using virtual hosts though, and after updating to macos 10.12.2 was receiving ERR_CONNECTION_REFUSED.
My original setup is based on the excellent posts here: https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc
And as such, because I'm using Homebrew, all I needed to do was also run brew upgrade on CLI followed by sudo apachectl restart and I'm back up and running.

MAMP 2.0.3 - Apache not restarting at all

I have been trying to install IonCube for the past 2 days on my localhost, and it just won't show up. Today I tried changing the PHP versions to force some sort of hard refresh, and MAMP is not changing versions.
By the looks of this, in my opinion, Apache is not restarting at all, how can I force it to stop with a Terminal command or something?
Thanks in advance.
The short and sweet is to restart your machine entirely, fine for if you're just a local developer.

Sqlite and SQLiteManager 1.2.4 read only error?

I have a Linux box running Damn Small Linux with LAMPP on it. Lampp works fine except Mysql wont work as DSL is that stripped down, it doesnt work. So you have to use Sqlite. Im not very good at SQL commands so I want an SQL manager to do the work for me. I have downloaded SQLiteManager and it looks perfect for the job. But whenever I navigate to SQLiteManager it gives me this error:
The configuration database is read-only.
Some features of SQLiteManager can't work correctly.
How can I get it to work?
My server is running SQLite3 and I can use it via command line just fine.
Thanks!
PS:
Sorry if this is the wrong "stack" to post it on.
chown -R www-data yousqlitemanagerdir

Troubles with Xdebug 2.1.0, XAMPP 1.7.3, Win7 32bit

Looking for some help with getting xdebug to behave with my setup. My goal is to be able to debug Joomla code.
First let me preface saying that about a year ago I was able to get a version xdebug to work with Eclipse PDT 2.1 with xampp under Vista 32bit. However, now I'm on a new machine, and I wanted to get everything working with the latest versions. I did so by following through this walk-through. Now, trying to do the same thing I can't get it to work.
First, as per the walk-through, I downloaded php_xdebug-2.0.0-5.2.2.dll. Quickly realized that I needed an xdebug for php 5.3. So, I found the xdebugs Tailored Installation Instructions and followed that. My php.ini section looks as thus:
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension = "D:\xampp\php\ext\php_xdebug-2.1.0-5.3-vc6.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=10000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\xampp\tmp"
So this got the xdebug to actually show up in the phpinfo(). But, in Eclipse when I Debug As Php Webpage, it at first appears to connect, however if I step to the next line of code the debugger just sits there saying it is stepping, indefinitely. Sometimes apache will crash. I tried ports 9000, and 10000 with no avail.
What I did find out is, if I use the the php_xdebug.dll that comes with XAMPP 1.7.3, I actually can connect and step without any issues, EXCEPT, that version of xdebug apparently has a major bug in it that causes all my variables to be listed as 'Uninitialized'. So it is basically useless, however, it does give some hope that I have some of this stuff set up correctly.
So, my current setup thus: Win7 32bit, XAMPP 1.7.3 (PHP 5.3.1, Apache 2.2.14), Eclipse PDT 2.2
I have very limited experience with basically all the tools here so I'm kinda at a loss of what to do. Any help would be greatly appreciated. I searched some of the other posts here with similar issue but most of them appear to be for older versions of these components.
your report is somewhat confusing. As far as I understand you, your setup works as soon as you replace the XDebug-dll. Then your (primary) problem cannot be related to your settings, as far as you also adjusted zend_extension, of course.
Though xdebug.remote_port=10000 seems odd. Std is 9000. If you use 9000, the you have to tell Eclipse in Window/Preferences/PHP/Debug/Debuggers to also listen to that port for XDebug.
Best
Raffael

Does Mono XSP Server Work?

I'm trying for a week to make my XSP server work with simple static content: html-pages, js-files, gifs, jpegs etc... No ASP.NET. And this server always randomly crashes while navigating this pages with browser.
My Environment is: Mono 2.6.1, Windows Vista. I also tried to build XSP on linux (with Novell's make-files) but same result.
So, could XSP be used anyhow? Is there anybody who made XSP work fine without crashes? If yes, please tell me how. If no, is there another open-source ASP.NET http-server?
Try xsp2 not xsp, as it is newer. Also Tomi is right and you should be using mod-mono for production, however, that is not going to work on Windows right now (at least the last thing I read was that mod_mono was not yet working with Apache on Windows). XSP2 definately works on Linux, and although I haven't tried it on Windows, but if there are problems with it you should probably file a bug report with the Mono team. Xsp definately does not work with some of the code I have written, so I think it is only used for Net 1.1 era asp, not asp2.0.
You can use for example Apache with mod_mono or Nginx on Linux. I wouldn't recommend using XSP for production use since it's used mostly as development web server in conjuction with MonoDevelop.