configure mysql and apache2 module in webmin - mysql

This question might not be appropriate to ask in this forum but unfortunately the linux stack forum is not as active as here.
I installed mysql and apache2 successfully on my linux (kaliv2 x64 on vmware) and used it. I decided to use webmin as well but I have been facing some problems:
for mysql it says
The MySQL startup script (/usr/bin/safe_mysqld was not found on your system. Maybe MySQL is not installed, or your module configuration is incorrect
I can not find safe_mysqld in my directories. apparently safe_mysqld has been changed to mysqld.sock (/var/run/mysqld/mysqld.sock) however when I change /usr/bin/safe_mysqld to mysql.sock I still facing the error.
for apache2
The Apache configuration file /etc/apache2 does not exist. If you have Apache installed, adjust the module configuration to use the correct path.
I should mention that Apache Webserver is located in unused modules

Use locate command to find mysqld_safe, apache2 and maybe apachectl. In case you couldn't find mysqld_safe, look for mysqld. As for apache2 look for BOTH file and directory with this name - the first one is a command to start and stop the service, the second one is the server root directory which contains bin/httpd and bin/apachectl.

Apparently all configuration for MySQL is correct except
"Command to start MySQL server" : /etc/init.d/mysql
And for Apache I did as below
"Apache server root directory" :/etc/apache2
"Path to httpd executable" :/etc/init.d/apache2
"Path to httpd.conf or apache2.conf" :/etc/apache2/apache2.conf
"Path to access.conf" : Automatic

Related

Installing Siremis stuck on Database Configuration

I have install Kamailio 4.3.4 on Ubuntu 16.0.5 LTS. I want to install Siremis 4.3.0 but stuck on Wizard step 2 (Database Configuration) there is message "Something went wrong". I found error 500 action=update on console inspect element. I have try installing Siremis 5.1.0 and still not working stuck on step 2.
My Apache ver 2.4.10, My Php ver 7.0.33, Mysql 14.14
Please any advise
Sounds like one of the dependencies is not met:
Check your permissions are set:
make prepare24
make chown
Check Mod Rewrite is enabled:
a2enmod rewrite
service apache2 reload
Check PHP Mod is Enabled in Apache
On 16.04 installing PHP doesn't automatically add the PHP Apache mod, should be a package like libapache2-mod-php, you can verify that Apache is actually parsing PHP files by setting up a PhpInfo page.
Remove the Lock File & Try Again
When you run the installer a lockfile is created to prevent running the installer multiple times.
Once we empty the database with:
mysql> drop database siremis;
We can remove the lockfile and try again (from the Siremis directory):
rm install.lock
I did a writeup on installing Siremis on Ubuntu 18.04 which works fine.

404 Not Found Error for PHPmyAdmin on DigitalOcean droplet following linking of existing domain name

https://www.digitalocean.com/community/questions/how-to-access-a-java-web-application-by-a-domain-name-using-tomcat-8
After following all the steps and the related guides linked to in the post above, I was able to access my Java Spring application using "mywebsite.com:8080/appname".
Unfortunately, unlike before, I am unable to reach my phpmyadmin installation using either "mywebsite.com/phpmyadmin" or "droplet-ip/phpmyadmin" (which worked fine previously) and instead I get a 404 error saying phpmyadmin directory does not exist.
Additionally, even after following all the tips in said post I'm also unable to reach my app using just "mywebsite.com" and still have to add the additional ":8080/appname", contrary to what the post suggests.
I have tried sudo dpkg-reconfigure phpmyadmin and have been sure to select apache2 during the installation, but still have no success. I can still access my TomCat manager, and the apache home page when using "mywebsite.com" or "droplet-ip".
If any further information is needed, please let me know.
For Ubuntu 15.04 and 16.04
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 reload

Configure ejabberd with Mysql , Error p1_mysql.app not found

I am trying to configure ejabberd with mysql database. After changes into the yml file i got this error while starting node.
2017-01-09 13:07:27.386 [critical] <0.38.0>#ejabberd:exit_or_halt:133 failed to start application 'p1_mysql': {error,
{"no such file or directory",
"p1_mysql.app"}}
Searching for solutions encountered with a step to hit './configure'
But i cannot locate the directory.
Tried it in /var/lib/ejabberd as well. says "not found"
Installed on Ubuntu using apt-get install ejabberd
How do i hit configure to do the needful.
If you're building from source, you should enable mysql support via configure script, e.g.
$ ./autogen.sh # Only needed if building directly from github repo
$ ./configure --enable-mysql
$ make

Apache not starting on MAMP Pro

Apache wont start and it throws an error:
OR
Apache couldn't be started. Please check the log file for more information.
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libmecabra.dylib
Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib
in /usr/lib/libmecabra.dylib
/Applications/MAMP/Library/bin/apachectl: line 80: 2799 Trace/BPT trap: 5 $HTTPD "$
This is the same for multiple ports. The reccomended MAMP ports AND the regular apache ports.
MySQL starts perfectly fine.
Any suggestions?
Locked. Comments on this answer have been disabled, but it is still accepting other interactions. Learn more.
I updated to the latest version of yosemite last night.
You apparently have to go to your MAMP folder in Applications. Go to bin -> apache2 -> bin.
Then rename the file from envvars to _envvars.
I also came across another problem of it not working correctly. Make sure the ports are Apache defaults, NOT MAMP defaults (port 80 etc). If it works straight away, this should not apply to you.
Installing the latest release of MAMP 3 Version 3.0.7.3 in my case seems to solve this issue.

"193: %1 is not a valid Win32 application" bug with a new Rails Application

I have a new rails application which I have created under Windows 7 by going into a directory and typing "rails newapp". The creation went fine, and when I access the root page, all is well. However, when I try to access a page that would access the database, I get this:
193: %1 is not a valid Win32 application.
In the developer.log. Mysql is running fine on my machine, and I have other applications which I have running in here in other directories, it's just this one that doesn't work. Any thoughts?
Here's the answer that worked for me. Turns out it was an issue of x64 vs. x32 issue and Rails 2.3.2.
The answer I got from here (http://osdir.com/ml/RubyonRailsTalk/2009-06/msg01775.html):
In case anyone else has the same
problem after a lot of struggling on
my Windows XP x64 machine, with MySQL
5.1.30 (x64) and Rails 2.3.2 installed, this above suggestiong
helped me.
Download libMySql.dll from here (http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/)
and putting it in ruby\bin solved the
problem.
Solved by following the directions on this blog here: http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
which involves using the non installer version of the MySQL Connector http://dev.mysql.com/downloads/connector/c/
I could not get webrick to run on x64 Windows 7 system -- got the same error
"193: %1 is not a valid Win32 application”
If I just replaced the file libmysql.dll (as suggested in posts above), I got a different error.
"Incorrect MySQL client library version!"
My Path set like this: C:\Ruby187\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Ruby187\lib\ruby\gems\1.8\gems\rails-3.1.1\bin
(didn't need to change the path again)
This error occurs if you have a file with name "Program" in the root of your drive. Say for example you are trying to execute "C:\Program Files\SomeApp\Bin\SomeExe.Exe" it tries to execute "C:\Program" if it exists. In some situations a file with this name get created if you forget to quote "C:\Program Files..." with some commandline commands. This of course also applies for you D: drive, etc.
This error often occurs if you try to start services, but may occur in other situations.
Simply deleting the file C:\Program or D:\Program etc. solves the problem.
Having run into multiple issues setting up MySQL with Rails on Windows x64 my recommendations are:
Install the 32-bit version of MySQL, do not try to use the 64-bit version.
Install into a path with no spaces, do not accept a default like "C:\Program Files\MySQL\MySQL Server 5.5\"
Install the MySQL gem with an invocation similar to:
gem install mysql -- --platform=ruby --with-mysql-dir="D:\Programs\MySQL\MySQL-Server-5.5" --with-libmysqllib="D:\Programs\MySQL\MySQL-Server-5.5\lib\"
Be sure to uninstall/reinstall the gem whenever you install a new version of MySQL.
Make sure D:\Programs\MySQL\MySQL-Server-5.5\lib is included in your path, as well as D:\Programs\MySQL\MySQL-Server-5.5\bin. Make sure other copies of libmysql.dll are not being picked up from elsewhere on your path or your ruby installation directories.
This worked for me with mysql-5.5.15-win32, mysql-2.8.1-x86-mingw32 and Windows 7 x64.
Copy the file libmysql.dll from your MySQL installation directory and paste it into your Ruby installation's bin directory. You may need to download a zip archive from http://dev.mysql.com/downloads/mysql/ if your MySQL installation directory doesn't already include the file libmysql.dll.
Using Ruby (1.8.7) with MySQL(5.5) on Windows 7 and also getting error 193.
Copying the libmySQL.dll to ruby /bin worked fine for me.
C:\Work\redmine-2.4.1\config\database.yml content:
# Default setup is given for MySQL with ruby1.9. If you're running Redmine
# with MySQL and ruby1.8, replace the adapter name with `mysql`.
# Examples for PostgreSQL, SQLite3 and SQL Server can be found at the end.
# Line indentation must be 2 spaces (no tabs).
production:
adapter: mysql
database: redmine
host: localhost
username: root
password: "pwd#123"
encoding: utf8