HHVM issue on ISPconfig MediaWiki installation - mediawiki

I am about to setup Mediawiki on my VM (Debian Jessie, ISPconfig 3.1) and I get an error 500 when accessing the website. Here is my apache2 error.log:
[fastcgi:error] [pid 8066] (2)No such file or directory: [client
51.15.70.216:56974] FastCGI: failed to connect to server
"/var/www/clients/client1/web10/cgi-bin/hhvm-fcgi-[IP-address]-
mydomain.com": connect() failed
[fastcgi:error] [pid 8066] [client 51.15.70.216:56974] FastCGI:
incomplete headers (0 bytes) received from server
"/var/www/clients/client1/web10/cgi-bin/hhvm-fcgi-[IP-address]-80-
mydomain.com"
all rights are set OK for the webfolders, can anybody tell me please what I can do to get my configuration working?
thanks!

Is the hhvm deamon runing? It doesnt look so.

I decided to install my Mediawiki without using HHVM for the first time. As long as the integration of HHVM in ISPC is not technically mature, it makes no sense to me.
Thanks for your help.

Related

Moodle: Installation failed - Coding Error Detected

I have tried to install Moodle 3.5.1 on my development server (Apache 2.4.29 and MySQL v.5.7).
The installation process went smoothly: The MySQL database has been set up, all required PHP packages are installed, the system has been successfully installed, all file permissions are correct.
After the installation I only get the following error:
"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error"
There are no further error messages. There are no error messages in Apache Error log or PHP log files. In the PHP ini file the display of error messages is activated.
So I can not figure out what did not work or how to fix it.
Put error_reporting(E_ALL); and ini_set('display_errors', 1); in the beggining of the script you see problem in for more debug info
Moodle 3.5 requires PHP 7
https://docs.moodle.org/35/en/PHP
Could that be your problem?

PHP Parse Error: /vendor/cakephp/cakephp/src/I18n/functions.php on line 26

I've encountered this error in my apache2 error.log while accessing a project running on WSL.
[Tue Feb 28 14:42:17.331656 2017] [:error] [pid 25334] [client 127.0.0.1:52043] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /mnt/c/development/public_html/xxxx/vendor/cakephp/cakephp/src/I18n/functions.php on line 26
I'm running:
Cake 3.4.2
PHP 7.0.16-3+deb.sury.org~trusty+1
On Windows Subsystem for Linux
I have other cake projects working fine on this setup but none that are v3.4*.
I have no idea how to solve this problem as it's in the Cake core. Any advice on how to proceed from here would be great.
Please ask if you need any more info.
There is no 3.4.3 branch (yet)
There is no 3.4.3 branch (yet), double check that you are looking at the correct info. Maybe it was published by accident and has been retracted, if you really have version 3.4.3, try reinstalling your applications dependencies.
Ensure that PHP used by Apache PHP is up to date
Also make sure that your server is actually using the PHP version that you think it does, the Apache PHP module and the PHP CLI binary are two different things, and the FPM/CGI binary usually also isn't used on the CLI, ie the CLI and the server often times use different versions.
The error message you are referencing suggests that PHP couldn't handle the ... variadic function operator, which would mean that Apache is using a PHP version prior 5.6

hg clone using tortoisehg throws “getaddrinfo failed” error on Windows XP

I have Windows XP installed in my system.I have installed tortoisehg-2.10-hg-2.8-x86.msi.
I have checkpoint vpn1-secuRemote installed on my system. I am trying to clone a project.But when i clone a project i get the following error
URLError: [Errno 11001] getaddrinfo failed
[command returned code 255 Tue Jul 01 22:40:02 2014]
The same worked when i connect from my office. The mercurial.ini is as follows
# Generated by TortoiseHg settings dialog
[ui]
username = avinash
verbose = True
Since it is windows xp i have placed my mercurial.ini in
C:\Documents and Settings\avinash\mercurial.ini.
I have gone through several links in stackoverflow. But was not able to figure out . Can anyone help please. Thanks in advance
"getaddrinfo failed" means you have problem not with TortoiseHG per se, but with resolver (DNS from client-side): no conversion hostname -> IP.
Fix it asking question on SU

Django + OS X + MySQL + first session variable retrieval = crash

Am experienced with Django, Apache, WSGI, MySql, etc. and have this environment setup and working fine on another OS X computer running Lion. Django session backend is db, session middleware and app are both enabled properly in settings. During first request of site view, we set a request.session key/value, which this first time thru works fine. On subsequent view though when we check if the key/value exists, we get a server-level 500 error that even with Debug mode on doesn't make it to the python interpreter to generate a full stack trace exception. The apache log generates the following messages...
[Mon Apr 16 14:26:22 2012] [notice] Apache/2.2.21 (Unix) DAV/2 mod_wsgi/3.3 Python/2.7.1 mod_ssl/2.2.21 OpenSSL/0.9.8r configured -- resuming normal operations
[Mon Apr 16 14:26:27 2012] [info] mod_wsgi (pid=2362): Create interpreter 'snap.joe|'.
[Mon Apr 16 14:26:27 2012] [info] [client 127.0.0.1] mod_wsgi (pid=2362, process='snap', application='snap.joe|'): Loading WSGI script '/var/www/venvs/snap_env/snap/wsgi/wsgi.py'.
[Mon Apr 16 14:26:32 2012] [error] [client 127.0.0.1] Premature end of script headers: wsgi.py
[Mon Apr 16 14:26:33 2012] [notice] child pid 2362 exit signal Bus error (10)
Have checked that a MySQL db table django_session row is added properly with session_data and also the cookie set in the browser after the first request contains the proper/matching session_id. If I add a simple request.session.flush() just before the existing session code, we can bypass the error obviously because there is never anything in the session. One more thing, the value we are adding to the session key/value store is a Django QuerySet object. Again, this is working on a live CentOS server, and also another Mac OS X Lion machine (albeit running Python 2.6 instead of 2.7).
Any ideas folks? Many thanks!
See documented reasons at:
http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes
and follow further links for possible workarounds.
In short, can be shared library version conflict, using mod_python at same time, or extension module for Python that doesn't work with sub interpreter.
If this is only Python site on that Apache, set:
WSGIApplicationGroup %{GLOBAL}
for one potential quick solution.
A few thoughts:
1) are you running the same versions of modules? Django just recently updated (1.4), so if you did a pip install and didn't specify a version your production might have an older version while your development has the newer one.
2) Can you test this using just the manage.py runserver? My suspicions are that it's something to do with the apache config (so if it works fine in runserver, that means the issue is with apache).

Apache Tomcat 6 and Cpanel Errors

Using cPanel easyApache I installed Apache Tomcat 5.5.x and attempted to upgrade it to Tomcat 6.x.x
Download and expand Tomcat 6 in /usr/local/jakarta
Changed group owner to Nobody/Tomcat with 0755
Changed tomcat symlink to /usr/local/jakarta/apache-tomcat-6.x.x
Extracted and built the native daemon jsvc
Uncommented and changed /usr/local/jakarta/tomcat/conf/tomcat-users.xml
<role rolename="manager-gui"/>
<user username="tomcat" password="secret" roles="manager-gui"/>
</tomcat-users>
Copied from 5.5.x to 6.x.x
/usr/local/jakarta/apache-tomcat-6.0.33/conf/workers.properties
/usr/local/jakarta/apache-tomcat-6.0.33/conf/httpd-jk.conf
Installed Servlet from cPanel to my domain:
Main -> Account Functions -> Install Servlets
Restarted Tomcat using
/scripts/restartsrv_tomcat
I can browse to the url ie www.tomcat.com:8080 and I see the correct version number.
So in my public_html folder I created a test.jsp. When I visit it I get error:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Looking in the logs for apache, I find no errors, there is an error in the mod_jk log:
[Tue Jan 25 18:51:40 2012] [21925:47707893800752] [info] jk_handler::mod_jk.c (2686): Could not find a worker for worker name=ajp13
So checking workers.properties I see it contains:
worker.list=wlb,jkstatus
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
Im stumped as to what else is missing that is causing the error I am seeing in the browser, any and all hints and help is greatly appreciated.
Try getting rid of your duplicate worker.list lines, and also you don't have a worker called ajp13w which you're calling as a balance_worker.
worker.list=wlb,jkstatus,ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13