Xuups
Get an account!     Login

Utilities

Main menu

Who's Online

17 user(s) are online (2 user(s) are browsing Forum)

Members: 0
Guests: 17

more...

Get Xoops

Support Xuups Project


Browsing this Thread:   1 Anonymous Users





Server API - Fast CGI
Just popping in
Joined:
2009/1/25 16:31
Group:
Registered Users
Posts: 6
Offline
I'm looking at moving my installations from SmartSection to Publisher. Overall, looking very good; many thanks for your efforts on making this a lighter-weight module (one of my installations has become too large for SS to handle well).

However, when trying to use SEO via the htaccess setup, it was not an option in preferences. Turns out my server API is Fast CGI and not standard apache or apache2handler as required in mod_version for that option and hot wiring it didn't work

I guess I'll have to go with the path-info version, although that is probably just as fine since I use xoModRewrite anyways. But, I'm curious why it doesn't work.

I'll have to delve into it further, but the SmartSection htaccess seo is working just fine on the Fast CGI, but not Publisher.

Thanks,

Mark

P.S. I couldn't access the profile module to view my profile, change my (now-renewed) password nor could I logout.

Posted on: 2010/8/27 4:09
Transfer the post to other applications Transfer


Re: Server API - Fast CGI
Just popping in
Joined:
2009/1/25 16:31
Group:
Registered Users
Posts: 6
Offline
FWIW, I can't seem to use path-info either. Instead of URLs like:

http://www.xuups.com/modules/publisher/item.62/holiday-time.html

I get:

http://www.xuups.com/modules/publishe ... item.62/holiday-time.html

The category links return information, but it's not correct and the item links give me the not a valid page.

If I reformat the URL (with path-info turned on), then it doesn't work either.

I effectively get the same results with either htaccess or path-info which must have something to do with how the server variables are set or something. I'll have to look into it further to use the SEO stuff.

Posted on: 2010/8/27 4:30
Transfer the post to other applications Transfer


Re: Server API - Fast CGI
Moderator
Joined:
2008/4/7 0:30
From Portugal
Group:
Webmasters
Registered Users
Posts: 303
Offline
Hi mboyden!

The format of pathinfo is correct but it is not working(blank page). I'll have a look into it.

The htaccess mode will use same map as pathinfo, I supose that when I fix pathinfo, htaccess will work as well.
Regarding the fast-cgi vs apache2handler, I guess we can just remove the check from xoops_version and delegate that check to the user.

Thanks for the reporting!

(I've enable access to profile module, please check if it is working correctly now)

Posted on: 2010/8/27 20:52
_________________
TDM
Transfer the post to other applications Transfer


Re: Server API - Fast CGI
Moderator
Joined:
2008/4/7 0:30
From Portugal
Group:
Webmasters
Registered Users
Posts: 303
Offline
I have submit a fix for pathinfo and fast-cgi check.

Files changed:
- xoops_version.php (please test if htaccess is displayed on the preference page)
- include/seo.inc.php ($_REQUEST was added for the new PublisherRequest class to work)

Thanks.

Posted on: 2010/8/27 21:30
_________________
TDM
Transfer the post to other applications Transfer


Re: Server API - Fast CGI
Just popping in
Joined:
2009/1/25 16:31
Group:
Registered Users
Posts: 6
Offline
htaccess is not an option. FWIW, if you check $_SERVER, there exists:
[GATEWAY_INTERFACE] => CGI/1.1

Also, if you run php_sapi_name(), you get 'cgi-fcgi'.

So, I edited:
if ($isModuleAction &&
(in_array(php_sapi_name(), array("apache", "apache2handler")) || isset($_SERVER['FCGI_SERVER_VERSION']))
) {

to be:
if ($isModuleAction &&
(in_array(php_sapi_name(), array("apache", "apache2handler", "cgi-fcgi")))
) {

and updated again which gave me the option. I'd agree that leaving it to the user might be an easier programming option.

With that fix, as of Rev 184, both Path-Info and htaccess options work. I'm even able to get xoRewriteModule to co-exist with it all (a plus in my book).

I'm happy again, but the problem seems to surround giving access to the htaccess version with all the various gateways available out there, and I don't know what the best answer is.

Posted on: 2010/8/31 21:20
Transfer the post to other applications Transfer


Re: Server API - Fast CGI
Moderator
Joined:
2008/6/2 19:00
Group:
Webmasters
Registered Users
Posts: 48
Offline
why htaccess not appear in preferences ?

Posted on: 2010/9/1 2:04
_________________
www.arabxoops.com
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


 

Login

Username:

Password:

Remember me



Lost Password?

Register now!

Ajax Search


Advanced Search

Newest Posts