Showing posts with label Application Hosting Issues. Show all posts
Showing posts with label Application Hosting Issues. Show all posts

Friday, August 22, 2014

openmeetings exception: java.lang.Exception: Path to JOD Library folder does not exist openmeetings not able to upload document

If you are getting any such error as below while uploading any document like doc, docx, odp, xls, xlsx, ppt, pptx follow the steps below to resolve it.

===============================

key: processSWF
process: generateSwf
command: /usr/share/pdf2swf -s insertstop -s poly2bitmap -i -j 85 -s zoom=100 /usr/src/openmeetings/webapps/openmeetings/upload/files/7de20358e15fc70c1bb2a34b393e6333/7de20358e15fc70c1bb2a34b393e6333.pdf /usr/src/openmeetings/webapps/openmeetings/upload/files/7de20358e15fc70c1bb2a34b393e6333/7de20358e15fc70c1bb2a34b393e6333.swf 
exception: java.io.IOException: Cannot run program "/usr/share/pdf2swf": java.io.IOException: error=2, No such file or directory
error: Cannot run program "/usr/share/pdf2swf": java.io.IOException: error=2, No such file or directory
exitValue: java.io.IOException: Cannot run program "/usr/share/pdf2swf": java.io.IOException: error=2, No such file or directory
out: 
key: processThumb
process: generateBatchThumbByWidth
command: /usr/bin/convert -thumbnail 80 /usr/src/openmeetings/webapps/openmeetings/upload/files/7de20358e15fc70c1bb2a34b393e6333/7de20358e15fc70c1bb2a34b393e6333.pdf /usr/src/openmeetings/webapps/openmeetings/upload/files/7de20358e15fc70c1bb2a34b393e6333/_thumb_page-%04d.jpg 
exception: null
error: convert: unable to open image `/usr/src/openmeetings/webapps/openmeetings/upload/files/7de20358e15fc70c1bb2a34b393e6333/7de20358e15fc70c1bb2a34b393e6333.pdf': No such file or directory.
convert: missing an image filename `/usr/src/openmeetings/webapps/openmeetings/upload/files/7de20358e15fc70c1bb2a34b393e6333/_thumb_page-%04d.jpg'.
key: processOpenOffice
process: doJodConvert
command: null
exception: java.lang.Exception: Path to JOD Library folder does not exist
error: Path to JOD Library folder does not exist
exitValue: java.lang.Exception: Path to JOD Library folder does not exist
out: null
===============================

To import doc, docx, odp, xls, xlsx, ppt, pptx,  all files that you can open with OpenOffice to OpenMeetings and use them in the whiteboard you need OpenOffice or LibreOffice installed the machine that runs OpenMeetings.


Installation of JODConverter means: You have download the ZIP binary from their website and then configure in Apache OpenMeetings Administration > Configuration the config key jod.path to point to the "lib" directory of the unpacked JODConverter binary. There is no restart of OpenMeetings required.


  • SSH server as root user
  • cd /usr/share
  • you can download the jodconverter zip file from the link 
  • wget http://jodconverter.googlecode.com/files/jodconverter-core-3.0-beta-4-dist.zip
  • unzip jodconverter-core-3.0-beta-4-dist.zip
In the unzip files find the library file or simply lib directory and set the path of jod.path to point to that lib directory and save, Location of lib could be  /usr/share/jodconverter-core-3.0-beta-4/lib

my configurations were as below.

jod.path      /usr/share/jodconverter-core-3.0-beta-4/lib


Sunday, December 01, 2013

Strict Standards Non-static method JLoader import should not be called statically joomla

If you are getting the Errors like below while loading your joomla website follow the steps below to solve this issue.

=======================
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/user/public_html/ libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/user/public_html/ libraries/joomla/loader.php on line 71
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/user/public_html/ libraries/joomla/import.php on line 32
=======================

SSH server as root user Open the file php.ini in any editor and change the below two settings.

=======================
changed error_reporting = E_ALL | E_STRICT to error_reporting = E_ALL & ~E_NOTICE
changed display_errors = On to display_errors = Off
=======================

If the above still doesn’t help you or if you donot have the root access, Do the following.

In the domains index.php file set it like inside the php division.

========
ini_set(‘display_errors’,0);
========

Restart apache

*Note DO not forget to restart apache after making any changes in php.ini

Friday, November 15, 2013

Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine

We get this error when java is running out of space and resulting in not functioning of Java virtual machine and it can be easily resolved by increasing the heap size.

=========================
[root@vps red5]# ./red5.sh
Running on  Linux
Starting Red5
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
==========================

That means you need to increase the Heap-size.


SSH Server 

Run the command below


export CATALINA_OPTS="-Xms1024m -Xmx1024m"

*Note It will increase your heap size to 1024MB

If still red5 doesn't work increase more memory if still don't work 
Reboot server and then give it a try and If still doesn't work no way left increase RAM.

Friday, September 27, 2013

How to upgrade subsonic to its latest version

Steps to upgrade subsonic to version subsonic 4.9

SSH server

check current version from the command 

rpm -qa | grep subsonic

download the package below
  • wget http://jaist.dl.sourceforge.net/project/subsonic/subsonic/4.9/subsonic-4.9.rpm
then use command

ll

output will be like

-rw-r--r-- 1 root root 35061093 Apr 18 00:40 subsonic-4.9.rpm

yum update --nogpgcheck subsonic-4.9.rpm

after installation check the version by command below 

rpm -qa | grep subsonic

result will be like

subsonic-4.9-3434


*Note To access subsonic IP:4040

Friday, September 27, 2013

The uploaded file exceeds the upload_max_filesize directive in php.ini wordpress

The default upload file size for WordPress is 2 MB, which is a problem if you want to upload a large media files. If you get this error, “The uploaded file exceeds the upload_max_filesize directive in php.ini”, follow these steps:
  1. Locate the php.ini file inside the wp-admin directory
  2. vi php.ini
  3. Find this line in the php.ini file “upload_max_filesize = 2M” and replace it with a higher value (E.g. “upload_max_filesize = 64M”)
  4. You may also want to increase your max post size. Look for this line in your php.ini file “post_max_size” and increase it as well.
  5. Save the changes to the file inside your wp-admin directory.
  6. Try to upload now.
Or you can make the same changes in the  .htaccess file.

If you still have issues.

then check the ownership of the htaccess file.

Permission Modes for htaccess

chmod 755 .htaccess

r ->    Read
w->    Write
x->     Execute


 7                   5                5
 user         group       world
 r+w+x       r+x           r+x
 4+2+1     4+0+1       4+0+1  =    755

Thursday, September 26, 2013

How to change subsonic password from the server backend

SSH Server

Goto

cd /var/subsonic/db

vi subsonic.script
goto line

INSERT INTO USER VALUES('admin','enc:693932656d737368',0,0,0,FALSE,'mail@gmail.com')

Yellow is password in hexa decimal form we have convert it into ASCII by click here to goto the hexadecimal to ascii converter.

Login to subsonic

IP:4040

With user name admin and password which is converted to ascii change password and set it to whatever you want.

Sunday, September 22, 2013

Not able to upload image in OPENMEETINGS

upload image in OPENMEETINGS

This is because the path is not set correctly that's why image is not uploading.

Login to openmeetings

IP:5080/openmeetings

goto settings and set the path of  imagemagick_path to /usr/bin

This should resolve the issue




Friday, September 20, 2013

Friday, September 20, 2013

Connect remotely to MySQL databases created on centos Server

Add local ip in whm in remote Additional mysql access hosts
Mysql should be running 

port 3306 should be open

From Server-wide changes login to Back-end

cd /etc/

vi my.cnf
add server ip
#bind-address=IP address(Local IP)   // do not forget make previous ip as comment

bind-address=Server IP where Database is stored

Service mysql restart

From Cpanel

  • When Cpanel using X3 theme, login to Cpanel and click the Remote MySQL , under Databases.
  • Type in the connecting IP address i.e your local IP address, and click the Add Host, Now restart mysql and try to connect.

  • When using X, login Theme to Cpanel and click the MySQL Databases, under Databases.
  • Scroll to the bottom and type in the connecting IP address where it says "Host (% wildcard is allowed):", and click the Add Host, Now restart mysql and try to connect.

Tuesday, August 27, 2013

Red5 server down



cd /opt/red5

if it does not exist there search red5 directory from the command below.

find /-name red5

Once you find the directory go inside that directory and run the command below.

nohup ./red5.sh &

*Trick If doesent work run it in screen
./red5.sh

But it will work only till the time screen is running.
then check it by Ip:5080
using nohup command red5 keeps running even after we exit.