Install omeka s

@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.

ok php was!!!
now the problem is .htaccess

I see and again write
thanks
gus
koluel.org

is ok now
209.177.156.132

thanks very much

Good to hear.

I’m going to close this post: it already has two different people’s slightly different issues on it together and I don’t want to have it grow out of control in the future and mess up notifications and things like that.

Obviously feel free to post new topics if you have further problems or questions.