Elxis CMS Forum

Support => Installation => Topic started by: Blacksoll on April 14, 2008, 07:45:08

Title: "solved" PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 07:45:08
Code: [Select]
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: [Select]
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: [Select]
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: [Select]
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

Title: Re: PHP WARNING after instalation
Post by: datahell on April 14, 2008, 07: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.
Title: Re: PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 09: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.
Title: Re: PHP WARNING after instalation
Post by: rentasite on April 14, 2008, 09:51:45
But there is a configuration.php file and an offline.php...........

Maybe your looking at configuration.php-dist   ???
Title: Re: PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 09:55:21
No,i have double tsek it..........
Title: Re: PHP WARNING after instalation
Post by: datahell on April 14, 2008, 12: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?
Title: Re: PHP WARNING after instalation
Post by: Ivan Trebješanin on April 14, 2008, 13:14:03
One more thing... check your httpdocs directory permissions
Title: Re: PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 18: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: [Select]
<?php 
$mosConfig_offline 
= &#39;0&#39;;
$mosConfig_host = &#39;localhost&#39;;
$mosConfig_user = &#39;******&#39;;
$mosConfig_password = &#39;*******&#39;;
$mosConfig_db = &#39;elxis&#39;;
$mosConfig_dbprefix = &#39;elx_&#39;;
$mosConfig_dbtype = &#39;postgres7&#39;;
$mosConfig_lang = &#39;english&#39;;
$mosConfig_pub_langs = &#39;english,greek&#39;;
$mosConfig_alang =  &#39;english&#39;;
$mosConfig_absolute_path = &#39;/home/httpd/vhosts/burnertech.eu/httpdocs&#39;;
$mosConfig_live_site = &#39;http://burnertech.eu&#39;;
$mosConfig_sitename = &#39;BurnerTech&#39;;
$mosConfig_shownoauth = &#39;0&#39;;
$mosConfig_useractivation = &#39;1&#39;;
$mosConfig_uniquemail = &#39;1&#39;;
$mosConfig_offline_message = &#39;Αυτός ο ιστότοπος είναι προσωρινά εκτός για λόγους συντήρησης.<br />Παρακαλούμε δοκιμάστε ξανά σε λίγο.&#39;;
$mosConfig_error_message = &#39;Αυτός ο ιστότοπος είναι προσωρινά μη διαθέσιμος.<br />Παρακαλούμε ειδοποιήστε το διαχειριστή του συστήματος&#39;;
$mosConfig_debug = &#39;0&#39;;
$mosConfig_lifetime = &#39;900&#39;;
$mosConfig_MetaDesc = &#39;elxis - Open Source CMS&#39;;
$mosConfig_MetaKeys = &#39;elxis cms, open source, multilingual, free cms, content managment, rtl compatible, web standards, elxis.org, adodb, xhtml valid&#39;;
$mosConfig_MetaTitle = &#39;1&#39;;
$mosConfig_MetaAuthor = &#39;1&#39;;
$mosConfig_locale = &#39;&#39;;
$mosConfig_offset = &#39;0&#39;;
$mosConfig_hideAuthor = &#39;0&#39;;
$mosConfig_hideCreateDate = &#39;0&#39;;
$mosConfig_hideModifyDate = &#39;0&#39;;
$mosConfig_hideRtf = &#39;0&#39;;
$mosConfig_hidePdf = &#39;0&#39;;
$mosConfig_hidePrint = &#39;0&#39;;
$mosConfig_hideEmail = &#39;0&#39;;
$mosConfig_enable_log_items = &#39;0&#39;;
$mosConfig_enable_log_searches = &#39;0&#39;;
$mosConfig_enable_stats = &#39;0&#39;;
$mosConfig_sef = &#39;0&#39;;
$mosConfig_vote = &#39;0&#39;;
$mosConfig_gzip = &#39;0&#39;;
$mosConfig_multipage_toc = &#39;1&#39;;
$mosConfig_allowUserRegistration = &#39;1&#39;;
$mosConfig_link_titles = &#39;0&#39;;
$mosConfig_error_reporting = -1;
$mosConfig_register_globals 0;
$mosConfig_list_limit = &#39;20&#39;;
$mosConfig_caching = &#39;0&#39;;
$mosConfig_cachepath = &#39;/home/httpd/vhosts/burnertech.eu/httpdocs/cache&#39;;
$mosConfig_cachetime = &#39;1200&#39;;
$mosConfig_mailer = &#39;mail&#39;;
$mosConfig_mailfrom = &#39;info@burnertech.gr&#39;;
$mosConfig_fromname = &#39;BurnerTech&#39;;
$mosConfig_sendmail = &#39;/usr/sbin/sendmail&#39;;
$mosConfig_smtpauth = &#39;0&#39;;
$mosConfig_smtpuser = &#39;&#39;;
$mosConfig_smtppass = &#39;&#39;;
$mosConfig_smtphost = &#39;localhost&#39;;
$mosConfig_back_button = &#39;0&#39;;
$mosConfig_item_navigation = &#39;1&#39;;
$mosConfig_secret = &#39;k0APEvxHRbVY6KhK&#39;;
$mosConfig_pagetitles = &#39;1&#39;;
$mosConfig_readmore = &#39;1&#39;;
$mosConfig_hits = &#39;1&#39;;
$mosConfig_icons = &#39;1&#39;;
$mosConfig_favicon = &#39;favicon.ico&#39;;
$mosConfig_fileperms = &#39;&#39;;
$mosConfig_dirperms = &#39;&#39;;
$mosConfig_helpurl = &#39;&#39;;
$mosConfig_ftp = &#39;0&#39;;
$mosConfig_ftp_host = &#39;&#39;;
$mosConfig_ftp_user = &#39;&#39;;
$mosConfig_ftp_pass = &#39;&#39;;
$mosConfig_ftp_port = &#39;21&#39;;
$mosConfig_ftp_root = &#39;&#39;;
$mosConfig_access = &#39;1&#39;;
$mosConfig_captcha = &#39;1&#39;;
?>
Title: Re: PHP WARNING after instalation
Post by: datahell on April 14, 2008, 19: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...)
Title: Re: PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 20: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
Title: Re: PHP WARNING after instalation
Post by: datahell on April 14, 2008, 20: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.
Title: Re: PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 20: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 !
Title: Re: PHP WARNING after instalation
Post by: datahell on April 14, 2008, 21: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.
Title: Re: PHP WARNING after instalation
Post by: Blacksoll on April 14, 2008, 22:01:20
Thanks....You gyes here Rock.....

Keep up the good work  ;)

Long live ELXIS and i hope to use it for  a long,long time.....