xamps vs xibo - Appache stop working - server

I am using xibo open source on localhost server, recently I got error "Appache stop working"
I checked the error logs:
[Wed Sep 21 08:34:20.257000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00428: Parent: child process 3964 exited with status 255 -- Restarting.
[Wed Sep 21 08:34:20.915000 2016] [ssl:warn] [pid 5204:tid 232] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:20.987000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Wed Sep 21 08:34:20.987000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Wed Sep 21 08:34:20.987000 2016] [core:notice] [pid 5204:tid 232] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Sep 21 08:34:20.989000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00418: Parent: Created child process 2700
[Wed Sep 21 08:34:24.188000 2016] [ssl:warn] [pid 684:tid 232] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:24.293000 2016] [core:warn] [pid 684:tid 232] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Sep 21 08:34:24.530000 2016] [ssl:warn] [pid 684:tid 232] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:24.605000 2016] [mpm_winnt:notice] [pid 684:tid 232] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Wed Sep 21 08:34:24.605000 2016] [mpm_winnt:notice] [pid 684:tid 232] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Wed Sep 21 08:34:24.605000 2016] [core:notice] [pid 684:tid 232] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Sep 21 08:34:24.608000 2016] [mpm_winnt:notice] [pid 684:tid 232] AH00418: Parent: Created child process 5364
[Wed Sep 21 08:34:25.607000 2016] [ssl:warn] [pid 5364:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:25.944000 2016] [ssl:warn] [pid 5364:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:26.015000 2016] [mpm_winnt:notice] [pid 5364:tid 248] AH00354: Child: Starting 150 worker threads.
httpd.conf
http://pastebin.com/1QbmV4xV
httpd-ssl.conf
http://pastebin.com/X5vStUZu
Can you please help me how to fix this issue?

Related

Can't start MAMP servers

i am unable to start servers, the 'start servers'-icon flashes green for a second and nothing happens. This is what i get in the apache_error log:
[Mon Dec 26 03:36:16 2016] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Dec 26 03:36:17 2016] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 26 03:36:17 2016] [notice] Digest: done
[Mon Dec 26 03:36:18 2016] [notice] Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2e mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.0.9 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations
[Mon Dec 26 03:36:18 2016] [notice] Server built: May 6 2016 10:19:53
[Mon Dec 26 03:36:18 2016] [crit] (22)Invalid argument: Parent: Failed to create the child process.
[Mon Dec 26 03:36:18 2016] [crit] (OS 6)Invalid reference. : master_main: create child process failed. Exiting.
I had the same problem on Windows 10 and disabling Perl worked for me:
C:\MAMP\conf\apache\httpd.conf
...
LoadModule perl_module modules/mod_perl.so
...
I hope this helps.

XAMPP Apache won't start after i added phpPgAdmin alias

I want to install phpPgAdmin with XAMPP on Windows. After i did all the steps, my Apache module on XAMPP won't start. I got this error log
[Mon Nov 14 16:36:16.661538 2016] [ssl:warn] [pid 10612:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:16.824335 2016] [core:warn] [pid 10612:tid 504] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Nov 14 16:36:16.924133 2016] [ssl:warn] [pid 10612:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 configured -- resuming normal operations
[Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00456: Apache Lounge VC14 Server built: Jul 1 2016 11:09:37
[Mon Nov 14 16:36:17.724645 2016] [core:notice] [pid 10612:tid 504] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Nov 14 16:36:17.724645 2016] [mpm_winnt:notice] [pid 10612:tid 504] AH00418: Parent: Created child process 7288
[Mon Nov 14 16:36:18.611254 2016] [ssl:warn] [pid 7288:tid 584] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:18.796715 2016] [ssl:warn] [pid 7288:tid 584] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 14 16:36:18.850157 2016] [mpm_winnt:notice] [pid 7288:tid 584] AH00354: Child: Starting 150 worker threads.
[Mon Nov 14 16:36:22.814454 2016] [mpm_winnt:crit] [pid 7288:tid 584] AH02538: Child: Parent process exited abruptly. Child process is ending
I tried to remove the phpPgAdmin alias from httpd-xamp.conf, and it worked again, but my phpPgAdmin won't work (obviously).
I've uncommented the php_pgsql.dll and php_pdo_pgsql.dll extension at php.ini
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
This is my configuration on config.inc.php from phpPgAdmin folder
$conf['servers'][0]['host'] = 'localhost';
$conf['servers'][0]['pg_dump_path'] = 'C:\xampp\pgsql\9.3\bin\pg_dump.exe';
$conf['servers'][0]['pg_dumpall_path'] = 'C:\xampp\pgsql\9.3\bin\pg_dumpall.exe';
$conf['extra_login_security'] = false;
This is my alias configuration on httpd-xampp.conf
Alias /phppgadmin “C:/xampp/phpPgAdmin/”
<Directory “C:/xampp/phpPgAdmin”>
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
I'm new with XAMPP and PHP, so i don't know what's the problem. Anyone can help?
I don't know whether my answer is not too late, but you just need to change curly braces “” in your paths to regular ones "", like this
"C:/xampp/phppgadmin/"

Postgresql and flask connection

I'm using flask on python3.
Migrate script is working no error from it. Main app is running fine too.
I'm using postgresql when I run migrate everything run fine but then somehow when I go in postgres shell I cannot see any table being created.
modesl.py
from imports import db
from datetime import datetime
from sqlalchemy import ForeignKey
from sqlalchemy.orm import relationship
class UserInfo(db.Model):
__tablename_ = 'user_info'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True)
email = db.Column(db.String(80), unique=True)
password = db.Column(db.String(100), nullable=False)
posts = relationship('UserPosts', backref='posts')
def __init__(self, username, email, password):
self.username = username
self.email = email
self.password = password
def __repr__(self):
return '{}-{}'.format(self.username, self.email)
As you can see I have two tables there but I just see user_info in my database because I manually created it but the other table I cannot see.
export DATABASE_URL="postgresql:user:password#localhost/registration"
tail /var/log/apache2/error.log
[Fri Oct 07 17:21:56.049888 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] File "/usr/local/lib/python3.5/dist-packages/sqlalchemy/util/compat.py", line 185, in reraise, referer: http://localhost/login/
[Fri Oct 07 17:21:56.049900 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] raise value.with_traceback(tb), referer: http://localhost/login/
[Fri Oct 07 17:21:56.049919 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] File "/usr/local/lib/python3.5/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context, referer: http://localhost/login/
[Fri Oct 07 17:21:56.049931 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] context), referer: http://localhost/login/
[Fri Oct 07 17:21:56.049951 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] File "/usr/local/lib/python3.5/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute, referer: http://localhost/login/
[Fri Oct 07 17:21:56.049962 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] cursor.execute(statement, parameters), referer: http://localhost/login/
[Fri Oct 07 17:21:56.050034 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) column user_info.password does not exist, referer: http://localhost/login/
[Fri Oct 07 17:21:56.050088 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] LINE 1: ...nfo_username, user_info.email AS user_info_email, user_info...., referer: http://localhost/login/
[Fri Oct 07 17:21:56.050106 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] ^, referer: http://localhost/login/
[Fri Oct 07 17:21:56.050122 2016] [wsgi:error] [pid 19131:tid 140331236435712] [client 174.58.31.189:34358] [SQL: 'SELECT user_info.id AS user_info_id, user_info.username AS user_info_username, user_info.email AS user_info_email, user_info.password AS user_info_password \\nFROM user_info'], referer: http://localhost/login/
I don't know if I'm setting my connection to the database the right way or if nothing is being created at all .
Thanks.
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
import os
import __init__
__init__.app.config.from_object(os.environ['APP_SETTINGS'])
migrate = Migrate(__init__.app, __init__.db)
manager = Manager(__init__.app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
You stated that there are two tables supposed to be present, but I only see one being defined in your models.py file for UserInfo. Do you have UserPosts defined elsewhere in the file as well, or have you only created the relationship to it? If not, you should create a model for it as well.
Another thing to point out is that instead of importing ForeignKey and relationship from sqlalchemy, you should be using db.relationship() and db.ForeignKey()
I can also see that your URL is missing a couple characters. Instead of "postgresql:user:password#localhost/registration" your URL should look like "postgresql://user:password#localhost/registration"
Finally, are you migrating and upgrading with your manage.py file or only migrating? After running python manage.py db migrate you should then follow it with python manage.py db upgrade. The migrate command creates the migration script, while the upgrade command is what executes it and writes your changes to the database.
One last thing to note is that if you change your user_info model while logged into the server and run migrations on those, sometimes there will be discrepancies between what is stored in the session and what is on the database. This can cause the app to crash similar to the error you posted from wsgi, leading me to believe that that may have happened here as well. Make sure to log out before messing with the database, but if that does happen you should be able to just clear your cookies to delete the session and make the error go away.

Mojolicious generates two responses for one request

When a route callback takes too long mojolicious seems to request that route twice for example in this app:
#!/usr/bin/env perl
use Mojolicious::Lite;
get '/' => sub {
my $c = shift;
$c->render_later;
sleep(15);
say "got here";
$c->render(template => 'index');
};
When I request the "/" route ONCE this is what I get in the logs:
[Sun Jan 31 20:53:17 2016] [debug] Your secret passphrase needs to be changed
[Sun Jan 31 20:53:17 2016] [debug] GET "/"
[Sun Jan 31 20:53:17 2016] [debug] Routing to a callback
got here
[Sun Jan 31 20:53:32 2016] [debug] Rendering template "index.html.ep" from DATA section
[Sun Jan 31 20:53:32 2016] [debug] Rendering template "layouts/default.html.ep" from DATA section
[Sun Jan 31 20:53:32 2016] [debug] 200 OK (15.007044s, 0.067/s)
[Sun Jan 31 20:53:32 2016] [debug] GET "/"
[Sun Jan 31 20:53:32 2016] [debug] Routing to a callback
got here
[Sun Jan 31 20:53:47 2016] [debug] Rendering cached template "index.html.ep" from DATA section
[Sun Jan 31 20:53:47 2016] [debug] Rendering cached template "layouts/default.html.ep" from DATA section
[Sun Jan 31 20:53:47 2016] [debug] 200 OK (15.005030s, 0.067/s)
So I wait twice the time, I noticed this because I have an app that has to download XML and extract information and it was taking forever.
As duskwuff mentioned already, it seems to be a browser issue. With the above file and an "app->start" appended, I can reproduce it with Mojolicious 6.14 and Chrome 48. Using Firefox 44, there is only one request though.
Seems like the Chrome devs make the typical user behavior of hammering "reload" when a site takes too long the default already.

Permission denied error using datapsuher in CentIOS

Installing/configuring the extension datapusher in a instance of CKAN (version 2.4.1) on CentOS, following the steps of the installation guide from source (production steps), install the datapusher in the default location, configure Apache, etc., starts apache whitin errors with wsgi module:
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29799): Starting process 'ckan_gva_dp' with uid=48, gid=48 and threads=15.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29800): Initializing Python.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29804): Initializing Python.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29805): Initializing Python.
[Wed Oct 21 17:54:53 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Wed Oct 21 17:54:53 2015] [info] Server built: Aug 24 2015 17:50:06
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29806): Initializing Python.
But when test datapsher calling to port 8800, try me back a 500 error, with the the following message in the log:
[Wed Oct 21 19:00:55 2015] [info] [client 10.115.100.69] mod_wsgi (pid=29800, process='ckan_gva_dp', application='ckan-gva:8800|'): Loading WSGI script '/etc/ckan/datapusher.wsgi'.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] mod_wsgi (pid=29800): Target WSGI script '/etc/ckan/datapusher.wsgi' cannot be loaded as Python module.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] mod_wsgi (pid=29800): Exception occurred processing WSGI script '/etc/ckan/datapusher.wsgi'.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] Traceback (most recent call last):
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/etc/ckan/datapusher.wsgi", line 10, in <module>
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] web.init()
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 50, in init
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] _configure_logger()
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 121, in _configure_logger
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] _configure_logger_for_production(logging.getLogger())
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 98, in _configure_logger_for_production
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] app.config.get('LOG_FILE'), maxBytes=67108864, backupCount=5)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/handlers.py", line 112, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/handlers.py", line 64, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] logging.FileHandler.__init__(self, filename, mode, encoding, delay)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/__init__.py", line 835, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] StreamHandler.__init__(self, self._open())
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] File "/usr/lib/python2.6/logging/__init__.py", line 854, in _open
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] stream = open(self.baseFilename, self.mode)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] IOError: [Errno 13] Permission denied: '/tmp/ckan_service.log'
I tried to change the permissions on the folder /tmp (777), add execute permissions to wsgi script, check that all the dependencies specified in requeriments.txt are installed, with the environment for datapusher active, etc., ckan_service.log was empty...
¿Some idea?