Ubuntu Servers :: OpenOffice / Unoconv / Java When Run From PHP Script With Www-data User?

Jul 8, 2010

I've a big issue using unoconv to convert Office docs in PDF format from a PHP script.It works perfectly when I run the script or the unoconv commands as root, but it fails the second I do the same from web (through apache and www-data user) I have installed Ubuntu 10.04 Server 64bits, openoffice.org and unoconv packages have been installed via apt-get (re-installed today). I think openoffice is version 3.2. Here is a command line that is called by exec() PHP command :

Code:
/usr/bin/unoconv -f pdf /home/www/framework/files/volume_0/document/original/1278613446MWEwwT4k.ppt

[code]...

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Www-data Run Process As Different User?

Jun 23, 2010

forums so I'm not sure this is the right place for this topic.So, my question/topic thing is:I have a PHP script that runs on an apache2 web server (www-data).From this script, i want to launch a process that stays alive all the time,ut the parent script keeps on going. So I think I will need to run a command like 'at' to put the process on a queue, and the script can continue and finish, without waiting for the process to stop. But it seems like I will need to run the 'at' command as a different user, because www-data stops the 'atd' process. I'm not sure about that. Does anybody know how this could happen?

View 2 Replies View Related

Ubuntu Servers :: Changing User From Www-data To Asterisk Broke Zarafa?

Jun 6, 2010

I currently have Zarafa and I am going to install MythWeb for MythTV.To solve the permission problem for installing amportal (FreePBX), I have to change Apache's user and group to Asterisk instead of this, which I've commented out:User ${APACHE_RUN_USER}Group ${APACHE_RUN_GROUP}Once FreePBX is installed completely, I checked to make sure FreePBX is working and it worked. I used the latest version of Asterisk from the SVN trunk, so I used ./install_amp --my-svn-is-correct.However, I want to use Zarafa AND FreePBX, I just don't like having to change the Apache User and Group to asterisk.Here is a couple of examples of instructions when installing FreePBX:Is there a workaround? I really want to change it back to what it was before while FreePBX can still access their own directories.

I did not know if this question has been asked, but I thought I'd ask here. I've added "zarafa" and "mythweb" to the tags list my thread.Update: I changed my apache configuration file back to www-data for User and Group and I do have /var/lib/asterisk/agi-bin and /var/www/asterisk (where FreePBX PHP pages are installed in /var/www/asterisk) owned by asterisk:asterisk. But I get this:

Code:
Retrieve conf failed to copy file(s) from a module's agi-bin dir: copy(/var/lib/asterisk/agi-bin/directory): failed to open stream: Permission denied

[co0de]...

View 1 Replies View Related

Ubuntu Servers :: Dell PowerEdge R610 - 9.10 - Megasas: Failed To Copy Out To User Sense Data?

Mar 16, 2010

After kernel upgrade to latest version I get a lot of failure messages in syslog and dmesg:

Code:
Mar 16 22:50:30 s6 kernel: [515925.148335] megasas: Failed to copy out to user sense data
Mar 16 23:07:57 s6 kernel: [516970.118242] megasas: Failed to copy out to user sense data

[code]....

View 2 Replies View Related

OpenSUSE :: Java Makes OpenOffice Crash?

Aug 1, 2010

Since when I upgraded OpenSuse from 10.2 to 11.3 (big jump, I know!), I can no longer use OpenOffice. When Java is Active, the OO applications crash after a few operations. Most of times they don't even start.

When run in a terminal, OO answers with errors like this:

Code:
Exception in thread "Thread-1" java.lang.OutOfMemoryError: requested 24 bytes for CHeapObj-new. Out of swap space?
#

[Code]....

View 9 Replies View Related

OpenSUSE :: Openoffice Stopped Working When Installed Sun Java?

Feb 1, 2011

Yesterday I disinstalled with yast java-1_6_0-openjdk-1.6.0.0_b20.1.9.2-0.2.1-x86_64 and java-1_6_0-openjdk-plugin-1.6.0.0_b20.1.9.2-0.2.1-x86_64 (which were installed as part of our sitewide suse 11.3 installation) and replaced them with java-1_6_0-sun-1.6.0.u22-1.2.1-x86_64 and java-1_6_0-sun-plugin-1.6.0.u22-1.2.1-x86_64 (et al) to solve my problem about bad graphics quality in firefox applets as described and suggested in this other postl.That successfully solved my applet problem, but I just discovered it triggered a new problem with openoffice . I tried opening an existing sxc document and got this error message:[Java framework]sunjavaplugin.so could not load Java runtime library: file:///usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64/server/libjvm.so.

It looks like that openoffice is still looking into the old openjdk instead of the new sun java. How can I repoint it to use the current java (assuming it really needs it) ? Apparently even entering openoffice on a new document gives error in a popupOpenOffice org requires a JRE to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools-Options-OpenOffice org-Java ... but since openoffice does not start I cannot access those options I guess (or is such stuff located elsewhere, and if so where) ?

View 5 Replies View Related

Software :: Setting Data Types In OpenOffice Calc?

Mar 3, 2010

you are using Calc to hold data, and you have a column of surnames. You enter True and it turns into TRUE: OO has decided you wanted a Boolean. Similarly, you enter a date as 12 Jan 09: it may appear in that format, but you can't search for Jan 09, only for 01/09. Is there any way one can set the data type of a cell as text, or prevent OO from carrying out unwanted type conversions? I suspect the answer will be no; I can't find anything in the pages, and I suspect the developers would say I should be using Base. Well, I don't want to use Base: I want my data displayed spread-sheet style There is a solution: to insert non-breaking spaces in dates and after words like "true", but it would be nice if the problem could be fixed just once.

View 5 Replies View Related

OpenSUSE :: 11.2 & OpenOffice 3.2 \ Find It Necessary To Extract Specific Data From Received?

Oct 14, 2010

Elsewhere is my question about 11.3. I have had to abandon that and 11.3 as my RAM is too small. Now, for the first time in many years, I find it necessary to extract specific data from received .pdf files. According to OpenOffice, editing of these files is only possible from version 3.2. My concern is whether this later vesion will be compatible with 11.2.OpenOffice installed is 3.1.1.4-1.1.4-i586. The same question has been directed to their Forum.

View 9 Replies View Related

OpenSUSE Network :: Laptop Samba PDC User And Local User Access Their Own Data?

May 30, 2011

Take a physical user FRED. FRED is a linux user ( known by linux on his laptop ) FRED is a Samba user ( Known by samba on the samba pdc server ) When he logs locally (with username/password) on its standalone laptop (with no network), he is known as FRED:user. He access his data in /home/FRED/. When he logs through samba (with username/password) on the domain MY_DOM, he is known as MY_DOMFRED:MY_DOMdomain user. He access his data in /home/MY_DOM/FRED/. ) Is it possible that the human FRED has only one repository and have full access to its repository regardless of how it was connected. If yes, how to do it

2) If not, Is it possible that the human FRED has full access to /home/FRED/.............. and /home/MY_DOM/FRED/.

View 4 Replies View Related

Ubuntu Servers :: Access The Data In .fbd Data File

Feb 19, 2011

We purchased a new database system at work last October, ditching the old system because of a lack of support from the vendor. This is a retail Point of Sale and Backoffice database system. I am not sure what system the new one runs on, but the system we replaced was a Firebird data base. The reason I am posting is because we are now in need of the information contained in the old database which was not completely imported into the new system.

Basically the problem is this: The database in on a Windows XP system and I found a copy of SQL Manager Lite 2008 on the system, which after quite a bit of studying, I figured out how to extract the database into a removable file. I have this file (178MB) on a USB stick in a file called Backoffice.fbd.

My studying suggests to me that I can get into this database with MySQL. I have never used this and have no clue how to do this. All I want to be able to do get into the database and create tab deliminated spreadsheet files for each of the database sections (Customers, Repairs, Sales History, stock files, etc.) Is it possible to do this with Ubuntu and MySQL and if so, can expert suggest one or two things to get me started. While a guided tutorial would be nice because I am not an expert, I am willing to learn on my own if someone could point me in the right direction.

View 3 Replies View Related

OpenSUSE :: Does KMail Account Data - Such As Login Data / Names Of Pop / Smtp Servers

Oct 6, 2010

Where apart from ~/.kde4/share/apps/kmail does kmail keep account data, such as login data/names of pop/smtp servers? I wanted to install an entirely clean version of kmail, so I uninstalled/re-installed kmail via YAST. I manually deleted ~/.kde4/share/apps/kmail. After installing kmail I found that the account data of my Yahoo account were still listed in the kmail configuration panel. Shall I delete the Yahoo account within kmail prior to uninstalling the kmail package?

View 4 Replies View Related

Fedora :: OpenOffice - Fails To Start For One User?

Apr 13, 2010

on the risk of starting another OO thread I would like to share my problem to resolve it... (found this 'challenge' nowhere on the forum) installed openoffice apps on my F11 64-bit box through add/remove software until some time ago everything worked well for all users now with one specific user OO hangs upon startup when opening a file (only displaying splash screen, nothing further). this user is nowhere blocked intentionally

to resolve I did:tried other users, all works well (starting from menu, opening files in Nautilus by double-click) renamed ~/.openoffice.org to ~/.openoffice.org.bak so new prefs are created, but new attempt results the same (freeze upon start) copied ~/.openoffice.org from well-run user, but new attempt results the same (freeze upon start)

installed gnumeric as an alternative but I like to bring this to a happy ending.giving enough eyeballs the solution must be out here somewhere

View 2 Replies View Related

Fedora Security :: Cannot Execute OpenOffice With A Confined User In SELinux

Apr 11, 2011

When I confine a user myuser to the type user_u (or staff_u) with the SELinux instruction semanage login -d -s user_u myuser, this user cannot execute OpenOffice.

The error is :type=SYSCALL msg=audit(1302501686.474:8504): arch=40000003 syscall=192 success=no exit=-13 a0=0 a1=11bc60 a2=5 a3=802 items=0 ppid=12819 pid=12832 auid=4294967295 uid=505 gid=504 euid=505 suid=505 fsuid=505 egid=504 sgid=504 fsgid=504 tty=pts2 ses=4294967295 comm="soffice.bin" exe="/opt/openoffice.org3/program/soffice.bin"

[code]....

I suppose the problem occurs because I installed the rpm from the OpenOffice repository, not the standard OpenOffice included in FC13. However I prefer to use the rpm version, because of some bugs in the FC13 OpenOffice version. How can I create a policy to allow the execution of libicuuc and other OpenOffice libraries by my confined user ?

View 2 Replies View Related

Programming :: Java Application Compiled Successful, But No Data Showing?

Jun 11, 2009

I am currently taking a Java class and I am not understanding it very well. I have compiled the following program, but it will not give me any data back to where I input the employee name, hours, rate. Can you look it over and tell what I am missing? I have been working on this for about 7 hours now and I have been reading and researching and just can not seem to know what is missing.

public class Employee
{
public static void main( String args[] )

[code]...

View 4 Replies View Related

Ubuntu Servers :: User Quotas - Limit - One User Should Be Able To Use 1900 GB And The Other 600 GB

Oct 29, 2010

Im trying to limit the diskspace users on the system may consume, and i found quotas (im a total linux noob). But when i try to set it, no matter what i set it to the maximus is 2 GB. Now... i need quite a lot more than that. One user should be able to use 1900 GB and the other 600 GB. How can i fix this? Im using ubuntu server 10.04.

View 9 Replies View Related

General :: Add Java Plugin To User-mode Firefox ?

Sep 29, 2010

I have installed firefox to a user directory (version 3.6.10) /cache/app/firefox.

I have installed java jre1.6.0_21 to /cache/app/java/jre1.6.0_21

I have symlinked /cache/app/java/jre1.6.0_21/plugin/i386/ns7/libjavaplugin_oji.so to /cache/app/firefox/plugins/libjavaplugin_oji.so

So, in theory, when I start firefox the plugin should be listed in about:config - wrong. I have lots of other plugins working just fine, but java is not listed anywhere.

I ran strace -F ./firefox >/tmp/output.txt 2>&1 (the -F is necessary as firefox plugins are now loaded in a forked process). Firefox clearly finds my plugin:

It clearly looks like the plugin is being found, opened, and the first 512 bytes read and possibly memory mapped. So why doesn't it appear in the list of plugins?

One clue could be that there's another older plugin lying in the default directories (and I can't change this, I don't have root, hence running firefox in user mode).

Though surely firefox is smart enough to pick the latest one and use that? Is there a way of turning debugging ON during firefox start-up so I can find a debug message that explains why the latest JRE 1.6 plugin is being passed over?

View 1 Replies View Related

Ubuntu :: Moving The Opera User Data?

Apr 23, 2010

I was wondering if there is a program or just a simple copy and paste from somewhere that will allow me to move my favorites and other data from my opera on xp.

View 3 Replies View Related

Ubuntu :: Transfer Of Data From One User Account To Other?

Jul 8, 2010

How can I transfer data from one user account to the other? I wish to delete one of the accounts but before that I want to transfer all the data in that account to the other account so that my data is saved.

View 3 Replies View Related

Ubuntu Servers :: Set Up A Java Gaming Server?

Sep 18, 2010

I intend to develop a game using Java. I will need a dedicated server for running the server side code for clients to connect to.

For ease of development I was hoping to use an old PC sat next to my desktop to run as a server.

I have downloaded the 32 bit server platform (all the CPU will allow on this machine) and put it on a USB stick and can run it and it all works ok. When I get midway through the installation I get to a screen that asks me to 'Choose software to install', I was just wondering if there were some choices that I should make here. For instance I will be using MySQL, Java etc...

I am persisting on with an installation for the moment but I will be able to reinstall everything again if necessary.

View 7 Replies View Related

Ubuntu Servers :: INstaling Java Apt Get For It - Use Wget

Jan 18, 2011

i don't know if there is an apt-get for it or if i need to use wget

View 1 Replies View Related

Ubuntu Servers :: Installing JAVA Under Terminal?

Jan 21, 2011

I am trying to install the Sun Microsystems Java Runtime on my Ubuntu Server 10.10, but it is telling me that it is not available. I have researched online and it tells me that it is a part of the multiverse repository. I have not had very much success in activating this either.

View 1 Replies View Related

Ubuntu Servers :: Force Java Program To Use More CPU

Mar 23, 2011

I have ubunto 10_4 X86-64 (I use putty to connect)
installed apps
screen
mysql server-client
my java program
open jdk* 64bit
apanche2 (the web server stuff)
and its aVPS machine
Xeon 2.0 64bit 4 GB ram

How can I make (or force) my java program to use more then 1 core? I would like it to be using just 5 of the 6 that I have. I use a .sh to run it this is the code for it.
Code:
#!/bin/bash
cd "${0%/*}"; java -Xshare:auto -Xmx2662M -jar craft.jar

View 5 Replies View Related

Ubuntu Servers :: Java Is Not Running In Server 10.10?

May 13, 2011

I am the new user of linux and installing eclipse IDE in the ubuntu server10.10. I have followed the steps given in the links http://www.cyberciti.biz/faq/howto-u...igure-jdk-jre/ andttp://eclipse.dzone.com/articles/ho...-33-ubuntu-710. After installing sun-java6-bin, sun-java6-jre and sun-java6-jdk, java is not running in my ubuntu server10.10. and got error like this

$ java -version
Error: could not open '/usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/i386/jvm.cfg'
$ javac -version

[code].....

View 7 Replies View Related

Ubuntu :: Desktop User Deletes Www-data Files?

Dec 26, 2010

I have some developers with Desktop User accounts. How can I allow them to delete files owned by www-data which are created under their accounts (/home/username/public_html) by PHP scripts they are coding and testing.I tried to edit www-data user group and add the user as a member of it but this has no effect - the user still unable to delete these files only by creating another PHP script!

View 1 Replies View Related

Ubuntu :: Uninstall Software And Remove User Data?

Jan 12, 2011

I was making some tests and I could see that ubuntu software management systems doesn't delete user data when uninstalling applications, only the binary packages.

e.g. reinstalling Thunderbird won't delete the email accounts info.

View 8 Replies View Related

Ubuntu Networking :: Restarting DHCP With Www-data User?

Jul 21, 2011

I'm attempting to write a web service that works only on my LAN and is not accessible via the internet. I need to restart the DHCP service without granting full root access, but I'm having trouble using the [/etc/init.d/dhcp3-server restart] command. It gives back a failure message that reports nothing:

$ /etc/init.d/dhcp3-server restart
dhcpd self-test failed. Please fix the config file.
The error was:
$

Looking at the script itself, I found the command its trying to execute, and it came back with this:

$ /usr/sbin/dhcpd3 -t -cf /etc/dhcp3/dhcpd.conf
drop_privileges: could not set group id: Operation not permitted

So I went and changed the dhcp: and dhcpd: AND www-data: in /etc/group so that www-data (The apache user) was part of the group, and still the init.d script wouldn't run.

I would prefer to NOT give passwordless access to the www-data user as I do other web services on this machine, however, giving access to stop my DHCP server is a risk I'm willing to take.

how can I restart the DHCP with apache so I can apply changes?

View 2 Replies View Related

Ubuntu Security :: Get Data From Another User's Home Directory?

Aug 23, 2011

I had a student, and she has done some work on her account on my lab computer, but has left the country and is un-contactable.

I have full administrator privileges for this machine, and it is running Ubuntu LTS 10.04

She has a folder which was copied from a windows formatted external hard drive (Probably NTFS) onto her home partition on my machine.

I can open all of her files, except for those in this folder.

As I see it the problem is either something to do with the permissions of the files (coming from NTFS), or some kind of Ubuntu security that I am unaware of?

Here are my attempts to open it code...

View 2 Replies View Related

Ubuntu Servers :: Running Tomcat Using Java VM Option

May 31, 2010

I'm trying to get a Tomcat server running using the Java VM -server option on Ubuntu Karmic 9.10 (I'm using the official Karmic AMI on EC2: ami-bb709dd2)

I install Tomcat:
Code:
sudo apt-get -y install tomcat6

I set up a bit of configuration in /etc/default/tomcat6:
Code:
JAVA_OPTS="-Djava.awt.headless=true -Xms1024m -Xmx1024m -XX:PermSize=384m -XX:MaxPermSize=384m"

I can start Tomcat with no problems:
Code:
sudo /etc/init.d/tomcat6 restart

However, if I add the -server option into the JAVA_OPTS variable, like so:
Code:
JAVA_OPTS="-server -Djava.awt.headless=true -Xms1024m -Xmx1024m -XX:PermSize=384m -XX:MaxPermSize=384m"

I get this:
Code:
$ sudo /etc/init.d/tomcat6 restart
* Stopping Tomcat servlet engine tomcat6
...done.
* Starting Tomcat servlet engine tomcat6
Invalid option -server
Cannot parse command line arguments

How do I set the -server option correctly?

View 1 Replies View Related

Ubuntu Servers :: Install 32-bit Firefox 3.5.11 With Sun Java 1.6.0 On 64-bit Lucid 10.04?

Sep 9, 2010

Is there a proper way to install 32-bit Firefox 3.5.11 with Sun Java 1.6.0 on 64-bit Lucid 10.04 Ubuntu? I want to run VMWare guest on Lucid and 64-bit Firefox 3.6.9 has issue with VMware.

View 3 Replies View Related

Ubuntu :: Backup Software That Backs Up Applications And User Data?

Oct 12, 2010

I have searched and searched for answers to this question, but I can't find what I'm searching for anywhere. At least with the search terms I'm using.So, my question is, is there a backup software for Linux that backs up not only a user's home folder, etc, but also the user's applications, and its associated data.

I am about to upgrade my mother's computer to Lucid, but I don't want to do that until I can find a backup solution that will ensure she doesn't lose any of her application data. She has a lot of apps on her netbook, so just finding out where each individual app stores its data and backing it up is kind of out of the question. Unless every app that the end-user uses (that isn't run as root, obviously) stores its data in the home folder, then it would be easier.Honestly, I use a Mac and I guess I'm just used to the simplicity of Time Machine, which certainly backs up applications, application data, user data, and even extra executables in all the /bin folders (which Macs don't typically use to store most applications). I've heard TimeVault is like Time Machine, but when I tried to use it on her computer, it wouldn't work because it wasn't compatible with the version of Ubuntu that was (and still is) on her computer.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved