xoops forums

Userino

Just popping in
Posted on: 2/14 20:22
Userino
Userino (Show more)
Just popping in
Posts: 3
Since: 2/14 20:09
#1

Xoops 2.5.8.1 Installing issue

Hi,

When installing, in the save configuration part (Step 7/14), i get the following error.

"Could not copy the distribution file to secure.php"

I'm running
Apache 2.4.6
PHP 5.4.16
OpenSSl 1.0.2k
5.5.60 mariaDB
Virtual Machine on Centos

Extract from the error log:

Quote:
PHP Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /var/www/html/xoops/install/class/dbmanager.php on line 30, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Warning: include_once(/var/www/html/xoops/class/database/XOOPS_DB_TYPEdatabase.php): failed to open stream: No such file or directory in /var/www/html/xoops/install/class/dbmanager.php on line 30, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Warning: include_once(): Failed opening '/var/www/html/xoops/class/database/XOOPS_DB_TYPEdatabase.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/xoops/install/class/dbmanager.php on line 30, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /var/www/html/xoops/class/database/databasefactory.php on line 87, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /var/www/html/xoops/class/database/databasefactory.php on line 97, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Warning: notrace:Failed to load database of type: XOOPS_DB_TYPE in file: /var/www/html/xoops/class/database/databasefactory.php at line 97 in /var/www/html/xoops/class/database/databasefactory.php on line 97, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Fatal error: Call to a member function setPrefix() on a non-object in /var/www/html/xoops/install/class/dbmanager.php on line 52, referer: http://10.6.28.68/xoops/install/page_configsave.php PHP Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /var/www/html/xoops/install/class/dbmanager.php on line 30 PHP Warning: include_once(/var/www/html/xoops/class/database/XOOPS_DB_TYPEdatabase.php): failed to open stream: No such file or directory in /var/www/html/xoops/install/class/dbmanager.php on line 30 PHP Warning: include_once(): Failed opening '/var/www/html/xoops/class/database/XOOPS_DB_TYPEdatabase.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/xoops/install/class/dbmanager.php on line 30 PHP Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /var/www/html/xoops/class/database/databasefactory.php on line 87 PHP Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /var/www/html/xoops/class/database/databasefactory.php on line 97 PHP Warning: notrace:Failed to load database of type: XOOPS_DB_TYPE in file: /var/www/html/xoops/class/database/databasefactory.php at line 97 in /var/www/html/xoops/class/database/databasefactory.php on line 97 PHP Fatal error: Call to a member function setPrefix() on a non-object in /var/www/html/xoops/install/class/dbmanager.php on line 52

goffy

Quite a regular
Posted on: 2/14 22:06
goffy
goffy (Show more)
Quite a regular
Posts: 337
Since: 2010/12/27
#2

Re: Xoops 2.5.8.1 Installing issue

hi

if the secure.php file writeable?

geekwright

Quite a regular
Posted on: 2/15 2:50
geekwright
geekwright (Show more)
Quite a regular
Posts: 255
Since: 2010/10/15
#3

Re: Xoops 2.5.8.1 Installing issue

Most likely, the user (or group) the webserver's PHP processes run under can't create a file in and/or write to the the xoops_data directory.

IIRC, in CentOS it is the "apache" user that needs to have the permissions. Under debian based distros it is the www-data user.

Userino

Just popping in
Posted on: 2/15 12:46
Userino
Userino (Show more)
Just popping in
Posts: 3
Since: 2/14 20:09
#4

Re: Xoops 2.5.8.1 Installing issue

Hi,

The installation did not generate the secure.php file, i have to take it from the install folder.

Apache has permission over the Xoops Folder.

geekwright

Quite a regular
Posted on: 2/15 19:52
geekwright
geekwright (Show more)
Quite a regular
Posts: 255
Since: 2010/10/15
#5

Re: Xoops 2.5.8.1 Installing issue

Quote:

Userino wrote:
...
Apache has permission over the Xoops Folder.


Only partially. With SELinux, you'll need to change the context for the web directories, too. Here is an article with some details:

https://www.svnlabs.com/blogs/centos-7 ... p-writeaccess-permission/

Userino

Just popping in
Posted on: 2/21 14:39
Userino
Userino (Show more)
Just popping in
Posts: 3
Since: 2/14 20:09
#6

Re: Xoops 2.5.8.1 Installing issue

You where absolutely right.

Thanks for the help.