Bugs » Linkex with cgi script

added on Sep 18, 2006 by Sander
Hello,

I am using a CGI script named TGP rotator which creates php pages for all my sites. Now i have the problem that the
files are beeing created from a other place than where the linkex file is located and i'm getting the following error:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 10058 is not allowed to access
./linkex/list1.dat owned by uid 48 in /home/httpd/vhosts/lesbischsexslet.nl/httpdocs/test.php on line 989

Warning: main(linkex/list1.dat): failed to open stream: Bad file descriptor in
/home/httpd/vhosts/lesbischsexslet.nl/httpdocs/test.php on line 989

Warning: main(): Failed opening 'linkex/list1.dat' for inclusion (include_path='.:') in
/home/httpd/vhosts/lesbischsexslet.nl/httpdocs/test.php on line 989


The firts part from safe mode is not coorect if i turn it off it makes no difference. On the site where my cgi script is
located linkex works fine there. Butt not on the other pages.

Could you please help me with this?

Sander
added on Sep 18, 2006 by Sander
For the site have a look at www.lesbischsexslet.nl/test.php at the bottom.

I hope you can help me.

Sander
added on Sep 18, 2006 by v0id
Hi there.

I has to do with the ownership of the test.php file, and the files created by linkex (list1.dat, list2.dat and
list3.dat).

You need to change the owners of the list[n].dat files, so they match your user-id. The ones linkex has created, has
inherited the ownership of user running the web-server (user-id:48), while the file you uploaded is owned by you
obviously, with user-id:10058.

What I would do, is download the list[n].dat files, delete them and upload them again through your FTP client. That
would make the owned by you, and they should be included just fine.

I hope you understand my explanation, otherwise let me know, and I'll see if I can do it any better :)
added on Sep 18, 2006 by Sander
Hello good day,

I have deleted the files and uploaded them again by ftp on my site. Now after dowing this i get again a error the
following:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 10058 is not allowed to access
./linkex/list1.dat owned by uid 10060 in /home/httpd/vhosts/lesbischsexslet.nl/httpdocs/test.php on line 987

Warning: main(linkex/list1.dat): failed to open stream: Bad file descriptor in
/home/httpd/vhosts/lesbischsexslet.nl/httpdocs/test.php on line 987

Warning: main(): Failed opening 'linkex/list1.dat' for inclusion (include_path='.:') in
/home/httpd/vhosts/lesbischsexslet.nl/httpdocs/test.php on line 987

Mabey it has something to do with the fact that the page test.php is generated by the cgi script wich is locatet on one
of my other domains.

I hope you can help me with this.

Sander
added on Sep 19, 2006 by Sander
I hope you have a sollution for my problem because i'm using linkex on all my sites and i realy want to keep ussing them
in combination with my other script.

Hope to hear soonest from you.

Sander
added on Sep 20, 2006 by v0id
Is there a reason why the files generated by the CGI is php?

If they were .shtml you could do a server side include, which is not affected by the safe mode.

I'll still see if I can find a better solution, but it's the best I've come up with sofar

- v0id
added on Sep 20, 2006 by Sander
Thanks for your reply i hope you will find a sollution for this problem. I can't change my site to shtml :( I don't know
butt mabey it is possible to ad some acces file that my PHP file is the same like SHTML is that possible that you know?
I know it is for HTML - make same as PHP.

Sander

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.