Apache cannot find correct version of libmysqlclient [closed] - mysql

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 6 years ago.
Improve this question
I'm trying to write a cgi form handler using cgicc and mysql++. Everything is installed on my machine, and the C++ compiles and links fine into the .cgi file, but when I try to test in on apache, I get a 500 Internal Server error.
This is the line from error.log
[Sun Sep 25 10:29:53.759858 2016] [cgi:error] [pid 6186] [client 127.0.0.1:47526] AH01215: /var/www/html/getUsers.cgi: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory: /var/www/html/getUsers.cgi, referer: http://localhost/form.html
Apache is looking for libmysqlclient.so.18, but I think I have.20 installed. That said, libmysqlclient.so.18 does exist on my machine, found it with find /usr | grep libmysqlclient.
How do I either:
Tell apache to look for libmysqlclient.so.20 instead, or,
Tell apache where it can actually find .so.18?
Versions:
Apache 2.4.18
mysql Ver 14.14 Distrib 5.7.15
Ubuntu 16.04

Related

Amavis is not installed - CentOS [closed]

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 2 years ago.
Improve this question
Getting this error when installing Modoboa via this link https://www.linuxbabe.com/mail-server/email-server-centos-7-modoboa
Installing amavis
Package amavisd-new is obsoleted by amavis, trying to install amavis-2.12.0-10.el7.noarch instead
Package lz4-1.7.5-3.el7.x86_64 already installed and latest version
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/maria
db.service.
Redirecting to /bin/systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Redirecting to /bin/systemctl start mariadb.service
Amavis is not installed
It would be very helpful if some can help
You need to do 2 things
go to folder where you cloned modoboa git repo and run:
sed -i 's/amavisd-new/amavis/g' ./modoboa-installer/modoboa_installer/scripts/amavis.py
Script was searching for package amavisd-new but package naming was changed for amavis in Centos
Modoboa installer don't have yet files for amavis ver 2.12 but you can copy older sql template
cp modoboa-installer/modoboa_installer/scripts/files/amavis/amavis_mysql_2.11.X.sql modoboa-installer/modoboa_installer/scripts/files/amavis/amavis_mysql_2.12.X.sql
if you want to use postgresql do the same for postgres sql file.
and after that re-run installer should work fine :)

Where can I download mysql jdbc jar from? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I installed and tried to use jasper report studio. The first brick wall you hit when you try to create a datasource for your reports is
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
The forums say I need to install a jar on the classpath. I have no idea how to do this, so the first hurdle is how to get the jar. The only place I can find is this:
http://dev.mysql.com/downloads/connector/j/
but this unfortunately gives you an msi installer, not a jar. I don't want to install stuff, just get the jar.
I have mysql DB installed, had have trawled through the install dir in program files, but can't find the jar.
Anyone know the official (not malware site) way to get hold of the mysql jar? It seems bizarre that its so hard to find.
I have windows 8 64 bit and mysql 5.6.
Go to http://dev.mysql.com/downloads/connector/j and with in the dropdown select "Platform Independent" then it will show you the options to download tar.gz file or zip file.
Download zip file and extract it, with in that you will find mysql-connector-XXX.jar file
If you are using maven then you can add the dependency from the link http://mvnrepository.com/artifact/mysql/mysql-connector-java
Select the version you want to use and add the dependency in your pom.xml file
If you have WL server installed, pick it up from under
\Oracle\Middleware\wlserver_10.3\server\lib\mysql-connector-java-commercial-5.1.17-bin.jar
Otherwise, download it from:
http://www.java2s.com/Code/JarDownload/mysql/mysql-connector-java-5.1.17-bin.jar.zip
Here's a one-liner using Maven:
mvn dependency:get -Dartifact=mysql:mysql-connector-java:5.1.38
Then, with default settings, it's available in:
$HOME/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar
Just replace the version number if you need a different one.

running a shell script from html [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have created two virtual machines having ubuntu 12.04 lts os. Installed apache tomcat 7 on both VM's (virtual machine). configured virtual private network.
HTTP request on VM1 should run a shell script on VM2 and return the result to VM1 as an html file. I did the configuration part.
Now i need to know, how to write an HTML response file in VM2 server(which can be displayed on VM1 browser as a response) which will invoke a shell script having "ps -Aef" command to list all processes running on VM2. i need to display the contents of this file on VM1.
since i am a beginner in web programming/shell scripting please help me.
Thank you in advance
-Akshay
You can use PHP
Install php (apt-get install php)
copy index.php file into /var/www/html folder
index.php
<?php
$output = shell_exec('ps -Aef');
echo "<pre>$output</pre>";
?>
browse http://<ip-address>/index.php
What you need is a web server that can run CGI scripts. It's too long to completely list the steps of setting up CGI (and it depends on your web server of choice etc.). But considering you are a beginner, there is a pretty extensive tutorial with examples on how to configure Apache to run CGI scripts right here.
To summarize:
You need to install Apache (apt-get install apache2)
Configure Apache to enable mod_cgi as described in the tutorial above.
Write your first CGI program and test it (also in that tutorial).

"reading files list for package 'inkscape': Input/output error" while trying to install packages [closed]

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 9 years ago.
Improve this question
It doesn't matter what I try to install using my package manager(sudo apt-get install whatever), I always get this error.
dpkg: unrecoverable fatal error, aborting:
reading files list for package 'inkscape': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
I have researched and have tried to rebuild my dpkg status file, and I have also tried to revert to an older version, but it either hasn't worked or I am doing it wrong.
Also, when I try to run the command "sudo apt-get update", I get this error.
The problem started when I lost my internet connection while downloading monodevelop. Any help is greatly appreciated.
I figured out the answer, so I will post it here in case anybody else has the same problem in the future.
NOTE: After this fix, apt-get no longer installs dependencies for me automatically without using the -f flag.
Go into the /var/lib/dpkg directory
Make a backup of the "status" file
Open the status file as root and find the package that causes the error.
In this case, its "PACKAGE: inkscape".
Delete all the text until the next PACKAGE: declaration in the file.

Compile CMU PocketSphynx at Linux Mint 13 [closed]

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've installed CMU Sphynx at Linux Mint 13 (based on Ubuntu 12.04 LTS) and I simply cant' find any examples for:
How to just test how it work in most simple way? I want to launch it from command line and recognize any .wav file. I've read docs but there are just c++ or python examples, no examples for pocketsphynx_continious
Where can I get /dev/dsp devise at Mint? I have installed all dev libs for alsa and pulseaudio - no /dev/dsp at all.
Any help?
To recognize from microphone
pocketsphinx_continuous
To recognize a file (16khz mono 16bit)
pocketsphinx_continuous -infile file.wav
To create /dev/dsp you need to load kernel driver for oss
modprobe snd_pcm_oss
Development libs are for development, not for /dev/dsp. After you installed development libraries, you need to recompile and reinstall sphinxbase. It will detect development libraries and use alsa instead of oss.