1
Userino
Xoops 2.5.8.1 Installing issue
  • 2019/2/14 20:22

  • Userino

  • Just popping in

  • Posts: 3

  • Since: 2019/2/14


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

2
goffy
Re: Xoops 2.5.8.1 Installing issue
  • 2019/2/14 22:06

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

if the secure.php file writeable?

3
geekwright
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.

4
Userino
Re: Xoops 2.5.8.1 Installing issue
  • 2019/2/15 12:46

  • Userino

  • Just popping in

  • Posts: 3

  • Since: 2019/2/14


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.

5
geekwright
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-selinux-apache-php-writeaccess-permission/

6
Userino
Re: Xoops 2.5.8.1 Installing issue
  • 2019/2/21 14:39

  • Userino

  • Just popping in

  • Posts: 3

  • Since: 2019/2/14


You where absolutely right.

Thanks for the help.

Login

Who's Online

202 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits