Weblogic server installation in Ubuntu 16.04 - weblogic

my setup,
am using virtual box vm for installation of weblogic server fmw_12.2.1.1.0_wls.jar on top of Ubuntu 16.04 server
installed oracle java using
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
now java is installed in /usr/lib/jvm/java-8-oracle/jre/bin/java and i have set java_home = /usr/lib/jvm/java-8-oracle
have placed the file fmw_12.2.1.1.0_wls.jar in /usr/lib/jvm/java-8-oracle
when trying to install weblogic server from /usr/lib/jvm/java-8-oracle using java -jar fmw_12.2.1.1.0_wls.jar it fails with the error message as
preparing to launch the oracle universal installer from /tmp/OralInstall2016
Exception in thread "main" java.long.UnsatisifiedLinkError: /usr/lib/jvm/java-8-oracle/jrelib/amad64/libawt_xawt.so:libXender.so cannot open shared object file: no such file or directory
Please advise

You're missing pre-requisites. Perhaps there are more, but the one you're referred is because of missing X-Windows subsystem. Easiest just to invoke:
$ sudo apt install -y xterm
I hope it will help,
Jarek

Related

Centos 8, PHP 7.2 and MS Sql Server

I am planning moving on to the Centos 8 but it seems that I cannot get a working PDO connection with SQL server using just plain Centos 8 packages.
I have installed the unixODBC packages and after that from PECL sqlsrv and sqlsrv_pdo but I can't figure out how to make the actual connection or odbc configuration.
As most of my code to be transferred to the new environments is written using PDO, I wouldn't want to change it to sql server native.
Are there any step-by-step instructions how to build PDO ODBC connection to sql server without using freetds, which isn't available through the centos repositories (or RHEL either).
I faced the same issue and I solved it as follow:
sudo dnf install php-pear
sudo dnf install php-devel
sudo dnf install make
sudo pecl install sqlsrv
sudo dnf install unixODBC-devel
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
then:
sudo nano /etc/php.d/30-pdo_sqlsrv.ini
Add in the file 30-pdo_sqlsrv.ini:
extension=pdo_sqlsrv.so
then:
sudo nano /etc/php.d/20-sqlsrv.ini
Add in the file 20-sqlsrv.ini:
extension=sqlsrv.so
Download and install msodbcsql17-17.4.2.1-1.x86_64.rpm from https://packages.microsoft.com/rhel/8/prod/
sudo yum install msodbcsql17-17.4.2.1-1.x86_64.rpm
Then just need to restart php-fpm
sudo systemctl restart php-fpm.service
Good luck!

Apache doesn't start in AMPPS on Ubuntu

I'm trying to run the Ampps local server 3.8 on Ubuntu. Mysql works good but apache doen't run.
When I type
/usr/local/ampps/apache/bin/httpd
I get
/usr/local/ampps/apache/bin/httpd: symbol lookup error: /usr/local/ampps/apache/lib/libapr-1.so.0: undefined symbol: dlopen
How to solve?
I experienced a similar problem. Firstly you must check is there anything that uses 80 port.
If any you kill that.
Then you backup libapr and then install libs again.
Run following commands:
cd /usr/local/ampps/apache/lib
sudo mkdir backup
sudo mv ./libapr* ./backup/
sudo apt-get -y install libaprutil1 libaprutil1-dev libapr1 libapr1-dev
and try run ampps.

Installing Apache server

How to install Apache server on your computer? I have downloaded the file from here: http://httpd.apache.org/download.cgi but there is no installation file in this archive. What file should I be looking for or is there some other way to go about it completely and I am being totally wrong?
You could read the documentation : http://httpd.apache.org/docs/2.4/install.html
If you're Windows user, I would like to suggest you to install XAMPP from
(apache, mysql and php5)
https://www.apachefriends.org/download.html
If you're Linux user, type following command (Ubuntu or Debian)
$ sudo apt-get install apache2

How to check LAMP is installed or not?

I am newbie in vps. I installed centos 6.5 64bit. one hour ago and installed Apache, php, mysql successfully. now I have to install phpmyadmin. It requires something called LAMP. I don't know if LAMP is already installed by default with centos or I have to manually install it. What is the ssh command to check it if LAMP installed or just answer yes or no.
UPDATE:
[understood]
That blogger confused me by separating LAMP with comma.
If LAMP was correctly installed, i.e., PATH is already set for php,mysql and apache2, then run following commands from terminal:-
php -v // Return PHP version
apache2 -v // Returns apache version
mysql --version // Returns mysql version
if all of the above command returns their respective versions, then it means LAMP is installed.
BUT if it doesn't then there might be two cases:-
1) LAMP might be installed but is not added to path.
2) LAMP is not installed, Install it.
As for the first case, if it is installed but not runnable from terminal, then just run following commands to see where LAMP components are installed:-
1) Find file with name "apache2" in your pc. It will return list of path where a file name called "apache2" exists. You can then cross examine it further.
sudo find / -name apache2
2) Run the above same command to find file "mysql" and follow the same procedure further.
sudo find / -name mysql
3) For PHP:-
sudo find / -name php
LAMP stands for Linux, apache, Mysql, PHP, if you've installed apache, mysql and PHP correctly on a linux system you have LAMP already set up.
If you want to check whether the above mentioned dependecies are installed or not
To check whether php is installed or not
php5 -v
For Apchae
/usr/sbin/apache2 -V
If any of the mentioned dependencies are not install and you want to install the LAMP use the following command,
sudo apt-get install lamp-server^

Installing Jython on Ubuntu

I downloaded jython_installer-2.5.2.jar from jython.org.
Opened the terminal and gave this command:-
java -jar jython_installer-2.5.2.jar
It was installed in a folder named jython2.5.2 in the home directory
But whenever I open the terminal and give the command jython in the terminal I am shown a message saying Jython is not installed.
How can I fix this problem?
I can install Jython using sudo apt-get install jython, but the Jython in Ubuntu repositories is 2.2.1 and I want the new version..
To install Jython with super user privileges:
sudo java -jar jython_installer-2.5.2.jar
Select /usr/local/lib/jython, then create a symbol link of Jython to /usr/local/bin:
sudo ln -s /usr/local/lib/jython/bin/jython /usr/local/bin/jython
When you type in jython, the shell looks for a program with that name in the PATH. You should either call the program with its full path:
# ~ is an abbreviation for your homedir
~/jython2.5.2/bin/jython
or add the directory with the executable to your PATH:
PATH=$HOME/jython2.5.2/bin:$PATH
If you want the latter to persist across terminal sessions, add it to your ~/.bashrc.
If you have ubuntu 19.04, you can install with apt
sudo apt install jython