Koozali.org: home of the SME Server

php question

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
php question
« on: May 14, 2006, 03:11:35 AM »
Hi all

Sorry for the double post, but I thin the other posts were related to other subjects, but not directly addressing this subject so I have sort of duplicated this questions a few times in the forums; I do appologize about that.

Anyhow regarding php scripts in general and how sme might handle them?

I'm confused about php

I only see the cgi-bin I'm told to install my php files there so I did
Anyhow my question is, does sme allow the php script to create folders and set permissions to these folders? or not ?

Basically I'm having problems with my auction site which should be working fine, but i'm told that there is some problem with either the ftp portion, or the server not allowing the script to set the permissions or create the user folders.

I've got the server set correctly and have followed all the instructions. All other aspects of SME 7 appears to work perfectly.

Thanks for any help on this subject.

duncan

php question
« Reply #1 on: May 14, 2006, 05:47:23 AM »
Im not sure about cgi-bin but definatley yes under the html folder. File ownership needs to be www as that is what apache runs under.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Please clarify
« Reply #2 on: May 14, 2006, 06:00:33 AM »
Hi thanks for the reply

Please clarrify, www

duncan

php question
« Reply #3 on: May 14, 2006, 06:13:27 AM »
If you do a
Code: [Select]
ls -la
 in the directory you will see a group of permissions for the various files and folders.

You might need to change the ownership of the folder that the web server needs to modify to www.

ie
Code: [Select]
chown www.www foldername

Just be careful when changing permissions.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Please clarify
« Reply #4 on: May 14, 2006, 02:21:51 PM »
Agent86

> Please clarrify, www

If you need clarification then you should really be reading some reference material so that you understand better.
Search google for
linux file permissions
and
linux file ownership

If you set the wrong permisions and ownership then you risk getting your server hacked, so be careful.
Make sure you understand the full effect of any changes you make.
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
huh ?
« Reply #5 on: May 14, 2006, 05:52:23 PM »
If permissions are set to 777 does the ownership really matter ?

I understand pointing to the references, however this does not really address the question. Knowing the answer and having to set this ownership indicates that sme is not allowing the php sript to write or set permissions as needed.

So if I understand your answer, you saying yes, and that I need to change the file permissions and ownership so that the script will allow this.

Is it typical to have to change ownerships of files or folders when running a php script on SME

Please advise
Thanks all

Offline raem

  • *
  • 3,972
  • +4/-0
Re: huh ?
« Reply #6 on: May 14, 2006, 06:07:18 PM »
Agent86

> If permissions are set to 777 does the ownership really matter ?

That is a dangerous thing to do in most circumstances.
You would only do that temporarily while writing to a configuration.php file or similar and then set it back to 644.

> I understand pointing to the references...

No I don't think you do. You want a magic answer and your statements here indicate you do not really understand the issues of ownership, permisssions and web & php scripts.
I suggest you read the reference material carefully and work it out.
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Well now what
« Reply #7 on: May 14, 2006, 11:26:05 PM »
You are correct regarding my knowledge of why a php script or folder would have to get a particular ownership setting. I don't really know? Thats the question?

My limited knowledge is not relevent since this script works on most other server, windows or unix/linux

What is making SME different, and why would my install process be so much different?

I'm not disregarding the possibility that I may have to change ownership of the folder/files etc.

I just want to be sure that before I just jump through hoops or go thru the excercise that I am sure of what the problem actually is and can determine if this is a SME topic, simple file permission,ownership or other problem.

So these questions that I'm asking are very specific to know if SME would not allow a php script to create a user folder, or set permissions as the script is designed to do, and what might cause SME to do this?

If the answer is yes it could and this can be fixed or changed with the setting of proper ownership then I will certainly research the information as I normally do.

But, I'm not sure I need to understand all those things to have this question answered necessarily and perhaps someone who does actually know this answer can simple say yes SME does not allow this by default, or no it must be something else.

This topic is not even necessary to research on other servers. Simply install the cgi-bin files via asci, and the html file via binary upload and set the permission and it just works perfect no need for any other ownership settings etc.So what makes SME different is my question. Why would I have to learn such things, and will this actually solve the problem. Or is this just a simple read more research more advice and let us know how it turns out type of thing.

I've had several programmers look at this and do not know why the script will not write or set permission on my server it works perfect every where else.

I've been told it's my server, not the script, so I will research and adjust the ownership of the folder and post my findings

Thanks for the tips and I hope your right.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks for the advice
« Reply #8 on: May 15, 2006, 12:00:21 AM »
Well, I've actually set all the files and folders in my primary ibay to www.www to see what may happen just to see if it would solve any of this.

To conclude no effect the php script will does not seem to write or set permission.

I've set the ownership to www. and the permissions for all folders to 777 and the script does not work on SME for some reason.

I'ts possible it's just a simple compatibility issue, however I've made sure that sme has the required php etc to run the script.

And I just cannot get this working

Offline kruhm

  • *
  • 680
  • +0/-0
php question
« Reply #9 on: May 15, 2006, 06:03:22 AM »
it's also possible that you're "confused about php"

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Thanks for the advice
« Reply #10 on: May 15, 2006, 09:26:46 AM »
Agent86

You have told us nothing about the php scripts, what they do, etc, whether you are trying to configure something initially or want long term web user control (read & write) etc.
How do you expect us to advise on something we don't even know about.
You need to be more specific.

Personally I would put the php scripts in the html folder, not the cgi-bin (which is for scripts of that type).
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
You are right
« Reply #11 on: May 15, 2006, 02:47:16 PM »
I am confused about php, however those who have installed it are not confused, and have installed it as they would any other server, and I would be happy to tell you all about the script, but this script has been evaluated, and I'm told the server is not allowing the script to set permissions to the new user folders that are getting added.

Basically it's an auction site, and the script is almost functional, however when a user registeres, and then attempts to add a new item listing, the listing shows up as (1) item added to that category, but when you browse to that category the item is not there.

I'm told that adding the new listing completed, however the script cannot create the proper user folder, or set the permissions for that folder.

Here is the script and here is the site:
ftp://cyberspace@foolishlys.com/  it's a zip file no password needed

And the site is:
www.foolishlys.com

duncan

php question
« Reply #12 on: May 16, 2006, 01:23:44 AM »
As far as I can see - this package makes no use of php.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: You are right
« Reply #13 on: May 16, 2006, 04:06:33 AM »
Agent86

The log files should tell you exactly what is and is not happening.
Have you looked, ie at http error log files etc.

Perform one of the problematic functions and then review the log files to see the error.
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks for the tips
« Reply #14 on: May 16, 2006, 02:14:14 PM »
Thanks

It is a php script, I'll will do some basic functions on the website and then post those logs which shows some things like:

[client 66.xxx.xxx.x6] script '/home/e-smith/files/ibays/Primary/html/xmlrpc.php' not found or unable to stat

[client 66.xxx.xx7.x6] script '/home/e-smith/files/ibays/Primary/html/adxmlrpc.php' not found or unable to stat

[client 220.xxx.xxx.x33] script '/home/e-smith/files/ibays/Primary/html/index.php

And things like that

I'll go thru some processes on the site and then post the logs once I've done that

thanks all

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
I don't understand
« Reply #15 on: June 09, 2006, 11:57:07 PM »
I really don't understand what the logs are telling me.

Here are some of the errors etc. :

[Fri Jun 09 16:53:05 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 18:09:27 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 18:15:04 2006] [error] [client 10.1.10.78] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 18:17:59 2006] [error] [client 10.1.10.3] attempt to invoke directory as script: /home/e-smith/files/ibays/Primary/cgi-bin/auction/
[Fri Jun 09 18:32:46 2006] [error] [client 10.1.10.3] attempt to invoke directory as script: /home/e-smith/files/ibays/Primary/cgi-bin/auction/
[Fri Jun 09 18:37:59 2006] [error] [client 10.1.10.3] attempt to invoke directory as script: /home/e-smith/files/ibays/Primary/cgi-bin/auction/
[Fri Jun 09 18:42:54 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:42:54 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:42:57 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:42:57 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:43:01 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 221., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:43:01 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:45:15 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 221., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:45:15 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:45:21 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=auto8&listtype=current
[Fri Jun 09 18:45:21 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=auto8&listtype=current
[Fri Jun 09 18:45:24 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:45:24 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:45:26 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 221., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:45:26 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:45:33 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/newlogin2.pl line 380., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=auto8&listtype=current
[Fri Jun 09 18:45:33 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=auto8&listtype=current
[Fri Jun 09 18:46:41 2006] [error] [client 10.1.10.3] attempt to invoke directory as script: /home/e-smith/files/ibays/Primary/cgi-bin/auction/
[Fri Jun 09 18:46:53 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:46:53 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:46:57 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:46:57 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:46:59 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 221., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:46:59 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:47:03 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 221., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:47:03 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl?category=:auto&listtype=current
[Fri Jun 09 18:53:33 2006] [error] [client 10.1.10.231] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/
[Fri Jun 09 18:53:33 2006] [error] [client 10.1.10.231] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/
[Fri Jun 09 18:53:50 2006] [error] [client 10.1.10.231] script not found or unable to stat: /home/e-smith/files/ibays/Primary/cgi-bin/auction/envtest3.pl
[Fri Jun 09 18:53:58 2006] [error] [client 10.1.10.231] (13)Permission denied: exec of '/home/e-smith/files/ibays/Primary/cgi-bin/envtest3.pl' failed
[Fri Jun 09 18:53:58 2006] [error] [client 10.1.10.231] Premature end of script headers: envtest3.pl
[Fri Jun 09 18:54:18 2006] [error] [client 10.1.10.231] (13)Permission denied: exec of '/home/e-smith/files/ibays/Primary/cgi-bin/envtest3.pl' failed
[Fri Jun 09 18:54:18 2006] [error] [client 10.1.10.231] Premature end of script headers: envtest3.pl
[Fri Jun 09 18:54:26 2006] [error] [client 10.1.10.231] (13)Permission denied: exec of '/home/e-smith/files/ibays/Primary/cgi-bin/envtest3.pl' failed
[Fri Jun 09 18:54:26 2006] [error] [client 10.1.10.231] Premature end of script headers: envtest3.pl
[Fri Jun 09 18:55:00 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 18:55:01 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 18:59:09 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:00:01 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:00:02 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:35 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:38 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:38 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:41 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:41 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:50 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:03:50 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:04:11 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:04:12 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:04:30 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:04:30 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:04:35 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:04:35 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:05:06 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:05:06 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:06:23 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri Jun 09 19:06:24 2006] [error] [client 10.1.10.231] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico

I don't really understand what it's telling me.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I don't understand
« Reply #16 on: June 10, 2006, 05:49:33 AM »
Agent86

I would say that this is not really a sme server 7.x issue, it's an issue with a contrib you have installed, so at best you should have posted this to the contribs forum.

Did you bother to search on these type of entries:
File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico

You would find an answer. These are usually requests from external robots trying to read (non existent) files on your (Windows) server, and then trying to hack it. Obviously these files don't exist as you are running a Linux server.

The other error messages are all relating to actions of your auction site scripts.
The messages are fairly specific, so you have to determine why it cannot do what it is trying to do eg permission issues, read/write issues. You probably need a better understanding of what the scripts are trying to do, but the error message is really telling you what cannot be done.
You then need to determine why that cannot be done on the sme server.

I suggest you look at one error message at a time and try to work through that, looking at 50 messages and trying to fix them all at the same time is hard work.
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Did not start a new thread
« Reply #17 on: June 10, 2006, 02:10:04 PM »
Thanks for the info, I'll work on it some more

As far as permissions go, I've set the complete script and file for 777 just to see if any effect or changes are made to the function of the script.

Nothing changed it appears that your are correct that I must try and determine if SME will allow this function that what I've been trying to figure out.

I also need to go back and confirm what version of PHP is required, I think SME is version 4, not sure if the script requires version 4 or 5, this could be the problem as well, however I'm also having trouble with egroupware in which i've followed the instructions but no luck there either.

It could be a simple compatibility issue with the script requirements

I'll go back to the drawingboard thanks for the help.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Did not start a new thread
« Reply #18 on: June 10, 2006, 02:19:00 PM »
Agent86

> This post was posted on page 2 of the same topic php question

Oops, sorry I missed seeing that this was a continuation.
I have edited out that comment.


The rest of my previous post is valid comment though.
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
php question continued
« Reply #19 on: June 10, 2006, 02:54:05 PM »
I realize this is not a SME topic but it only really has to do with trying to find out the package list of SME and capabilities to see if it will run the auction script.

In theory I was told by serveral who looked at it, that it should.

So I'm going to have to review those logs and find out what is what, and why.

I very much was under the impression when I got this script that it was a snap to install, and I even paid them to install it properly appearantly they have been doing it for years on servers without fail.

So thats what brings me to all the questions as to why it would not work on SME or what is SME doing differently.

I saw someplace in the how:to's that running applications is recommended to install in the opt/ directory and not in ibay for some reason which I don't understand, however I wonder if there is anything to the function of this that would change.

Anyhow I have set all permissions to 777 and chown to www. and the auction just does not appears to work properly and I just can't figure out why.

I know that is does work on other servers both windows/linux/unix etc.

The script will just not write or create those folders or set permissions to those folders etc. for some reason.

The script is suppose to create these user folders and set the permissions, but it's just not working.

I wish I knew more about the programming to determine what it could be or perhaps more about SME to at least determine something, but it's becoming a little more then I have time to diagnose.

I thought that perhaps someone who know would be able to diagnose at least to say SME will not run this script ever. Or at least that the script is bad or something.

It appears this could take me years of education to get this working properly by then I'll have lost interest in the whole project.

I don't know I appreciate any help on this topic.

I've posted other thread to try and access tool that my help me with diagnosing this problem.

Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I don't understand
« Reply #20 on: June 10, 2006, 03:22:44 PM »
Agent86

Stop repeating the question and do some research.
It's your problem so you cannot expect a magic answer.

I took the very first auction software error message & did a google search
Found nothing,
Then I limited the search string to
attempt to invoke directory as script:

and found lots of results.
http://www.google.com.au/search?hl=en&q=attempt+to+invoke+directory+as+script%3A&btnG=Search&meta=

Maybe this one is related to your problem:

http://mail-archives.apache.org/mod_mbox/httpd-users/200308.mbox/%3C200308172351.28091.brian@cubik.ca%3E

Reading a few of them suggest that perhaps the script is being accessed incorrectly ie the cgi-bin path is being called up, but it should not be accesssed that way.

I don't know if that is your problem or not.

There was one link that refered to auction but the link to that search result went elsewhere.

So keep searching & happy reading
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Well, Thanks
« Reply #21 on: June 11, 2006, 08:53:27 PM »
Well, regarding your suggestions to research.
I've researched and researched and researched.
I have also found these topics and other similar topics in which people are talking about their programmed script and diagnosing their scripts etc.
They do not appear to be related, as this is not really  a script problem to my knowledge; as i've mentioned the scipt works on Windows/linux/unix etc. Currently working and being used appearantly by everyone but me.

So your comment indicates you did not understand the question thus warrants repeating.

The script works perfectly on all servers having the required perameters.

So I guess the final question is really does SME have the correct perameters which I've been told in the past that yes is does?
However now perhaps I'm not so sure.

I"m not really looking to diagnose the script, however perhaps it may need diagnosing or perhaps in conclusions to finding out first to determine if SME is doing something different that may not allow the script to run correctly. Then at that point I would diagnose the script and eduacate myself on that subject if needed.

This is not a repeating of the topic, but clarrification since I don't seem to be getting answers that match the question.

This should not cause reason for sarcasm, I do appreciate your trying to help on this subject, however telling someone to research and educate themself is practically a none answer.

None answers with lots of words but no conclusions gets a E for effort.

I will continue to research, and ask questions and perhaps clarrify them as I see fit until I get the answers I'm looking for.

I appreciate a guessing and advise, however if you like to be sarcastic please go heckle someone elses post and leave mine alone.

Thanks for your cooperation in this matter as I move toward the successful completion of my project.

Moving on to the subject:

Apearantly the script requires this:

Perl, CGI, GD, Curl, ImageMagik, be able to read/write in the cgi-bin folder and know the path to the script.

I initially was told by someone in the forums, I do not recall who or which post, but that SME meets the requirements.

Can someone please confirm this, perhaps I simply do not have the requirements ?

I'm considering this topic closed until I can figure out what I have.

I will post regarding this topic within my other post regaring package list.

Thanks







 :pint:

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Ok status update
« Reply #22 on: July 02, 2006, 12:47:27 AM »
Forgive my ignorance on my auction script which I've purchased.
I was under the impression or was told that it was php, I WAS WRONG. I repeat NOT PHP

So now that I've displayed my ignorance on this subject even further.I don't really know how this happened, but when I purchased the script there were many references to php; and I also purchase a php auction script as well, so perhaps I assumed incorrectly that all that I purchased was php. Anyhow just FYI

Anyhow back to the problem and reopening this post for helps please
The script is Perl and is tested and used on many servers with Perl 5

Appearantly the SME 7 has Perl 4.3.9

Perhaps this is my problem with the script ?

But how would I know ? I thought it was PHP, so how in the hell would I know? LOL

Any thought please ? :-D

Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Ok status update
« Reply #23 on: July 02, 2006, 04:34:04 AM »
Agent86

> The script is Perl and is tested and used on many servers with Perl 5
> Appearantly the SME 7 has Perl 4.3.9

You need to ascertain if Perl 5 is a requirement (ie dependency) of the scripts or whether they are just known to run on servers with Perl 5.
The script may well be capable of running on Perl 4.3.9, unless you determine otherwise. I would think the author would be the best person to ask for this answer.
If the script definitely requires Perl 5 then you should update your version of Perl.

As regards my earlier comments re looking in the log files to help track down the problem (which you seemed to dismiss as sarcasim), the log files ARE telling you why something is not doing what it should.

They ARE the best clue you have to determine why the scripts are not working on sme. Notice I said not "working on sme", not just "not working".
Clearly you have said the scripts do work elsewhere, so at least that is a known starting point.
I doubt very much that sme inherently is the problem. There may be some configuration issues relating to your specific scripts & how & where they are installed, but not a problem with sme as such. It's more likely a problem with how you installed & configured the scripts on sme.
You need to thoroughly investigate why you are getting those error messages in the logs, and if you don't understand what they mean then keep asking pertinent & SPECIFIC questions.
A general, "it doesn't work please give me the fix", "and no one is answering my question even though I have repeated it many times" won't get you much sympathy around here.

Pick one error from the log file and thrash it to death until you get an answer (from wherever) and then move on to the next error.
If you fix one error it may fix a whole lot of other errors in the process.
In the converse, if you don't fix the first error, then you may not be able to fix the later errors.

A user group or forum specific to the scripts may be a better and/or alternative place to be asking also.

If you really don't have the technical expertise, time and inclination to resolve it yourself, then consider paying a sme expert to "get the scripts running on sme" for you, assuming they will run of course.

I gather you paid someone to install the script, so you must consider it important for your needs.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Ok status update
« Reply #24 on: July 02, 2006, 04:53:16 AM »
Agent86

> The script is Perl and is tested and used on many servers with Perl 5
> Apparently the SME 7 has Perl 4.3.9

How did you determine that ?
I answered your other thread re the version of perl installed
If I do
rpm -q perl
perl-5.8.5-24.RHEL4

So sme 7 has greater than perl v5, so that will not be your problem

Even sme6 has greater than perl v5
rpm -q perl
perl-5.6.1-36.1.73
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
I saw this
« Reply #25 on: July 02, 2006, 09:49:54 PM »
Sorry I'm still looking at PHP stuff again by accident

I've been researching php stuff for so long now trying to figure out what is wrong with the server / script I seem to be stuck in a sort of momentum or force of habit condition
here is the info I got this from and it clearly says PHP I don't know why I can't stop diagnosing php when it's not a php script http://www.foolishlys.com/phpinfo.php
You know it's really fustrating to not really know much about linux or programming, and then to actually pay for something like a script and being told that it's one thing and it's really not. Since I did not know I could only reply based on what I was told. I hate these kinds of topics and would just like to be able to use my SME server with this perl script which should work. I've even paid programmers, and network admistrators with over 10 years experience in multiple fields such as php,msql,perl,linux,networking,web hosting,solaris,unix.windows and all kinds of other programming credentials and still can't get this simple auction script working on SME
I just don't get it.

So if they don't know, I'm beginning to loose motivation in this project and am beginning to think that SME will just not run this script, but it should, it has all the things the script needs to my knowledge and the programmers have research the script language and it is suppose to be working.
The network administrators say that the SME box is working and that the script should also be working, not really blaming the script but not fully understanding why the script will not work either

Well back to the drawing board and thanks again for the correction on what version of php I have
Anyhow thanks for the correction.

Offline dsemuk

  • *****
  • 269
  • +0/-0
Re: I saw this
« Reply #26 on: July 02, 2006, 09:56:34 PM »
Quote from: "Agent86"
http://www.foolishlys.com/phpinfo.php


Agent86 you may want to remove that page from your server or at least block it with a user name and password.

You are revealing a lot of info about your server which could be of interest to anyone wanting to attack your server.

Dave
--
Esmith/Mitel/SME server  :-D...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks
« Reply #27 on: July 02, 2006, 10:06:00 PM »
K Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I saw this
« Reply #28 on: July 03, 2006, 04:42:15 AM »
Agent86

> would just like to be able to use my SME server with this perl script....
> I've even paid programmers, and network admistrators with over 10
> years experience in multiple fields such as
> php,msql,perl,linux,networking,web hosting,solaris,unix.windows and all > kinds of other programming credentials and still can't get this simple
> auction script working on SME


You are ranting and raving again.
You are not focussing on the information presented to you to derive answers.

Which bit of my earlier post did you not understand. I write reasonably constructed  english sentences which I believe most people can understand. Grab hold of the suggestions and run with them.

sme server is different in its structure, and is VERY protective regards security. The way many things are done on regular Linux distributions is not how they are done on sme server, particularly web stuff. You could say the sme server is "locked up tight" and there may be something you need to unlock to get the scripts to run correctly.

Unless the network admins you consulted are very conversant with sme, they may be missing some simple configuration issue which stops the scripts running correctly.
I have said it before and I'll repeat it again for you.

Look at the log files, you have already quoted them earlier, they are telling you what the problem is. Of course they are not telling you the answer, but you or some other experienced sme server admin should be able to track down the issue that is causing the errors in the logs.

From your responses so far I don't believe you are technically capable of solving this problem.
I suggest you enquire re getting the services of a experienced sme server administrator to analyse your problem and see if a resolution is possible.
I know Gordon Rowell does this sort of thing and in the USA you have Darrell May, and I 'm sure there are many others if you ask.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I saw this
« Reply #29 on: July 03, 2006, 04:52:03 AM »
Agent86

> Look at the log files...

For example, quoting a couple of log file excerpts from your earlier posting:

[Fri Jun 09 18:42:54 2006] [error] [client 10.1.10.3] Modification of non-creatable array value attempted, subscript -1 at /home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl
[Fri Jun 09 18:42:54 2006] [error] [client 10.1.10.3] Compilation failed in require at /home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18., referer: http://www.foolishlys.com/cgi-bin/auction/auction.pl

Have you looked at the lines in the scripts that are being referred to here.
What does it say on
/home/e-smith/files/ibays/Primary/cgi-bin/auction/mainpage.pl line 477

and

/home/e-smith/files/ibays/Primary/cgi-bin/auction/auction.pl line 18

Something in the script is the clue to why these errors occurred. I'm not saying an error in the script, but an error on your sme server and the way it & the script is all setup

Follow the log errors through one by one
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks
« Reply #30 on: July 03, 2006, 05:45:51 PM »
I wish I knew more about these things

And yes I reviewed what I could understand in the script and the path appears to be correct so that would sort of indicate something that is not allowing this function on the SME box, either permissions/ownerships or something but  I set everything to 777 and www so it should at least work for testing purposes.

I've paid a programmer and a network/webhosting admin to look into all aspects
I'll post once I find out more.

I am determined to make this script work on SME it should work.

Thanks for the help and ideas on this.
If anyone desires to install it on one of your own ibays feel free to download it from my ibay
the link again is:
ftp://cyberspace@foolishlys.com

blockbuster

php question
« Reply #31 on: July 03, 2006, 07:26:47 PM »
Quote
Apearantly the script requires this:

Perl, CGI, GD, Curl, ImageMagik, be able to read/write in the cgi-bin folder and know the path to the script.

I initially was told by someone in the forums, I do not recall who or which post, but that SME meets the requirements.

Can someone please confirm this, perhaps I simply do not have the requirements ?


I don't know if it makes sence but ImageMagick is not installed by default on the SME-7.0.

To install it simply do:
Code: [Select]
yum --enablerepo=* install ImageMagick

next ImageMagick can be found in /usr/bin/, maybe you have to point your script somewere in this direction.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks
« Reply #32 on: July 04, 2006, 03:54:34 PM »
Thanks for that,

I did actually find a yum command for installing Image magik, and did not have any problems with the install, however the command from what I can recall did not look like that:

Anyhow thanks,because I cannot seem to find the reference to the previous command, I'll save this for future use if I have to re install SME fresh

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Project Update
« Reply #33 on: July 04, 2006, 07:43:12 PM »
Hi all

Thanks for all the help

Here is the conclusion and the perl auction is not working perfectly from what I can tell it's fixed, and also now works with all browsers as well.

Nice features too with html editor built in this is a features which ebay still lacks.

Anyhow here was the conclusion from the paid programmer that fixed this problem for me

I believe as it turns out SME was working fine and the script had a bug even the original designer could not fix.

Anyhow here is the details:
Hello Steve,

We done some fixing and it looks OK now.
Tere were strings like:
opendir (THEDIR, \"$config{'basepath'}$key\") || &oops(\"Categorydirectory $key could not be opened.\");
readdir THEDIR;
readdir THEDIR;
my @allfiles = sort { $a $b } map {int $_} readdir THEDIR;
closedir THEDIR;
my $file;
FILE: foreach $file (@allfiles) {
$file =~ s/^$config{'basepath'}$key\///;
$file =~ s/\.dat$//;
$totalfiles = @allfiles;
in the code repeted many times. And there was bug so file names were read incorrect and error placed.
Fixed with:
# readdir THEDIR;
# readdir THEDIR;
# my @allfeatfiles = sort { $a $b } map {int $_} readdir THEDIR;
my @allfeatfiles = sort { $a $b } grep {!/^\.+$/} readdir THEDIR;

Also we deleted few wrong records (lots) and placed test one - passed OK.

And there was one more error when creating new lot in
../../html/htmlarea/editor.js
so lot describtion could not be added. We replaced:
// document.all[objname].config = config; // store config settings
to:
document.getElementById(config) = config; // store config settings
Now it works too.

Pleasem test the script from your side and let us know if you see any more errors.


Well this is nice to know I'll post a link once I put this new info back into the package and anyone who wants it can have it

Thanks for all the help
Looking foward to playing with my new toy, also by the way I'm offering the auction site free for all -no listing fees, no seller fees and not buyers fees, however some of the deluxe features like bold, or features listings etc. I've got at a very low 10 or 15 cents per selection but the image uploads are free and the listing and counters are free.
I may get rid of all the fees but for now it's a nice experiment

I wonder if I should change the title of this original post to Perl instead of php since it's really perl realated but it does show the path of my investigations on this subject


 :hammer: