Page 1 of 1

Please help with errors.

Posted: Mon 12. Dec 2005, 13:59
by rockbust
I need help with error messages on a new install.
I think it is the way the path info is set up.
when I use the format below I am able to log in but receive error messages in the backend page and on the index page.
when I change $phpwcms["root"] to ""; I am directed to a 404 error on the back end but no errors on the index page.

I am in the process of moving the club's website to a new server and am not changing the DNS until I develop this CMS site. I am using http://207.210.72.80/~usnmc to access the site until then. I am confused how to set it up.


<?php

// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "xxx";
$phpwcms["db_pass"] = "xxx";
$phpwcms["db_table"] = "xxx";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;

// site values
$phpwcms["site"] = "http://207.210.72.80/";
$phpwcms["admin_email"] = "rockbust@optonline.net";

// paths
$phpwcms["DOC_ROOT"] = "/home/usnmc/domains/neapolitan.org/public_html";
$phpwcms["root"] = "~usnmc"; //default: ""
$phpwcms["file_path"]= "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$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"] = 538; //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"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 0; //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"] = 0; //default cache timeout setting in seconds - 0 = caching Off
$phpwcms["imgext_disabled"] = ''; //comma seperated list of imagetypes which should not be handled "pdf,ps"
$phpwcms["multimedia_ext"] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms["inline_download"] = 1; //1 = try to display download documents in new window; 0 = show safe under dialog

// 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'] = 'webmaster@neapolitan.org'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'webmaster'; // 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'] = 1; // 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'] = '/var/www/html';

?>
When I do
<?php
phpinfo();
?>
I get the following

_SERVER["DOCUMENT_ROOT"] /var/www/html

_SERVER["REQUEST_URI"] /~usnmc/path.php

_SERVER["SCRIPT_FILENAME"] /home/usnmc/public_html/path.php

_SERVER["SCRIPT_NAME"] /~usnmc/path.php

Thanks

Re: Please help with errors.

Posted: Mon 12. Dec 2005, 15:26
by jon rain
hello,

I think there is no virtual host for Your directory
"/home/usnmc/domains/neapolitan.org" in

httpd.conf (in ./apache2/conf)

and you have to add:
Listen 207.210.72.80:80

in httpd.conf too

NameVirtualHost 207.210.72.80
<VirtualHost 207.210.72.80:80>
ServerName domains
DocumentRoot sys:/home/usnmc/domains
</VirtualHost>



and you have to control the open_basedir in php.ini
in ./php5

the directory should not end with backslash (for subdirectories)

then it should work.

rockbust wrote:I need help with error messages on a new install.
I think it is the way the path info is set up.
when I use the format below I am able to log in but receive error messages in the backend page and on the index page.
when I change $phpwcms["root"] to ""; I am directed to a 404 error on the back end but no errors on the index page.

I am in the process of moving the club's website to a new server and am not changing the DNS until I develop this CMS site. I am using http://207.210.72.80/~usnmc to access the site until then. I am confused how to set it up.


<?php

// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "xxx";
$phpwcms["db_pass"] = "xxx";
$phpwcms["db_table"] = "xxx";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;

// site values
$phpwcms["site"] = "http://207.210.72.80/";
$phpwcms["admin_email"] = "rockbust@optonline.net";

// paths
$phpwcms["DOC_ROOT"] = "/home/usnmc/domains/neapolitan.org/public_html";
$phpwcms["root"] = "~usnmc"; //default: ""
$phpwcms["file_path"]= "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$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"] = 538; //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"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 0; //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"] = 0; //default cache timeout setting in seconds - 0 = caching Off
$phpwcms["imgext_disabled"] = ''; //comma seperated list of imagetypes which should not be handled "pdf,ps"
$phpwcms["multimedia_ext"] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms["inline_download"] = 1; //1 = try to display download documents in new window; 0 = show safe under dialog

// 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'] = 'webmaster@neapolitan.org'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'webmaster'; // 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'] = 1; // 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'] = '/var/www/html';

?>
When I do
<?php
phpinfo();
?>
I get the following

_SERVER["DOCUMENT_ROOT"] /var/www/html

_SERVER["REQUEST_URI"] /~usnmc/path.php

_SERVER["SCRIPT_FILENAME"] /home/usnmc/public_html/path.php

_SERVER["SCRIPT_NAME"] /~usnmc/path.php

Thanks

Posted: Tue 13. Dec 2005, 04:38
by rockbust
Thank You for the information.

Is this something I do or the Hosting company?

Re: Please help with errors.

Posted: Tue 13. Dec 2005, 05:34
by DeXXus
Try this:

Code: Select all

// site values 
$phpwcms["site"] = "http://207.210.72.80/~usnmc/"; 

// paths 
$phpwcms["DOC_ROOT"] = "/home/usnmc/domains/neapolitan.org/public_html"; 
$phpwcms["root"] = ""; 

Posted: Tue 13. Dec 2005, 06:23
by rockbust
I think it worked.
Thank

Posted: Sat 17. Dec 2005, 14:54
by rockbust
More problems.

Now the problem is I can not see the editor when creating an artile. I have tried both IE and firefox.

Is it the path information?
I now have

<?php

// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "usnmc_usnmc";
$phpwcms["db_pass"] = "xxx";
$phpwcms["db_table"] = "usnmc_cms";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;

// site values
$phpwcms["site"] = "http://207.210.72.80/~usnmc/";

$phpwcms["admin_email"] = "rockbust@optonline.net";

// paths
$phpwcms["DOC_ROOT"] = "/home/usnmc/domains/neapolitan.org/public_html";
$phpwcms["root"] = ""; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$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"] = 538; //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"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 0; //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"] = 0; //default cache timeout setting in seconds - 0 = caching Off
$phpwcms["imgext_disabled"] = ''; //comma seperated list of imagetypes which should not be handled "pdf,ps"
$phpwcms["multimedia_ext"] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms["inline_download"] = 1; //1 = try to display download documents in new window; 0 = show safe under dialog

// 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'] = 'webmaster@neapolitan.org'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'webmaster'; // 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'] = 1; // 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'] = "var/www/html";


?>

Please help.

Posted: Sun 18. Dec 2005, 08:19
by DeXXus
Dunno why you want the settings to be the same as the "live" site ?

( http://207.210.72.80/~usnmc/ ) same as current website address ( http://www.neapolitan.org/ )

...phpWCMS might "interfere" :!:

Other equivalents for these lines:
rockbust wrote:

Code: Select all

// site values
$phpwcms["site"]              = "http://207.210.72.80/~usnmc/";

// paths 
$phpwcms["DOC_ROOT"] = "/home/usnmc/domains/neapolitan.org/public_html"; 
Might be these lines:

Code: Select all

// site values
$phpwcms["site"]              = "http://www.neapolitan.org/";

// paths 
$phpwcms["DOC_ROOT"] = "/home/usnmc/public_html"; 
-OR-

Code: Select all

// site values
$phpwcms["site"]            = "http://".$_SERVER['SERVER_NAME']."/";

$phpwcms['DOC_ROOT']          = $_SERVER['DOCUMENT_ROOT'];

Posted: Sun 18. Dec 2005, 16:09
by rockbust
I have tried these settings but still no good.

I can not see the WYSIWYG editor.
all else seems to work.

I have tried for day now. anyone have a fix for this?

As stated before the domain is http://207.210.72.80/~usnmc/ (and not yet neapolitan.org until I transfer the name servers).