|
You are here: Home / suPHP or the like (works for me)
suPHP or the like (works for me)
Forum /
Announcements /
suPHP or the like (works for me)
Reply
Subscribe
Start new thread
Syndicated Feed (RSS)
|
Displaying 1 to 5 of 5
|
Previous
1
Next |
| Author |
Message |
electrolinux
Posts: 24
Location: france
|
|
suPHP or the like (works for me) - Posted: May 7, 2004 - 3:48 PM
|
Quote and reply
|
Hi all
I was very disapointed when I discovered that sitellite wasn't working at my ISP, as it worked like a charm at home :-(
My ISP (http://www.ovh.com) use apache 1.3 and has a special 'mod_ort' module wich apparently cause the same problems as suPHP: you can't call /index/cms-app and the like...
After playing a bit with mod_rewrite, i've just found some rules that seem working well (for me)
here they are:
RewriteEngine On
RewriteBase /
RewriteRule ^index$ /index.php
RewriteCond %{REQUEST_FILENAME} !^index[NC]
RewriteCond %{PATH_INFO} (.*)
RewriteCond %{QUERY_STRING} (.*)
RewriteRule ^index/.*$ /index.php [E=PATH_INFO:%1,E=QUERY_STRING:%2]
This works either in 'user mode' and 'admin mode'.
Hope this help!
--
dib
|
|
Back to top
|
View user profile
Contact this member
|
electrolinux
Posts: 24
Location: france
|
|
Re: suPHP or the like (works for me) - Posted: May 8, 2004 - 9:58 AM
|
Quote and reply
|
electrolinux said:
[...]
This works either in 'user mode' and 'admin mode'.
In fact, the admin mode was broken...
I don't know if it's due to mod_rewrite, but I have to hack a little bit more for actually using sitellite at my ISP. It's now functioning (as far as I can know), and here is the hack:
A little modif in saf/lib/MailForm/MailForm.php in the constructor, because the url for the action was wrong: due to mod_rewrite rules (?), PHP_SELF was missing the '/index' part...
if (empty ($action)) {
global $_SERVER;
$action = $_SERVER['PHP_SELF'];
if(!eregi('^/',$action))
$action = '/' . $action;
if(!eregi('^/index',$action))
$action = '/index' . $action;
}
--
dib
|
|
Back to top
|
View user profile
Contact this member
|
hw-tph
Posts: 6
Location:
|
Thanks a lot, Didier!
That made it possible for me to load and start evaluating Sitellite. However, I can't seem to create new pages or sidebars (new users are OK). Do you have any experience of this?
Håkan
|
|
Back to top
|
View user profile
Contact this member
|
josh
Posts: 130
|
hw-tph said:
Thanks a lot, Didier!
That made it possible for me to load and start evaluating Sitellite. However, I can't seem to create new pages or sidebars (new users are OK). Do you have any experience of this?
Håkan
What do you mean? what error message does it give? So you are in the Web View, and you click the "+" add sidebar (or add box) icon for a sidebar, or "+" add web page, and what does it do? Can you edit existing pages?
***
Evolve your Business with the BEST CMS and Framework in PHP! http://sitellite.org
***
|
|
Back to top
|
|
electrolinux
Posts: 24
Location: france
|
hw-tph said:
Thanks a lot, Didier!
That made it possible for me to load and start evaluating Sitellite. However, I can't seem to create new pages or sidebars (new users are OK). Do you have any experience of this?
Håkan
I'm glad it works for you, too.
Yes, I remember such a problem, but it was due to the MailForm class, and the changes I explains above corrected the problem.
http://www.sitellite.org/index/siteforum-list-action?topic=1&post=514&highlight=#siteforum-message-516
My advice for debugging:
- look at the source of the add/edit forms, and verify the action attribute
- put some info($cgi) here and there in the add or edit forms to see what happen
- try to give us more details on where it fails
good luck
-- didier Belot (alias electrolinux)
|
|
Back to top
|
View user profile
Contact this member
|
|

|