Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorpam
    • CommentTimeAug 13th 2010 edited
     permalink
    I have just decided to start a blog & downloaded the latest flatpress. I've unzipped it into a directory called flatpress, and ftp'd that whole directory to my website. So everything is in the subdirectory called 'flatpress'. But when I point my web browser to the flatpress subdirectory of my website, i get a 402 error not found. The URL in the browser address bar has changed to setup.php in the root of the website, but I've installed everything to flatpress subdirectory, so obviously its not found. I'm fairly new to web authoring & never used php before, so any help would be very welcome.
    •  
      CommentAuthorStanley
    • CommentTimeAug 13th 2010
     permalink
    A 402 error? I've never seen one of those before.

    If you installed everything to a subdirectory how did setup.php come to be in your root? Can you post the URL to your web site?
    •  
      CommentAuthorChrisBlank
    • CommentTimeAug 13th 2010
     permalink
    A 402? its a payment reuired error, isnt it?
    Maybe a bad Webspace-Provider or a worng configuration in an .htaccess file.
    •  
      CommentAuthorpam
    • CommentTimeAug 18th 2010
     permalink
    sorry, I've been away for a couple of days.
    I've re-installed again, and still getting the error - but obviously I was going mad before - its a 404 error not 402.
    The website is www.pamdidthis.webspace.virginmedia.com - I've installed everything to /flatpress/.
    Entering www.pamdidthis.webspace.virginmedia.com/flatpress yields the 404 error (and the address bar has changed to www....com/setup.php. If I manually enter www.pamdidthis.webspace.virginmedia.com/flatpress/setup.php then I do get the first page of the installer but pressing 'Next' brings a 405 error.
    •  
      CommentAuthorStanley
    • CommentTimeAug 19th 2010 edited
     permalink
    I see what you mean. At first I thought it was because you didn't have php enabled (seems some do and some don't with virginmedia) but you get the first page of the installer up, so php pages are obviously working.

    I'm not sure about this 405 error, and I'm not familiar with the way you manage your files with virginmedia but I found this message, which isn't very pleasant reading. Someone asked their support about this very issue, and the answer they got was: "We do not provide or support scripting on Personal Webspace provided by Virginmedia."

    Maybe someone will have a better answer for you, but you could create your blog at somewhere like 110mb.com which is free and FlatPress works really well on. It'd save you a lot of trouble. I have my own server but I set a fairly anonymous one up at 110mb.com just to try it out - I was very impressed - quick, easy, and free.

    btw, nice jewellery! (please also see my PM to you)
    •  
      CommentAuthorpam
    • CommentTimeAug 19th 2010
     permalink
    I did an install of flatpress to the root and that worked, so it does work. I just can't get it to work if I install to a subdirectory (called flatpress). I did manage to get further but by manually going to flatpress/setup.php, saving the resultant html - this html has the 'Next' button pointing to the root again, not to flatpress/..., so I modified this html & uploaded that & clicked on that - then I got to the next page where it asks for username etc, but again the 'Next' button again is pointing to the root, not to flatpress - somewhere the installation can't work out I've installed to /flatpress/ - is there some trick with ftp that I don't know about?

    btw, thanks
    •  
      CommentAuthorStanley
    • CommentTimeAug 22nd 2010
     permalink
    Hi Pam,

    Sorry - been out in the sticks. If you open up the DEFAULTS.PHP file (this should be in your "flatpress folder - is it?) and look at the last two lines it sounds to me like your BLOG-ROOT is missing a value, so your BLOG_BASEURL is set to your root folder. Maybe this is the Virgin thing not letting you run scripts again?

    Don't take this as any kind of official fix - NWM may have other ideas - but you could try changing the last two lines of your defaults.php from:

    define('BLOG_ROOT', ('/'==($v=dirname($_SERVER['SCRIPT_NAME']))? $v : $v.'/') );

    define('BLOG_BASEURL', 'http://'.$_SERVER['HTTP_HOST']. BLOG_ROOT);


    to:

    define('BLOG_ROOT', ('/flatpress/') );

    define('BLOG_BASEURL', 'http://'.$_SERVER['HTTP_HOST']. BLOG_ROOT);


    However, I suspect that you may just be jumping hurdles all the time to get around the fact that Virgin don't really support what you're trying to do. I hope it works, but you could always just take out a free flatpress blog somewhere and run it in an iframe on a regular HTML page. It'd save you a lot of bother, I think, but you can try this with all your fingers and toes firmly crossed.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 23rd 2010
     permalink
    stan's fix is fine
    •  
      CommentAuthorpam
    • CommentTimeSep 2nd 2010
     permalink
    I finally got back round to trying this again & have debugged a little (learning php on the way) to find out what VirginMedia was doing as I was curious, also good learning for me.
    I put a php file called phptest.php into my flatpress directory and called that to see what was being set by $_SERVER['SCRIPT_NAME'], $_SERVER[’PHP_SELF’] and $_SERVER['REQUEST_URI']
    Result:
    script_name = /php-cgi
    php_self =
    request_uri = /flatpress/phptest.php

    thought it might be useful for anyone else trying to run flatpress on a virginmedia webspace.
    •  
      CommentAuthorpam
    • CommentTimeSep 2nd 2010
     permalink
    ok, after my php debugging playabout, i've now used Stan's fix & installation went smoothly. Thanks for your help. Now just got to customise & start blogging
    •  
      CommentAuthorNoWhereMan
    • CommentTimeSep 2nd 2010
     permalink
    have fun! :)