Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have all the mysql .beam files needed for ejabberd. And I installed ejabberd via apt.
But when I try to copy those .beam files into /usr/lib/ebin directory and run ejabberd it echoes to ejabberd.log the following:
=INFO REPORT==== 2012-05-31 09:46:02 ===
application: ejabberd
exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
{'EXIT',database_module_missing}}}
type: temporary
What I'm doing wrong?
What's the correct way of adding mysql drivers to ejabberd apt installation?
BEAM files used by ejabberd are located in a different place — try putting your files there.
As a side note: are you sure those BEAM files are really OK? Erlang is not too permissive when it comes to binary portability, so it's always advised to recompile the necessary code using the same release of Erlang as will run ejabberd on the target machine.
Check which triggers this ERROR is staightforward. It checks if hardcoded list of modules is in Erlang VM path. Make sure that odbc files are there and that they have proper file ownership. Required files are:
check_database_module(odbc) ->
check_modules(odbc, [odbc, odbc_app, odbc_sup, ejabberd_odbc, ejabberd_odbc_sup, odbc_queries]);
check_database_module(mysql) ->
check_modules(mysql, [mysql, mysql_auth, mysql_conn, mysql_recv]);
check_database_module(pgsql) ->
check_modules(pgsql, [pgsql, pgsql_proto, pgsql_tcp, pgsql_util]).
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I try to run ng serve command in my project it produce the below error.
ERROR in ngcc is already running at process with id xxxx
Try deleting your ngcc_lock_file in the path:
node_modules/#angular/compiler-cli/ngcc/ngcc_lock_file
Or for Angular 9, the lock file to delete is:
node_modules/#angular/compiler-cli/ngcc/__ngcc_lock_file__
I had the same issue and I and deleted that file and it started working for me.
rm node_modules/#angular/compiler-cli/ngcc/__ngcc_lock_file__
Working Solution
Delete all node modules
Close any working terminal or you can shut down your PC if you cant make sure that you've closed all working terminals
run npm i to setup your modules
run ng s
It's working with me well !
The problem is most-likely a unique case.
Make sure you don't run other ng serve in parallel.
Stop current processes running and retry.
Reload your computer and try again.
If that does not help
Post a full log, so it is possible to troubleshoot your problem.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
so I have this website so far
https://imgur.com/a/o4T81MG
Looks like that. I want the play thumbnails to display video I have on my computer. I want to use my computer as a video host. I am trying to play around making a video sharing site. I plan on going down the google cloud route to host my videos but as of right now I wanted to know if its possible to use my own computer as a server to retrieve videos I have saved.
Here's one option...
Step 1: Serving the video
Super Simple Node.js Server
(install Node.js)
At a command-prompt:
Run npm install --global http-server.
Change into (cd) the directory where your videos are stored.
Run http-server.
Apache + GNU/Linux
Run a Linux VM on your computer (or use WSL if you're on Windows, or if you must install it directly follow these instructions: https://www.sitepoint.com/how-to-install-apache-on-windows/).
Install Apache (sudo apt-get install apache2 on Ubuntu; see https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04).
Put your video in a directory such as /var/www/html or the equivalent for your platform (revisit the first two links for help).
Configure your new server to serve video correctly (https://stackoverflow.com/a/13341700).
Step 2: On the frontend...
Embed a element on your webpage pointing to the video on the server (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).
🎉 You're all set up!
TL;DR: you need to serve the videos and then display them. If you want to add logic beyond that, consider building an Express web app.
You need to store your video files in a folder on a server, and then you need to reference them in your code. It's very simple to reference the videos when they are in a folder on a server.
see:
https://www.w3schools.com/html/html5_video.asp
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have a Debian 9 server with nginx installed.
I also installed ZendFramework 3.
Now I wanted to change the default document root, which is /var/www/html, to my Zend Project.
My index file is located in: /var/www/example.com/module/Application/view/application/index/index.phtml
My /etc/nginx/sites-enabled/default looks like this:
server {
listen 81 default_server;
listen [::]:81 default_server;
root /var/www/example.com/module/Application/view/application/index;
index index.phtml index.php;
}
When I visit the site, the index.phtml gets downloaded and Google-Chrome outputs this in the console:
Resource interpreted as Document but transferred with MIME type application/octet-stream
Do I have an error in a config file? How can I fix this?
Nginx doesn't recognise the mime type of the .phtml file extension, so you need to add it to your config.
The file to add it to is usually found at /etc/nginx/mime.types
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I tried to source for a particular .sql file, namely 'registrar.sql', the following error is displayed:
Failed to open file 'registrar.sql', error: 2
I know that this means the below error:
#define ENOENT 2 /* No such file or directory */
However, I am not sure how to be more specific as I have tried entering 'source registrar.sql' and I have tried entering the absolute path. Now it is possible I am just entering the absolute path incorrect which is where I could use some help. Here is the path in properties in windows.
C:\Program Files\MySQL\MySQL Server 5.1\bin
File name is: registrar.sql
Any help on this would be appreciated.
Try like this:
mysql> source c:/dumps/mydatabase.sql
That is, use forward slash instead of back slash
You need to restart mysql if you have copied file after starting mysql server.
also if you have space in file or folder name you should use quotes.
I think that the sql process might not have read access to your directory anyway. In which case, you might have to copy the sql file to other accessible folder and tell mysql the absolute path.
Remove spaces in the folder names of the path, It worked for my mac path.
(Eg: change the folder name MySQL Server 5.1 to MySQLServer5.1)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I just have installed Fedora 14 and install apache ( and run it ), php and mysql.
I put in /var/www/html my folder peki with php pages, but when I try to see in browser (http://localhost/peki/info.php) it is FORBIDDEN (You don't have permission to access /peki/info.php on this server). I started like superuser (service httpd start, reason for that is when I was other user starts FAILED ). How to make this work ?
You have to go into SELinux Management and Disable the "System Default Enforcing Mode", and right below that, you want to change the "Current Enforcing Mode" to Permissive, and leave "System Default Policy Type" on targeted.
You have to change the owner permission for the www folder to your user's because the default owner is root.
Here:
First fire up your terminal
Then cd to www folder
then use chown function to change owner to your username.....find out more about chown and chmod by googling them.
You're Welcome
Check if SELinux is enabled: getenforce.
Check if apache run like apache user: ps aux | grep http.
apache can read and execute /var/www/html/peki ?
apache can read and execute /var/www/html/peki/info.php ?