Install omeka s

Great: Thank you.
Now I get one line in the browser, which still doesn’t offer much, but perhaps you know what it means;

Parse error: syntax error, unexpected ‘.’ in /var/www/omeka-s/application/src/I18n/Translator.php on line 32

I also copied the line from the Translator.php file, line 32.

32 $translation = sprintf($translation, …$message->getArgs());

Many thanks for suggestions.

I have the same problem, I change the system, apache is ok, php is ok, driver for php ok but the error continued…

Omeka S encountered an error

Zend\ServiceManager\Exception\ServiceNotCreatedException
An exception was raised while creating “Omeka\ModuleManager”; no instance returned

Details:

exception ‘PDOException’ with message ‘could not find driver’ in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Stack trace:

These is the address 209.177.156.132/

@juliewood:

Your problem looks to be that you have a version of PHP that’s not recent enough for Omeka S. It requires PHP 5.6 or newer. We may be able to do something to make this error more friendly, but it’s telling you there’s a syntax error, but that line uses a syntax that was added in PHP 5.6. The most recent LTS version of Ubuntu, 16.04, has a recent enough PHP version.

@gusu:

On the other hand, your problem seems to be that you don’t have the PDO mysql driver installed on your system. You have PDO itself, but not pdo_mysql. Depending on your distribution it should be easy to install that extension, usually just by installing whatever package provides mysql support for PHP.

Excellent. Thank you for that discovery. I am running php 5.5.9. . . . so close. Will update. Cheers!

root@tehuelche:/etc/php/5.6/cli# php -v
PHP 5.6.28-1+deb.sury.org~trusty+1 (cli)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies

I have

Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-47-generic x86_64)

@gusu Your error is a little different than Julie’s. I tried to clarify that. You’d get more information about yours by running php -m rather than php -v

We already know you have the right version of PHP, you just don’t have the right extensions, and php -m lists those. The one you’re missing is pdo_mysql.

root@tehuelche:/etc/php/5.6/cli/conf.d# more 10-pdo.ini
; configuration for php common module
; priority=10
extension=pdo.so
root@tehuelche:/etc/php/5.6/cli/conf.d#

I need so , pdo_mysql ?

root@tehuelche:/etc/php/5.6/cli/conf.d# php -m rather than php -v
[PHP Modules]
calendar
Core
ctype
date
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mhash
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Do you know how install pdo_mysql in ubuntu 16.04?

I suspect you need to install the package php-mysql .

root@tehuelche:/etc/php/5.6/cli/conf.d# apt-get install php-mysql
Reading package lists… Done
Building dependency tree
Reading state information… Done
php-mysql is already the newest version (1:7.0+45+deb.sury.org~trusty+1).
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
root@tehuelche:/etc/php/5.6/cli/conf.d#

root@tehuelche:/etc/php/5.6/cli/conf.d# php -r ‘phpinfo();’ | grep -i pdo
/etc/php/5.6/cli/conf.d/10-pdo.ini,
PDO
PDO support => enabled
PDO drivers =>

Actually there’s something odd here.

The normal version of PHP in 16.04 is 7. That’s what’s being reported when you ran the command to instal php-mysql, it said version 7.0 is already installed.

But, you’re showing that you’re using PHP 5.6 instead. It looks like you might have added a PPA or other repository to specifically install PHP 5.6 instead of 7?

I think you either need to switch over to actually using PHP 7, where you do have the MySQL driver installed, or you need to install the MySQL driver for your 5.6 install if you want to keep using that one. I think you’ve got a somewhat nonstandard setup, so I’m not sure how to tell you to go about doing that in specific detail.

root@tehuelche:/etc/php/5.6/cli/conf.d# dpkg -l php*mysql
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±==============-============-============-=================================
ii php-mysql 1:7.0+45+deb all MySQL module for PHP [default]
un php-pdo-mysql (no description available)
rc php5-mysql 5.5.9+dfsg-1 amd64 MySQL module for php5
ii php7.0-mysql 7.0.13-1+deb amd64 MySQL module for PHP
un php7.0-pdo-mys (no description available)

now

At this stage I would simply recommend “turning it off and on again” by doing:

sudo apt-get purge php-common php5-common

followed by

sudo rm -r /etc/php

And then reinstalling PHP 7.0 and mysql modules:

sudo apt-get install libapache2-mod-php php-mysql

You may also try just purging and reinstalling mysql modules, first removing the package:

sudo apt-get purge php7.0-mysql

And the installing them again:

sudo apt-get install php-mysql

In both cases it’s important to use apt-get purge instead of apt-get remove to delete any existing configuration files and package states.

The least destructive way would be trying to re-enable mysql modules using phpenmod command:

sudo phpenmod mysqlnd pdo_mysql

if you see the site now

the problem was but

209.177.156.132

now I see another problem???

root@tehuelche:/var/www/html# php -m rather than php -v
[PHP Modules]
calendar
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Your latest one looks like a .htaccess problem.

The same as with Omeka Classic, make sure you have the .htaccess file sitting in your Omeka S directory, make sure that Apache is configured to respect .htaccess files with AllowOverride All in Apache’s configuration file, and make sure you have mod_rewrite enabled.

All of this is Apache configuration, not PHP.