Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install Help - Webserver not updating and getting errors


Macken

Recommended Posts

Hello all,

 

normally i dont need help but this thing has been in pain for the last 2 days.

 

Everything is uploaded correctly and in his tree format

 

/catalog

/catalog/admin

 

When i run the install script what do i put down for my webserver location? No matter what i put it always gives me this error.

[b]Warning[/b]: opendir(/casebreakcentral/catalog/includes/work/) [[url="http://casebreakcentral.com/catalog/install/function.opendir"]function.opendir[/url]]: failed to open dir: No such file or directory in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]82[/b]

[b]Warning[/b]: fopen(/casebreakcentral/catalog/includes/configure.php) [[url="http://casebreakcentral.com/catalog/install/function.fopen"]function.fopen[/url]]: failed to open stream: No such file or directory in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]142[/b]

[b]Warning[/b]: fputs(): supplied argument is not a valid stream resource in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]143[/b]

[b]Warning[/b]: fclose(): supplied argument is not a valid stream resource in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]144[/b]

[b]Warning[/b]: fopen(/casebreakcentral/catalog/admin/includes/configure.php) [[url="http://casebreakcentral.com/catalog/install/function.fopen"]function.fopen[/url]]: failed to open stream: No such file or directory in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]182[/b]

[b]Warning[/b]: fputs(): supplied argument is not a valid stream resource in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]183[/b]

[b]Warning[/b]: fclose(): supplied argument is not a valid stream resource in [b]/home/content/58/9159958/html/catalog/install/templates/pages/install_4.php[/b] on line [b]184[/b]
The installation and configuration was successful!

 

After the install the actual store http://casebreakcentral.com/catalog/index.php works fine but when i click the admin tool button i then get this error.

 

[b]Warning[/b]: require(/catalog/includes/classes/action_recorder.php) [[url="http://casebreakcentral.com/catalog/admin/function.require"]function.require[/url]]: failed to open stream: No such file or directory in [b]/home/content/58/9159958/html/catalog/admin/includes/classes/action_recorder.php[/b] on line [b]13[/b]

[b]Fatal error[/b]: require() [[url="http://casebreakcentral.com/catalog/admin/function.require"]function.require[/url]]: Failed opening required '/catalog/includes/classes/action_recorder.php' (include_path='.:/usr/local/php5/lib/php') in [b]/home/content/58/9159958/html/catalog/admin/includes/classes/action_recorder.php[/b] on line [b]13

[/b]

 

My 2 config files are set to 777 and there is no such directory as /home/content/........ even on my server..

 

I am going to delete everything and upload everything again.

 

I really want it to be on my root and not /catalog and i have tried nearly every single method that is mentioned on these forums..

 

I am sure there is more i can include but right now i cant think of anything.

 

Here is my config file for the store

 

[/b]<?php
 define('HTTP_SERVER', 'http://casebreakcentral.com');
 define('HTTPS_SERVER', 'http://casebreakcentral.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/casebreakcentral/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'xxxxxxx');
 define('DB_SERVER_USERNAME', 'xxxxxx');
 define('DB_SERVER_PASSWORD', 'xxxxxxx');
 define('DB_DATABASE', 'xxxxx');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

here is my current config file in /admin/includes

 

<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', '');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'xxxxx);
 define('DB_SERVER_USERNAME', 'xxxxx');
 define('DB_SERVER_PASSWORD', 'xxxx');
 define('DB_DATABASE', 'xxxxx'');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

If this file is set to read/write ch mod 777 then why is not filling in the data?

 

all the xxxxx are correct just removed for security reasons.

 

Any help is much appreciated!

 

Should i just start fresh and delete everything via FTP and start a new DB while someone carries me though this? The install manual isnt even close to being accurate!

Link to comment
Share on other sites

/includes/configure.php should appear like this(first few lines):

 

define('HTTP_SERVER', 'http://casebreakcentral.com');

define('HTTPS_SERVER', 'http://casebreakcentral.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.casebreakcentral.com');

define('HTTPS_COOKIE_DOMAIN', 'www.casebreakcentral.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

/admin/includes/configure.php should look like this (first few lines):

 

define('HTTP_SERVER', 'http://www.casebreakcentral.com');

define('HTTP_CATALOG_SERVER', 'https://www.casebreakcentral.com');

define('HTTPS_CATALOG_SERVER', 'http://www.casebreakcentral.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/casebreakcentral/public_html/');

 

 

 

 

Chris

Link to comment
Share on other sites

Thanks..

 

So do i have to create a public_html directory?

 

when i login via filezilla all i have is /:

 

So i just uploaded the catalog folder and then the extra folder.

 

So my url path on filezilla looked like this in the right window pane

 

/

/catalog

/extras

Link to comment
Share on other sites

You need to understand how your hosting service sets up the server's filesystem. Typically it is something like /home/<ACCOUNT NAME>/public_html/ that is the "site root", what HTML sees as /, but it can vary quite a bit (depending on server configuration). As for your FTP client, it will typically plonk you into /home/<ACCOUNT NAME>/ or the equivalent, the highest point at which you can see your site's files and write to them. When defining in configure.php the filesystem strings (DIR_FS_...), you have to give the entire path: /home/<ACCOUNT NAME>/... etc., while for HTML workspace strings (DIR_WS_...), you start at what HTML sees as your site root.

 

To directly answer your question, if there is a "public_html" directory, it would already have been created by your hosting service. You would never create it. Not all servers have this particular name.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...