Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation Errors


Tomber

Recommended Posts

Hi,

 

These are the errors i encountered while doing an install on windows with MySql server running on PHP4.

 

Any ideas on what configuration i need to make to the files ?

 

=====================================================

 

:::: Errors occur on admin index page

 

Warning: fopen("c:/inetpub/wwwroot/ecommerce/catalog/includes/configure.php", "w") - Permission denied in c:\inetpub\wwwroot\ecommerce\catalog\install\templates\pages\install_7.php on line 209

 

Warning: fputs(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\ecommerce\catalog\install\templates\pages\install_7.php on line 210

 

Warning: fclose(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\ecommerce\catalog\install\templates\pages\install_7.php on line 211

 

Warning: fopen("c:/inetpub/wwwroot/ecommerce/catalog/admin/includes/configure.php", "w") - Permission denied in c:\inetpub\wwwroot\ecommerce\catalog\install\templates\pages\install_7.php on line 259

 

Warning: fputs(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\ecommerce\catalog\install\templates\pages\install_7.php on line 260

 

Warning: fclose(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\ecommerce\catalog\install\templates\pages\install_7.php on line 261

 

====================================================

 

::::: Error occurs in the main administrative page after clicking on the items in the admin page

 

Warning: open(/tmp\sess_7ecb6298ea276f4b89cfa8ddafbf90e3, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\admin\includes\functions\sessions.php on line 67

 

Warning: open(/tmp\sess_7ecb6298ea276f4b89cfa8ddafbf90e3, O_RDWR) failed: No such file or directory (2) in

c:\inetpub\wwwroot\admin\includes\functions\sessions.php on line 67

 

====================================================

 

Your help is deeply appreciated..

 

Thanks

Link to comment
Share on other sites

I'm in the same boat. This is on a Windows 2000 Server with PHP 4.3.4 and MySQL 4.0.17. The system is solid from a PHP/MySQL stand-point (I have a current vBulletin system that runs smoothly).

 

I had problems using the built-in install functionality with IIS (looking for junk paths). Switched to Apache and the install went smoothly, but, I'm getting the same include errors as above:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in C:\Web\store\catalog\includes\application_top.php on line 285

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.;c:\php4\pear') in C:\Web\store\catalog\includes\application_top.php on line 285

 

 

 

Help...please? :)

Link to comment
Share on other sites

it is a setting in iis and file permissions, if you read one of the first lines, fopen() permission denied, it is trying to open a file which you do not have permission to. right click on the files the program needs to write to, the permissions are probably set to read only

Link to comment
Share on other sites

it is a setting in iis and file permissions, if you read one of the first lines, fopen() permission denied, it is trying to open a file which you do not have permission to. right click on the files the program needs to write to, the permissions are probably set to read only

In my case, the permissions were set to full read/write for everyone.

 

I've also determined that the "install" PHP page fails when running on IIS 5. I haven't checked the bug base yet to report on my experiences, just casually mentioning it here... ;)

 

Thanks for the advice all! I'll give this a try in an hour or so. I'm very anxious to get osCommerce running in a Win32 server environment.

Link to comment
Share on other sites

Quick update...using Apache2 now...(near giving up on IIS) I still get the "PHP Include" error. I have commented out the "include path" in my PHP.INI file and I still get the error I posted above.

 

Any ideas? Is this really a good idea to be running on a Win32 server or is this code focused on Linux?

Link to comment
Share on other sites

Thanks for the guide on setting up these pkgs on Win32. My problems are not with PHP, MySQL, or IIS/Apache2. All of these components are working properly on the system (as previously noted, this system is capable of running a vBulletin system...this is a former production server I'm working with...).

 

My problems arise when I try and implement osCommerce onto this box...I get these dreaded "PHP Include" errors and the pages don't display. I've configured it manually and I've also attempted the automated /install/ system. Both leave me with a non-functioning pile of sadness.

Link to comment
Share on other sites

have you checked the read/write access to the specific files? once my file permissions were set properly on osCommerce, the whole thing started to work

Link to comment
Share on other sites

Thanks for trying to help, by the way! :)

 

All files are inherenting from parent objects...thus, every file (and folder) of the entire osCommerce site has full permissions for "Everyone".

 

Has anyone ever seen a guide on how to install this software on a Windows box? I've read the docs a dozen times over...and being familiar with Linux and Windows, PHP, and MySQL I understand what is going on...

 

...but after reviewing some of the code all I can tell is that a stock PHP (module-based) implementation is not compatible with osCommerce (is this PHP by CGI only?), or, the code really doesn't like Windows... ;)

Link to comment
Share on other sites

Thanks for the info everyone! Literally a minute after posting I got this running with Windows 2000 Server, IIS 5, PHP 4.3.4, and MySQL 4.0.17-NT.

 

Here's what the problems were...

 

- You need to create a "tmp" folder in the root of the hard drive

- You might as well create a "tmp" folder in the /catalog/ hierarchy

- Take the "Manual Configuration" route from the manual; this means manually creating the MySQL DB from the .SQL source, and configuring the "configure.php" file yourself

 

I've been able to replicate a start-to-finish install of osCommerce that runs successfully. Now that I have this beautiful little create running...I start to do the tricky stuff...I'm sure you folks will be hearing from me in other threads... ;)

 

Thanks again!

Link to comment
Share on other sites

I have this problem every time I setup a new folder in IIS.

 

I am running 2003 Server with IIS 6.0

 

I have figured it out.

 

My structure is:

 

c:\inetpub\<domain.com>

 

Inside the <domain.com> I have all of the catalog folder contents from the source file.

 

If you have created a new website in IIS that points to a folder that is not under your Inetpub/wwwroot folder, you have probably forgotten to assigne permissions for the account that is set up for anonymous access to that website.

 

Make sure the user that you've assigned for anonymous access (IUSR_<machine> usually) is added to the security group for the new folder and write access is set.

Link to comment
Share on other sites

Not to fly too far off-topic...but...IIS 4/5 give the IUSR (anonymous browser) access to all new sites by default.

I am the same problems. I fixed the problem what Adams were. a catalog do fine but admin UI don't work. Admin main view open but if I click whatever subwindow get error:

 

The page cannot be displayed

There is a problem with the page you are trying to reach and it cannot be displayed.

 

--------------------------------------------------------------------------------

 

Please try the following:

 

Open the localhost home page, and then look for links to the information you want.

Click the Refresh button, or try again later.

 

Click Search to look for information on the Internet.

You can also see a list of related sites.

 

 

 

 

HTTP 500 - Internal server error

Internet Explorer

 

 

I am IIS 5.1.

 

Any ideas?

Link to comment
Share on other sites

Hi,

 

I am trying to do the same as amgqmp1 I think, but getting the same problems, could expand a bit on what you said re the temp folders in your previous post?

 

You need to create a "tmp" folder in the root of the hard drive

- You might as well create a "tmp" folder in the /catalog/ hierarchy

- Take the "Manual Configuration" route from the manual; this means manually creating the MySQL DB from the .SQL source, and configuring the "configure.php" file yourself

 

I think there is something very wierd going on with the include paths.

 

Am running Apache with MYSQL and PHP4 on Windows NT.

 

Everything is working as it should and has been for ages. When installing oscommerce2.2 though i get the falied to open/cannot find directory messages people have mentioned before.

 

I went in and changed the path names (for some reason the pages are trying to find a file located in 'include/' when the page in it is looking from is already in thta 'include' folder. So I removed the 'includes/' prefix from the file in question ('install/includes/appliation.php') and then removed the 'templates' prefix from the 'install/templates/main_page.php' file (again, it was trying to find files located in the folder 'templates' when it was already there). This enabled me to bring up the install wizrd and manages to import the info from the database files etc, but when it finishes and goes to the catalog page I get multitudes of cannot find directory errors etc.

 

Hope you can help

 

Cheers

 

Euan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...