shared installation error!!!

Having trouble installing serendipity?
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

haha cool :)

would you be able to point me in the right direction? ;)

Tom
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

also when i search for new events plugins via spartacus, i now get a blank page as if it cannot get the xml file from netmirror.org :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

As I mentioned here: http://www.s9y.org/forums/viewtopic.php?p=21960#21960

It covers about many tables. Serendipity_entries, serendipity_categories, serendipity_config -- all DB tables need to be adjusted to be applicable for sub-blogs.

Then maybe 50% of the codebase needs to be touched up. You basically need to inspect every file of Serendipity for multi-blog functionality. At least all include/*.inc.php files. As I said, it's a big job. I think it would take me 2-3 full weeks to code this functionality in a stable way.

I myself think that much is solvable by using categories as sub-blogs. And on shared installations I think it's actually preferable that every user has its own database. So nobody can mess up another person's installation.

If you get a blank page on spartacus, please have a look at your PHP/Apache error log. and if you get an error message, we would need the error message to help you. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

Yup i agree!

well this shared installation which i am creating is all on my server, and for my use only so the only person that could screw up the database would be me haha!

With Spartacus, when i click "Click here to install a new sidebar plugin" with the "File/Mirror location (XML metadata)" set to "Netmirror.org" OR "s9y.org" it WORKS fine!

But when i click "Click here to install a new event plugin" with the "File/Mirror location (XML metadata)" set to "Netmirror.org" it does NOT load, just a blank page! BUT with the "File/Mirror location (XML metadata)" set to "s9y.org" it works!

So that is really confusing me :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, that sounds really strange. Have you tried to fetch the URL that is shown to you manually? Does that work?

(BTW, with the "2-3 full weeks" I actually meant "2-3 weeks of my current full spare time". So that would be around 2 hours each day. :-) )

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

Yup iv tried that and it works, although the xml file gives and error (probably because its formatted for s9y)

Really annoying as spartacus cant grab the latest plugins in your cvs :(

Is there a fix around this? cant understand why its doing this as i can install the latest plugins, just the events comes up with a blank page, or even seems like the page is timing out, xml file could be too large or something, im unsure?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Can you give me the exact location of the XML that gives the error? It might very well be that there is an error, because the XML is auto-generated. Then I could fix it.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

ok when i do this:

http://dj.tommytaylor.co.uk/serendipity ... ype]=event

i get a blank page, the xml file im sure it wants is this:

http://netmirror.org/mirror/serendipity ... ent_en.xml

But when i do this:

http://dj.tommytaylor.co.uk/serendipity ... on]=addnew

it works no problem and i successfully receive this:

http://netmirror.org/mirror/serendipity ... bar_en.xml


Both xml files have been downloaded to:

/home/tommytay/dj.tommytaylor.co.uk/html/templates_c

and both xml files do have the following error:

Code: Select all

XML Parsing Error: prefix not bound to a namespace
Location: http://netmirror.org/mirror/serendipity//package_sidebar_en.xml
Line Number 14, Column 3:  <requirements:s9yVersion>0.8</requirements:s9yVersion>
--^
but i cannot see that causing a problem as spartacus works when checking for new sidebar plugins, just when i try to get new event plugins, it just doesnt work!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay, the XML file is without any errors. The "namespace" thing is okay, because spartacus does not do namespace parsing.

It seems to me that your PHP is either segfaulting or out of memory. Did you check your PHP and Apache errorlog? There must be an entry. It cannot just stall.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

could you explain a little bit more about "segfaulting"

Any idea where this error log is? i have an error log in my dj.tommytaylor.co.uk directory before htdocs, but it doesnt seem to explain any errors with php, only pages not found.

where would the other log file be with all the errors including any php 1s?

i think it could be a memory problem, i received one error when viewing one of the posts as it was having trouble loading some of the sidebar plugins, i have already emailed tech support with my hosting providor to increase the memory, how much should it be at?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

"Segfaulting" can happen if a process takes up too much memory or if it simply crashes.

The Errorlog is configured via your Apache ErrorLog directive. The PHP error log is defined via the error_log directive in your php.ini file. There are a couple of other variables concerning errorlevels which you need to look at as well.

Lastly, look at your server's syslog for any segfaults/crashing processes.

s9y should have about 10-12MB of RAM if you have installed all available plugins. Usually 8MB should suffice to parse the XML file properly.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

Well ive just checked my php.ini file and it only has 8mb of memory alocated to it.

So if i change this to about 12 - 15mb, everything should be ok then?

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That depends on the Error why PHP is currently crashing/faulting. If it is because of memory issues, change it temprarily to 64MB and see if it works. Remember to restart your Apache for that. If it works then, lower the limit to about 12MB and check again.

But first off, I suggest you to inspect your errorlogs to see if memory is really the problem.

We have changed serendipity 0.9.1 to deal with machines on less than 8MB, so actually it should work already.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
t0m_taylor
Regular
Posts: 24
Joined: Thu Jan 19, 2006 1:25 am
Location: Warrington, UK
Contact:

Post by t0m_taylor »

Hmm, i cant seem to find any errors in the error logs

Im getting more files not found as i cant use mod_rewrite due to google sitemaps wanting to detect its verify page, something which the .htaccess wouldnt let it do (unless theres a piece of code i could write in so it allowed it)

This would be ideal for a robots.txt file too, so i would need to know how to write that in the .htaccess file!

i would need the google varify file there too as sometimes it can recheck if its still there.

Once i get hole later i shall increase the memory for php, and hopefully it shout then work.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You can use mod_rewrite, and just add RewriteCond Rules within your .htaccess to bypass 'sitemap.gz' calls or so. You can look up the Apache mod_Rewrite documentation to look out for such rules.

"File not found" only happens with Apache Errorhandling URL Rewriting; this cannot be solved differently, it will always catch each page request as an error entry.

s9y only rewrites all *.html requests to the s9y blog, so if google sitemap wants a 'bla.gz' file, this will not be redirected.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply