Page 1 of 1

Backend: Lots of " failed to open stream: No such file.

Posted: Sat 21. May 2005, 22:56
by DavidNetk
Ok first of all I'll post the errors, then the conf.inc.php file and then I'll describe my server.

I am using version 1.2.1 of phpWCMS.

Errors on backend:

Code: Select all

Warning: main(home/virtual/site333/fst/var/www/html/boonealumninews.com/include/inc_ext/hft_image/hft_image.php): failed to open stream: No such file or directory in /home/virtual/site333/fst/var/www/html/boonealumninews.com/include/inc_lib/imagick.convert.inc.php on line 27

Warning: main(): Failed opening 'home/virtual/site333/fst/var/www/html/boonealumninews.com/include/inc_ext/hft_image/hft_image.php' for inclusion (include_path='.:/php/includes:/usr/share/php:/usr/share/pear') in /home/virtual/site333/fst/var/www/html/boonealumninews.com/include/inc_lib/imagick.convert.inc.php on line 27

Code: Select all

// Where the STARTUP text is supposed to appear
Warning: main(home/virtual/site333/fst/var/www/html/boonealumninews.com/phpwcms_template/inc_default/startup.php): failed to open stream: No such file or directory in /home/virtual/site333/fst/var/www/html/boonealumninews.com/phpwcms.php on line 412

Warning: main(): Failed opening 'home/virtual/site333/fst/var/www/html/boonealumninews.com/phpwcms_template/inc_default/startup.php' for inclusion (include_path='.:/php/includes:/usr/share/php:/usr/share/pear') in /home/virtual/site333/fst/var/www/html/boonealumninews.com/phpwcms.php on line 412
This is my conf.inc.php file. I am pretty sure the error should be here because of the way my server space is set up, read on.

Code: Select all

<?php

// database values
$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "user";
$phpwcms["db_pass"]           = "password";
$phpwcms["db_table"]          = "database_com";
$phpwcms["db_prepend"]        = "prepend";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://www.boonealumninews.com/";
$phpwcms["admin_email"]       = "email@email.com";

// paths
$phpwcms["DOC_ROOT"]          = "home/virtual/site333/fst/var/www/html";    //default: $_SERVER['DOCUMENT_ROOT']
$phpwcms["root"]		= "boonealumninews.com";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["file_tmp"]          = "phpwcms_tmp";     //default: "phpwcms_tmp"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["dir_thlist"]        = "thumb_list";   //default: "thumb_list"
$phpwcms["dir_preview"]       = "thumb_preview";  //default: "thumb_preview"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"]      = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 560; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 538; //max width of the large preview image
$phpwcms["img_prev_height"]   = 400; //max height of the large preview image
$phpwcms["max_time"]          = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"]     = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"]       = 0;  //whether URL should be rewritable
$phpwcms["wysiwyg_editor"]    = 1;  //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"]        = 1;  //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"]      = "en";  //default language
$phpwcms["charset"]           = "iso-8859-1";  //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"]  = 0;  //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"]            = 0;  //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms["jpg_quality"]       = 75; //JPG Quality Range 25-100
$phpwcms["sharpen_level"]     = 1;  //Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
$phpwcms["allow_ext_init"]    = 1;  //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"]  = 1;  //allow including of custom external scripts at frontend rendering
$phpwcms["cache_timeout"]     = 14400;  //default cache timeout setting in seconds - 0 = caching Off

// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"]     = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"]      = '';  //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"]     = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'info@boonealumninews.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'Boone Alumni News'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password


// Try to check and uncomment the DOCUMENT_ROOT if you have problems 

// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
$_SERVER['DOCUMENT_ROOT']     = 'home/virtual/site333/fst/var/www/html/boonealumninews.com';


?>
About the Server:

I am hosting with MediaTemple.net and they allow this thing called an "alternate domain."

An alternate domain is a way to a share a shared server account with another domain name. You create a directory with the same name as your domain name and it will be like a separate hosting account.

When you type yourdomain.com you will be shown the content under the /yourdomain.com directory.

/root/html/yourdomain.com

The root of the main domain name of course is"
/root/html/

For more info click here (root finder script)


I hope this explanation and the information I provided above will be enough to get some help on how to set up the CMS here. This is the very first time I encounter this kind of problem with phpWCMS. I would really appreciate your help.

Posted: Mon 23. May 2005, 16:26
by DavidNetk
Anybody please help me find the solution to these errors. Thank you!

Posted: Mon 23. May 2005, 16:30
by pico
have you try it by this way

Code: Select all

$phpwcms["site"]              = "http://www.boonealumninews.com/";
$phpwcms["admin_email"]       = "email@email.com";

// paths
$phpwcms["DOC_ROOT"]          = $_SERVER['DOCUMENT_ROOT'];    
$phpwcms["root"]              = "";         //default: "" 

Posted: Mon 23. May 2005, 21:27
by DavidNetk
With those changes I just get the error repeated 3 times instead of 2 like before (above).

I also check that there weren't any space between <?php and ?>.

What else could it be?
Is it the paths that is wrong for sure?


Look at this, I think it's weird:

Code: Select all

Warning: main(/home/virtual/site333/fst/var/www/html/phpwcms_template/inc_default/startup.php): failed to open stream: No such file or directory in /home/virtual/site333/fst/var/www/html/boonealumninews.com/phpwcms.php on line 412
See how after "html" one says "boonealumninews.com" and the other doesn't?

I'm pretty sure the path should be /home/virtual/site333/fst/var/www/html/boonealumninews.com but I cant explaini why the other one doesn't show up the same way.