Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download Elxis CMS: Elxis 4.0 Nautilus
 
Pages: [1]
  Print  
Author Topic: "solved" PHP WARNING after instalation  (Read 5444 times)
Blacksoll
Newbie
*
Offline Offline

Posts: 40


« on: April 14, 2008, 06:45:08 »

Code:
PHP: database(/home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/../configuration.php): failed to open stream: No such file or directory
uri: index.php
path:
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): /home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/database.php, line 165

   
Code:
PHP: database(): Failed opening '/home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/../configuration.php' for inclusion (include_path='.:/usr/share/pear')
uri: index.php
path:
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): /home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/database.php, line 165

   
Code:
PHP: database(/home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/../offline.php): failed to open stream: No such file or directory
uri: index.php
path:
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): /home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/database.php, line 166

Code:
PHP: database(): Failed opening '/home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/../offline.php' for inclusion (include_path='.:/usr/share/pear')
uri: index.php
path:
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): /home/httpd/vhosts/mysite.gr/httpdocs/demo/includes/Core/database.php, line 166

« Last Edit: April 14, 2008, 21:01:58 by blacksoll » Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #1 on: April 14, 2008, 06:57:46 »

When you installed Elxis you should create a configuration.php file having as content the data it show you in a text area. Now there is no such file and Elxis can not initialize.
Logged

Blacksoll
Newbie
*
Offline Offline

Posts: 40


« Reply #2 on: April 14, 2008, 08:12:35 »

But there is a configuration.php file and an offline.php...........

I have opened them in text editor and i cant find a mistake.
Logged
rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #3 on: April 14, 2008, 08:51:45 »

But there is a configuration.php file and an offline.php...........

Maybe your looking at configuration.php-dist   Huh
Logged

Blacksoll
Newbie
*
Offline Offline

Posts: 40


« Reply #4 on: April 14, 2008, 08:55:21 »

No,i have double tsek it..........
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #5 on: April 14, 2008, 11:16:18 »

If there is a configuration.php file then:
1. make sure you have deleted the installation/ folder
2. Open the configuration.php with a text editor and check these parameters if they have been set correctly:

$mosConfig_absolute_path = '/home/httpd/vhosts/mysite.gr/httpdocs/demo';
$mosConfig_cachepath = '/home/httpd/vhosts/mysite.gr/httpdocs/demo/cache';
$mosConfig_live_site = 'http://www.mysite.gr/demo';


is your domain mysite.gr?
Logged

Ivan Trebješanin
Elxis Team
Hero Member
*****
Offline Offline

Posts: 1646



WWW
« Reply #6 on: April 14, 2008, 12:14:03 »

One more thing... check your httpdocs directory permissions
Logged

I've got a snap in my finger...
Got rhythm in my walk...
Blacksoll
Newbie
*
Offline Offline

Posts: 40


« Reply #7 on: April 14, 2008, 17:05:27 »

configuration.php checked and o.k.

Permisions all set to 777.

I have tryed a fresh install at burnertech.eu but the same  problem again....

Here is my configuration.php file :



Code:
<?php 
$mosConfig_offline 
'0';
$mosConfig_host 'localhost';
$mosConfig_user '******';
$mosConfig_password '*******';
$mosConfig_db 'elxis';
$mosConfig_dbprefix 'elx_';
$mosConfig_dbtype 'postgres7';
$mosConfig_lang 'english';
$mosConfig_pub_langs 'english,greek';
$mosConfig_alang =  'english';
$mosConfig_absolute_path '/home/httpd/vhosts/burnertech.eu/httpdocs';
$mosConfig_live_site 'http://burnertech.eu';
$mosConfig_sitename 'BurnerTech';
$mosConfig_shownoauth '0';
$mosConfig_useractivation '1';
$mosConfig_uniquemail '1';
$mosConfig_offline_message 'Αυτός ο ιστότοπος είναι προσωρινά εκτός για λόγους συντήρησης.<br />Παρακαλούμε δοκιμάστε ξανά σε λίγο.';
$mosConfig_error_message 'Αυτός ο ιστότοπος είναι προσωρινά μη διαθέσιμος.<br />Παρακαλούμε ειδοποιήστε το διαχειριστή του συστήματος';
$mosConfig_debug '0';
$mosConfig_lifetime '900';
$mosConfig_MetaDesc 'elxis - Open Source CMS';
$mosConfig_MetaKeys 'elxis cms, open source, multilingual, free cms, content managment, rtl compatible, web standards, elxis.org, adodb, xhtml valid';
$mosConfig_MetaTitle '1';
$mosConfig_MetaAuthor '1';
$mosConfig_locale '';
$mosConfig_offset '0';
$mosConfig_hideAuthor '0';
$mosConfig_hideCreateDate '0';
$mosConfig_hideModifyDate '0';
$mosConfig_hideRtf '0';
$mosConfig_hidePdf '0';
$mosConfig_hidePrint '0';
$mosConfig_hideEmail '0';
$mosConfig_enable_log_items '0';
$mosConfig_enable_log_searches '0';
$mosConfig_enable_stats '0';
$mosConfig_sef '0';
$mosConfig_vote '0';
$mosConfig_gzip '0';
$mosConfig_multipage_toc '1';
$mosConfig_allowUserRegistration '1';
$mosConfig_link_titles '0';
$mosConfig_error_reporting = -1;
$mosConfig_register_globals 0;
$mosConfig_list_limit '20';
$mosConfig_caching '0';
$mosConfig_cachepath '/home/httpd/vhosts/burnertech.eu/httpdocs/cache';
$mosConfig_cachetime '1200';
$mosConfig_mailer 'mail';
$mosConfig_mailfrom 'info@burnertech.gr';
$mosConfig_fromname 'BurnerTech';
$mosConfig_sendmail '/usr/sbin/sendmail';
$mosConfig_smtpauth '0';
$mosConfig_smtpuser '';
$mosConfig_smtppass '';
$mosConfig_smtphost 'localhost';
$mosConfig_back_button '0';
$mosConfig_item_navigation '1';
$mosConfig_secret 'k0APEvxHRbVY6KhK';
$mosConfig_pagetitles '1';
$mosConfig_readmore '1';
$mosConfig_hits '1';
$mosConfig_icons '1';
$mosConfig_favicon 'favicon.ico';
$mosConfig_fileperms '';
$mosConfig_dirperms '';
$mosConfig_helpurl '';
$mosConfig_ftp '0';
$mosConfig_ftp_host '';
$mosConfig_ftp_user '';
$mosConfig_ftp_pass '';
$mosConfig_ftp_port '21';
$mosConfig_ftp_root '';
$mosConfig_access '1';
$mosConfig_captcha '1';
?>
« Last Edit: April 14, 2008, 17:35:10 by blacksoll » Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #8 on: April 14, 2008, 18:16:17 »

The problem it shows you it is irrelevant with the real problem. The real problem is that Elxis can not login to your database. Please check again if the parameters bellow are correct:


$mosConfig_host = 'localhost';
$mosConfig_user = '******';
$mosConfig_password = '*******';
$mosConfig_db = 'elxis';
$mosConfig_dbtype = 'postgres7';


If you use strange characters in username or password this might be the problem (although you successfully installed elxis...)
« Last Edit: April 14, 2008, 18:18:04 by datahell » Logged

Blacksoll
Newbie
*
Offline Offline

Posts: 40


« Reply #9 on: April 14, 2008, 19:31:51 »

Again everything checked.....No strange characters....just numbers


I have checked the database and all tables where there.So why not connect....They where created with the same parameters.

Even thought my phpPgAdmin,says : PostgreSQL 7.3.9-RH running on :5432
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #10 on: April 14, 2008, 19:33:35 »

If you wish send me username/password/host for your FTP to check it by myself. I can not help you more from here, needs investigation and debug.
Logged

Blacksoll
Newbie
*
Offline Offline

Posts: 40


« Reply #11 on: April 14, 2008, 19:46:05 »

If you wish send me username/password/host for your FTP to check it by myself. I can not help you more from here, needs investigation and debug.



I have sent you a pm...Thanks !
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #12 on: April 14, 2008, 20:39:19 »

Check your messages!

For all the others
The problem was that postgreSQL database reached the maximum number of connections with error message:

Unable to connect to PostgreSQL server: FATAL: Non-superuser connection limit exceeded

Maybe this is because of a high loaded server or a server misconfiguration. Some times it gets connected to the database, some others not, depending to the number of the other pg connections on the server.

Solution: increase pg max connections limit or use a super-user pg account (not recommended) or use mysql or change host.
« Last Edit: April 14, 2008, 20:42:49 by datahell » Logged

Blacksoll
Newbie
*
Offline Offline

Posts: 40


« Reply #13 on: April 14, 2008, 21:01:20 »

Thanks....You gyes here Rock.....

Keep up the good work  Wink

Long live ELXIS and i hope to use it for  a long,long time.....
Logged
Pages: [1]
  Print  
 
Jump to: