Installation On Ubuntu 12.04 LTS Missing PHP Packages

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
newcloud
Newbie
Posts: 3
Joined: Tue May 01, 2012 2:29 am

Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby newcloud » Tue May 01, 2012 2:40 am

Environment: Virtual Sun Virtual Box
Server: Ubuntu 12.04
Database: SQL-Lite
Client: None so far
OC-Version: 3.0.2 from tar.gz
PHP-Version: See output of php --version below

PHP 5.3.10-1ubuntu3 with Suhosin-Patch (cli) (built: Apr 11 2012 17:25:33)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies


So the problem that I am having is that I want to install owncloud on Ubuntu 12.04 LTS (downloaded yesterday) and when I run

sudo apt-get install php5 php5-json php-xml php-mbstring php5-zip php5-gd

I get the following in return.

Code: Select all

Note, selecting 'php5-common' instead of 'php5-json'
E: Unable to locate package php-xml
E: Unable to locate package php-mbstring
E: Unable to locate package php5-zip


and when I run apt-get install php5-sqlite curl libcurl3 libcurl3-dev php5-curl php-pdo

Code: Select all

Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
E: Unable to locate package php-pdo


All I want to do is play around with it and take her for a test drive so I was wondering obvisouly ubuntu 12.04 just came out but is there a way to install the missing packages without going through the new ubuntu 12.04 lts repositories?

Thanks!

oulmanpe
Newbie
Posts: 1
Joined: Tue May 01, 2012 5:57 pm

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby oulmanpe » Tue May 01, 2012 5:58 pm

Same issue here. Any resolution to this problem?

newcloud
Newbie
Posts: 3
Joined: Tue May 01, 2012 2:29 am

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby newcloud » Wed May 02, 2012 8:32 am

No unfortunately I have not found anything to get me past this problem.

I did find a very loosely related bug report on the PHP Group bugzilla site about a potential compilation issue for php-zip on Ubuntu 12.04 LTS. However from the details the user provided about the issue I could not confirm that it was related to the operating system and not to a third party library for the users specific project.


Hopefully someone will chime in. It seems to me that I will have to redo my setup using Ubuntu 11.10 to test things out.

FabianN
Beginner
Posts: 10
Joined: Tue May 01, 2012 11:27 pm

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby FabianN » Wed May 02, 2012 8:48 am

I am running a test-install of 12.04 and I just ran apt-get install owncloud, said no to the 'continue (y/n)', copied the list of other packages it needed to install and removed owncloud from that list, installed said packages, and then installed owncloud from git, and it worked without any issues. I've yet to do heavy testing with the functionality of owncloud yet, but it installed and first looks are all good.

newcloud
Newbie
Posts: 3
Joined: Tue May 01, 2012 2:29 am

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby newcloud » Wed May 02, 2012 9:14 am

Ok. I didn't know (or read on the install directions page) that you could just run apt-get install owncloud. When you did this were you able to confirm that the missing packages were installed? ie php-zip php-pdo

freshspam
Newbie
Posts: 4
Joined: Fri Apr 27, 2012 6:09 am

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby freshspam » Wed May 02, 2012 10:23 am

Try this
apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
and 'php5-ldap' if you want to use LDAP user backend app
it works fine for me

hazelnut
Newbie
Posts: 1
Joined: Sat May 12, 2012 11:40 am

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby hazelnut » Sat May 12, 2012 12:18 pm

Same problem here .. but on Debian Squeeze 6.0.4.

Code: Select all

srv:~# apt-get install php5 php5-json php-xml php-mbstring php5-zip php5-gd
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Hinweis: »php5-common« wird an Stelle von »php5-json« gewählt
E: Paket php-xml kann nicht gefunden werden
E: Paket php-mbstring kann nicht gefunden werden
E: Paket php5-zip kann nicht gefunden werden

dirkk0
Beginner
Posts: 12
Joined: Wed May 16, 2012 6:15 pm

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby dirkk0 » Wed May 16, 2012 6:53 pm

Thanks to user 'freshspam': this works for me to. Here's all I needed to do, from a fresh Ubuntu 12.04:

Code: Select all

apt-get update
apt-get upgrade

apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
apt-get install sqlite

wget http://owncloud.org/releases/owncloud-3.0.3.tar.bz2
tar -xjf owncloud-3.0.3.tar.bz2
cp -r owncloud /var/www
chown -R www-data:www-data /var/www

service apache2 restart

master_control
Newbie
Posts: 2
Joined: Thu May 17, 2012 3:53 am

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby master_control » Thu May 17, 2012 4:22 am

Thanks to users freshspam and dirkk0 for their contributions. However when I follow the exact steps outlined by dirkk0 I still get a highly disfunctional owncloud installation with the following problems:
- Newly added files do not appear until the page is refreshed.
- Cannot add new users.
- Text editor does not appear at all.
- Calendar does not work. Clicking on the calendar makes a second navigation bar appear on the left and does not allow you to add events.

I'm guessing these are still due to some missing php packages, or the wrong versions.
Enabling .htaccess and a2enmod rewrite, and a2enmod headers did not alter the behavior.

I am using Ubuntu 12.04 server x86, the test script from snapr@gmx.org passes fine except for:
php.ini:memory_limit:Upload limited in memory_limit (128M)

dirkk0
Beginner
Posts: 12
Joined: Wed May 16, 2012 6:15 pm

Re: Installation On Ubuntu 12.04 LTS Missing PHP Packages

Postby dirkk0 » Thu May 17, 2012 12:32 pm

I just re-checked the script, and I can create users here, and the calendar works fine for me. The texteditor doesn't work here, too. Also the pages seem to run into timeouts.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: No registered users and 1 guest