No input file specified

Permalink 5 users found helpful
Hi fellow C5 fans!

This is my first and possibly my last post here.

Over the past few months I've been looking for a suitable CMS for my website and business needs and had chosen C5.

After starting to compile an index.php page as a starting point to rewriting my static website, and using the example data, replacing it as I went, once I'd set pretty URLs, I couldn't get the links to work. I've tried everything I've read here about putting the php.ini file in the root directory of my site, extra lines in the .HTACCESS file etc, but nothing has worked.

My hosting provider is Heart Internet and I've raised support tickets with them regarding the issue, but they've drawn a blank and referred my back to yourselves.

I've just renewed my annual fee with Heart too, so I'm not considering moving host just now.

Concrete5 looks to be a great CMS that I could have worked with and easily taught clients to use; it's a pity I it won't work with my UK hosting provider.

I wish all the C5 community well.

Regards

Pete

peterfinch
 
jbx replied on at Permalink Reply
jbx
Hi Peter,

this is not an issue with Concrete5, more an issue with the way mod_rewrite works with a certain combination of Windows and apache in cgi mode (as I understand it). My first advice to everyone in this situation, is always to use Linux for hosting your websites, then you simply wont get the issue. However, I also understand that some people are reluctant to do this and for various reasons are either stuck with, or just simply prefer to host on Windows.

If you're willing to let me have a look at your setup, I should be able to get this working for you. Send me a private message if you would like me to have a look.

Jon
peterfinch replied on at Permalink Reply
peterfinch
Hi Jon

Thanks for such a prompt reply! Considering the time difference, I didn't expect a reply this early!

My hosting is a Linux one, and as far as I'm aware, has all the necessary requirements (checked OK with the installation). I'd deleted the C5 installation having had the problems but I can re-install it (aside my static site for the interim) if you're willing to take a look at the problem.

I'll send you my hosting and log-in details via a private message once I've reinstalled C5.

Thanks for your support!

Pete
jbx replied on at Permalink Reply
jbx
Time difference? Between Manchester and London? I know you're 'up norf' but still ;)

Anyways, fixed the problem.
In your case it was fixed by the following 2 changes:

.htaccess
change: RewriteRule ^(.*)$ index.php/$1 [L]
to: RewriteRule .* index.php [L]

site.php
add: define('SERVER_PATH_VARIABLE', 'REQUEST_URI');

Hope you can get back to using C5 properly now :)

Jon
peterfinch replied on at Permalink Best Answer Reply
peterfinch
Hi Jon

I just presumed you was in the US - before reading your profile :)

All the links now work fine - thanks! However, when I log-in, the toolbar is missing. I've logged out and back in again but it's still not showing.

Any ideas?

Thanks again for your excellent and speedy support!

Pete
jbx replied on at Permalink Reply
jbx
Ok - fixed - had to get a bit drastic with it tho! Ridiculous that this is even necessary!

Anyways - the fix...
site.php
removed: define('SERVER_PATH_VARIABLE', 'REQUEST_URI');

.htacess
changed: RewriteRule .* index.php [L}
to: RewriteRule ^(.*)$ index.php?pathinfo=$1 [L]

index.php
added:
if (isset($_GET["pathinfo"])){
   $_SERVER["PATH_INFO"] = $_GET["pathinfo"] ;
}
$si_url_query = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY);
parse_str($si_url_query, $_GET);


Not nice, but works!
I'm also going to refer this thread to another developer I know who works with Heart Internet and check he agrees with this fix. Do test and let me know if you get any other issues...

Jon
peterfinch replied on at Permalink Reply
peterfinch
Hi Jon

All seems to be working now - thanks!

I'll make a note of the file changes and download a copies for future installations.

Thanks again for all your support. I know nothing of PHP and server side stuff, so if it wasn't for your support, Concrete5 wouldn't have been an option for me - at least whilst I'm with Heart Internet.

Respec'!

Pete
jbx replied on at Permalink Reply
jbx
No problem, glad to help :)

Jon
jamonholmgren replied on at Permalink Reply
I've confirmed that this fix works in Dreamhost. Thanks Jon!
warrenz replied on at Permalink Reply
warrenz
I had the same problem on sellwoodfamilymedicine.com

But my fix for the public site was adding in site.php
define('SERVER_PATH_VARIABLE', 'REQUEST_URI');

Which wasn't there before.

But now the dashboard sitemap doesn't know where the contact page is??

I'll look at updating concrete next I Believe.
colin3440 replied on at Permalink Reply
That was it. You fixed it. THANK YOU SO MUCH!!!!!
warrenz replied on at Permalink Reply
warrenz
OK, I found a config.php file from another cms on the server that was conflicting with what concrete needs.

I had recently updated the other CMS and the new version created this conflict. aaaarg.
scalait replied on at Permalink Reply
scalait
another way to fix this: make sure that the php config variable "doc_root" is set.

2nd: check this bug / bugfix:http://www.concrete5.org/developers/bugs/5-4-1-1/path_info-problem/...

solved our problems.
cowland replied on at Permalink Reply
Marc - tried adding parameters to php5.ini, defining doc_root:

doc_root = /home/sites/example.com/public_html/

Note: I'm also currently with Heart Internet (pathinfo is set on by default)

Also tried adding your changes to request.php in that link. Unfortunately it doesn't seem to have had any effect when loading C5 in a subfolder. - I still have to delete the "SCRIPT_NAME" option to get a page to load that way.

Jon's solution is a hack but at least it parses the URL! It gets the dashboard mostly displaying but..

dashboard/sitemap/full/ seems to return a server error. Also passing variables a second time round (cID's etc) seems to not be parsed => 404.

Any ideas on how to fix request.php? - I've discussed the issue a more here:http://www.concrete5.org/community/forums/installation/heart-intern...
scalait replied on at Permalink Reply
scalait
"Jon's" Hack is my hack, I posted it a long time ago in the community.

We worked with this hack less than a year.

No the bugfixed "request.php" does the job on all of our servers / webhosters we are working with.

can you send me an demo account / login on an "heartinternet" webspace account? then I would love to check what's going wrong.
Teddie5000 replied on at Permalink Reply
Teddie5000
Hi MArc,


If you still want a demo account at Heart Internet setting up I will do one for you.


Edwin