Hi,

On 01/29/2015 06:18 PM, Sean Pohl wrote:
My problem is that the ownCloud web page does not seem to start even though
Apache and mariadb are both able to start.

This is a fresh install and I have started to run into this problem.  I was
able to install ownCloud on this same configuration last year (2014) and I was
able to get it to work.  So looking form some advice of what I may have missed
on this install or if something changed in one of the configuration files since
then.
This is my set-up:
   - ownCloud Administrators Manual (Release 7.0 from August 29th, 2014)
   - CentOS 7 with all current OS updates installed.
   - SELinux is in "Permissive Mode"; so it is *NOT* enforcing any rules, only
     logging.
   - Using the openSUSE Build Service option from the ownCloud Administrators
     Manual and have added the repo for CentOS 7 and installed "owncloud" from
     there.

When I boot or restart the httpd & mariadb services I get this error message
from Apache:

Error message from /var/log/httpd/error_log:
[Wed Jan 28 14:48:17.206407 2015] [:error] [pid 3273] [client ::1:37298] PHP 
Fatal error:  Class 'PDO' not found in 
/var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php
 on line 148

I guess php5-mysql or php-mysql extension is missing.
Please refer to dependencies list [1] and compare it with your php -m output.

[1] http://doc.owncloud.org/server/8.0/admin_manual/installation/source_installation.html


Victor


I am using the stock DriverManager.php file that came with the installation
package and I have not made any modifications so I though I would include the
sha1sum of that file if it helps in determining if newer files have any changes:
        189342d4457174e165a0ff16b9c6d4aa09538b0a

When I go to that DriverManager.php file and locate the block of code around
line 148 this is what it says:

[CODE]
122         // check for existing pdo object
123         if (isset($params['pdo']) && ! $params['pdo'] instanceof \PDO) {
124             throw DBALException::invalidPdoInstance();
125         } else if (isset($params['pdo'])) {
126             $params['pdo']->setAttribute(\PDO::ATTR_ERRMODE, 
\PDO::ERRMODE_EXCEPTION);
127             $params['driver'] = 'pdo_' . 
$params['pdo']->getAttribute(\PDO::ATTR_DRIVER_NAME);
128         } else {
129             self::_checkParams($params);
130         }
131         if (isset($params['driverClass'])) {
132             $className = $params['driverClass'];
133         } else {
134             $className = self::$_driverMap[$params['driver']];
135         }
136
137         $driver = new $className();
138
139         $wrapperClass = 'Doctrine\DBAL\Connection';
140         if (isset($params['wrapperClass'])) {
141             if (is_subclass_of($params['wrapperClass'], $wrapperClass)) {
142                $wrapperClass = $params['wrapperClass'];
143             } else {
144                 throw 
DBALException::invalidWrapperClass($params['wrapperClass']);
145             }
146         }
147
148         return new $wrapperClass($params, $driver, $config, $eventManager);
[/CODE]


Searching on the web it appears that PDO in php is related to interaction with
databases "Represents a connection between PHP and a database server."  I
installed mariadb and mariadb-server as well as Apache (httpd);  Both are
started and can be restarted via systemd without a problem.  I know that httpd
is running because I can get the standard CentOS error/welcome message on the
root of the web server, but when I try to go to http://localhost/owncloud it
does nothing.

Because it seems like PDOs interact with databases, I checked my log for
mariadb from /var/log/mariadb/mariadb.log and didn't see anything that looks
like a problem, but here is the log:

150129 07:52:10 mysqld_safe Starting mysqld daemon with databases from 
/var/lib/mysql
150129  7:52:11 InnoDB: The InnoDB memory heap is disabled
150129  7:52:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150129  7:52:11 InnoDB: Compressed tables use zlib 1.2.7
150129  7:52:11 InnoDB: Using Linux native AIO
150129  7:52:11 InnoDB: Initializing buffer pool, size = 128.0M
150129  7:52:11 InnoDB: Completed initialization of buffer pool
150129  7:52:11 InnoDB: highest supported file format is Barracuda.
150129  7:52:11  InnoDB: Waiting for the background threads to start
150129  7:52:12 Percona XtraDB (http://www.percona.com) 5.5.40-MariaDB-36.1 
started; log sequence number 1597945
150129  7:52:12 [Note] Plugin 'FEEDBACK' is disabled.
150129  7:52:12 [Note] Server socket created on IP: '0.0.0.0'.
150129  7:52:12 [Note] Event Scheduler: Loaded 0 events
150129  7:52:12 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.40-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  
MariaDB Server
150129  8:00:27 [Note] /usr/libexec/mysqld: Normal shutdown

150129  8:00:27 [Note] Event Scheduler: Purging the queue. 0 events
150129  8:00:27  InnoDB: Starting shutdown...
150129  8:00:28  InnoDB: Shutdown completed; log sequence number 1597945
150129  8:00:28 [Note] /usr/libexec/mysqld: Shutdown complete

150129 08:00:28 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid 
ended
150129 08:01:02 mysqld_safe Starting mysqld daemon with databases from 
/var/lib/mysql
150129  8:01:02 InnoDB: The InnoDB memory heap is disabled
150129  8:01:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150129  8:01:02 InnoDB: Compressed tables use zlib 1.2.7
150129  8:01:02 InnoDB: Using Linux native AIO
150129  8:01:02 InnoDB: Initializing buffer pool, size = 128.0M
150129  8:01:02 InnoDB: Completed initialization of buffer pool
150129  8:01:02 InnoDB: highest supported file format is Barracuda.
150129  8:01:03  InnoDB: Waiting for the background threads to start
150129  8:01:04 Percona XtraDB (http://www.percona.com) 5.5.40-MariaDB-36.1 
started; log sequence number 1597945
150129  8:01:04 [Note] Plugin 'FEEDBACK' is disabled.
150129  8:01:04 [Note] Server socket created on IP: '0.0.0.0'.
150129  8:01:04 [Note] Event Scheduler: Loaded 0 events
150129  8:01:04 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.40-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  
MariaDB Server


Any advice what I could check for next?

Many thanks!
Sean
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to