jjaacckk:
For all of you who get similar problem I finally figured out what is going on.
You screwed up. We know that. Now you are trying to feed us bullsh*t so that you feel less of an idiot.
(Hows that for a good opener?)
jjaacckk:
My server provider Lunarpages.com are setup to use suPHP to parse php pages as CGI instead of an Apache module.
Many servers do, including our own, but I will bet my life on the fact that this wasn't the cause of your problem(s)
BTW, suPHP is an apache module.
jjaacckk:
If you are running a PHP-based script on your find you self in similar situation by receiving a 500 and/or 404 errors, blank page or Internal server error on your pages.
Answer this honestly.
Did you not tun the zencart install scripts to install your zencart, and isn't it true that you had a fully functional zencart installation right up until the time you made manual changes?
If so, then isn't it safe to assume that the default php settings on your host, regardless of whether they were using suPHP or the standard PHP Apache module, it MUST have been correct for this to occur?
jjaacckk:
Disregard suggested permissions in installation manual because that is the actual cause of the problem.
:oops:
DISREGARD from Zen manual
ATTENTION ALL zen-cart newcomers. DO NOT heed this advice. The Zen-cart manuals and guides are correct. Some of the 'advice' about to be given will leave your installation vulnerable to certain hack attacks.
jjaacckk:
On the server locate the file: /catalog/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)
Pointless, needless, but pretty harmless.
jjaacckk:
Next, on the server locate the file: /catalog/admin/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)
Again, Pointless, needless, but pretty harmless.
jjaacckk:
DISREGARD from Zen manual
:no:
The zen manual doesn't mention permission changes to these files. They should be left alone.
> **jjaacckk:**
Folder definitely should be set with 755 permission
This is the default anyway. I'm not really sure why you brought this up
> **jjaacckk:**
and two recommended files should be or 644 or 444. After that you will be fine.
I'm assuming that "and two recommended files" is referring to the configure.php files that zen-cart DOES tell you to change? Needless to say, this is correct, and funnily enough, of ALL the changes you've mentioned these are the only two files that do actually need to be changed. Everything else should be left at the zen-cart defaults.
More importantly, those dist-configure.php files you mention should NOT be modified and renamed. This is a security risk. In fact this risk is the very reason why zencart pops up warnings about configution files being writable.
> **jjaacckk:**
If someone likes to verify this info please contact Lunarpages support
[email protected]
Support forums - http://www.lunarforums.com
Telephone: 1-714-521-8150 , Fax: 1-714-521-8195
What are we to verify? The fact that they us suPHP ? No need to contact them, I will verify this. Although not essential, most shared webhosts use this, because it gives better security and isolation between their clients. Rather than all php scripts being run as a 'nobody' user, it allows them to be run as individual/specific users. (oh, and it is still an apache module). See www.suphp.org for more info.
Incidently, I checked out the lunarforums, and a search for 'zen-cart' reveals ~50 posts in the last four years.. the last one being several months ago. Not one of those posts discusses anything like what you have described you needed to do. If your problem were a lunarpages issue I'd have expected at least one mention of it. You are clearly a 'unique' case.
> **jjaacckk:**
Rod, thank you for your help it was challenging but unfortunately not that intellectually stimulating. Remember… logic is just a beginning… keep working on you self. Let me know about that cold beer offer.:clap:
Jack
The cold beers should go to the zencart development team they deserve it more than I. Hey, they even have their manuals right. I think you owe them an apology actually.
As for 'working on myself' .... I've already had almost 6 decades of 'life', with almost 3 of those conversing with people online in order to develop my artisty of sarcasm.
I'm now at the stage we I don't suffer fools. (but I'll go out of my way to share my decades of experience with anyone willing to learn)
You are apparently trying to make a fool of me. There's really no need for that I'm quite capable of doing so on my own.
What is worse though is that you have incorrectly indicated that the zencart manual is also wrong, and in my opinion your post is only going to cause other people problems.
I really don't care what you think you needed to do to get your zencart installation working, but what you state above isn't it.
You HAD a working installation right up until the time you deleted the wrong directory or gave the wrong permissions to the right files, or the wrong permissions to some other files. THAT is when your problems started. It has nothing to do with suPHP no matter how much pontificating or self justification you feel you need to do.
I really don't mind you critiquing my methods of dealing with people, but I do object when you give other people bad advice when doing so. Doubly so when it involves a potential security risk.
Regards
Rod.
NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.