Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install Opencart on ISS8 #2690

Closed
darkwood-studios opened this issue Feb 20, 2015 · 3 comments
Closed

Unable to install Opencart on ISS8 #2690

darkwood-studios opened this issue Feb 20, 2015 · 3 comments

Comments

@darkwood-studios
Copy link

The installation of Opencart failed on ISS8 because of writing permissions

if (!is_writable(DIR_OPENCART . 'image/catalog')) fails because the constant DIR_OPENCART contains an incorrect slash at the end

example:
real path to opencart: D:\inetpub\server.com
DIR_OPENCART constant: D:\inetpub\server.com/

so is_writeable returns false because of the wrong slash

@munirasim
Copy link

For Windows make sure the following folders and files permissions allow Read and Write.
image/
image/cache/
cache/
download/
config.php
admin/config.php

Right click the folder with the web files in it, and select Security Tab to modify the permissions.

@darkwood-studios
Copy link
Author

thanks for the fast reply. i checked the premissions and the user has all permissions to read and write.

i made some test.

the actual code does this:
is_writable(DIR_OPENCART . 'image/catalog') in my example its qual to is_writable('D:\inetpub\server.com/image/catalog') // FALSE

here you can see the wrong slashes

if I correct the slashes in the code to is_writable('D:\inetpub\server.com\image\catalog') I get TRUE

so the folder is writeable, but the code is wrong

@danielkerr
Copy link
Member

slash on windows does not matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants