No input file specified Wordpress

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
MeriBOT
-


Joined: 29 Nov 2004
Posts: 13

PostPosted: Wed Feb 23, 2005 3:49 pm    Post subject: No input file specified Wordpress Reply with quote

Well using XP Pro SP2 and abyss 2 beta3 and PHP and Mysql is all new just downloaded from sites. I installed Wordpress 1.5. When I try to make permanet links to work. eg:

/index.php/%year%/%monthnum%/%day%/%postname%/

You see my site address is: http://meripasand.sytes.net/
so the permanet link whould be like this..

http://meripasand.sytes.net/wp/index.php/2005/02/23/sample-post/

but i m getting No Input file specifed. I tryed everything, every combination to make it work ok.. but no solution meanwhile I came up with something wired.. which is when I put " / " with out quotes after any php file it show me the error..

eg: http://meripasand.sytes.net/index.php/

on wordpress wiki I saw that Wordpress uses mod_rewrite (apache) to make permanet links work correclty.. So what whould I do now..

I also chaged the php.ini setting (doc_root & cgi.force) but did'nt work.. I googled it too. but no solution yet.

Please help!
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Feb 24, 2005 2:23 am    Post subject: Re: No input file specified Wordpress Reply with quote

MeriBOT,

This error occurs because the default configuration of PHP doesn't conform to the CGI specification and thus doesn't interpret correctly /%year%/%monthnum%/%day%/%postname%/ that are appended to the script name.

To fix this, you should open php.ini and set cgi.fix_pathinfo to 1:
Code:

cgi.fix_pathinfo=1


Change also the settings of the PHP interpreter in Abyss Web Server so that its type is "Standard" instead of "PHP style".

We haven't yet seen the source code of WordPress, but if the above suggestions doesn't help, try replacing all the occurences of PATH_INFO in the PHP files of WordPress to ORIG_PATH_INFO. Actually, at the script startup, PHP stores PATH_INFO value in ORIG_PATH_INFO and deletes PATH_INFO contenst: very weird, but if you understand why, please write us a few lines to help us understand this behavior.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Mon Aug 15, 2005 5:57 pm    Post subject: Reply with quote

I'm having the exact same problem.

I tried to use /index.php/%year%/%monthnum%/%day%/%postname%/ since mod_rewrite isn't available, the permalinks change but get directed to my home page no matter which post of mine I click (I should naturally be directed to that particular post).

I set cgi.fix_pathinfo to 1, didn't do anything.

Changed PHP interpreter to Standard and I got: No input file specified.

I changed the PHP interpreter back to PHP style, replaced all PATH_INFO to ORIG_PATH_INFO nothing, while the permalinks are visable I get directed to my home page.

I asked in #WordPress channels and they said there's nothing that can be done.

I'm hoping that's not the case and a solution is available, am I wrong?
Have you had the opportunity to look at the source of WordPress and came up with something?

I'm willing to try just about anything so please throw your suggestions in my direction.
Would it help if I somehow provided the .htaccess file that gets generated if mod_rewrite is available?

BTW I'm using PHP4, and the newest X1 version of Abyss on Win XP SP2.

Thanks in advance.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Aug 16, 2005 4:36 pm    Post subject: Reply with quote

CypherBit,

The way PHP works and deals with PATH_INFO is bogus and we can do nothing about it.
A mod_rewrite like feature will be available in the future release. So please stay tuned.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Tue Aug 16, 2005 4:46 pm    Post subject: Reply with quote

Oh I see, it's not a must have feature for me but something I'd like. I'll live without it.

Good news on an mod_rewrite like feature, will definitely stay tuned.

Thank you for your reply.
Back to top View user's profile Send private message
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Mon Nov 21, 2005 12:01 am    Post subject: Reply with quote

Has anything changed as far as pretty permlinks are concerned. Has anyone been able to implement them.

This has been bugging me for quite some time now...to the point I'm considering switching servers...going back to Apache.
I switched to Abyss mainly because of ASP and it's simplicity but since I don't need ASP anymore and stuff like http://www.uniformserver.com/ exists I'm reconsidering.

Thank you in advance to anyone who even has a half-baked solution for this problem.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Nov 21, 2005 12:06 pm    Post subject: Reply with quote

CypherBit,

We're working on adding rewriting rules in the next release.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Mon Nov 21, 2005 3:48 pm    Post subject: Reply with quote

aprelium,

that is good news indeed, but this has been the case for quite some time...I think. Are there any alphas/betas available, I know giving up dates isn't common practice but what kind of timeframe are we talking about 1 week, 1 month, 3 months?

Also there's a fix for WordPress on IIS 6, is there something similar for Abyss?
Please take a look here: http://codex.wordpress.org/Using_Permalinks especially under "Using Permalinks Without mod_rewrite".
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Nov 22, 2005 11:11 am    Post subject: Reply with quote

CypherBit wrote:
aprelium,

that is good news indeed, but this has been the case for quite some time...I think. Are there any alphas/betas available, I know giving up dates isn't common practice but what kind of timeframe are we talking about 1 week, 1 month, 3 months?


Developing software requires time, and developing stable software requires even more time. :-)

CypherBit wrote:
Also there's a fix for WordPress on IIS 6, is there something similar for Abyss?
Please take a look here: http://codex.wordpress.org/Using_Permalinks especially under "Using Permalinks Without mod_rewrite".

This isn't a fix for IIS 6, this is a fix for PHP (I see nothing specific to IIS there - it's all about modifying php.ini). And this fix is similar to what we have suggested a few months ago (see the above messages). It will work with some versions of PHP and won't work with others.

Anyway, we'll post tomorrow a temporary solution using a script.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Tue Nov 22, 2005 6:38 pm    Post subject: Reply with quote

aprelium,

it sure does and Abyss does show it :-)
Great, I can't wait for it. Hopefully it will fix my problem.

Thank you.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Nov 23, 2005 12:06 pm    Post subject: Reply with quote

CypherBit,

We'll use the script in http://www.aprelium.com/forum/viewtopic.php?p=46856#46856 to simulate Apache's mod_rewrite. Please read that post to know how to configure your custom error pages also to get to work.

The script you'll use is a slightly modified version of the original available in the cited post. You'll have to modify of course the redirection rules and we've removed the line header("Status: 307"); to have transparent redirections (so that the URL in the browser is not updated when the redirection is made).

Code:

<?php

/* Add in this array the list of (old path => new path) pairs */
$redirection = array(
   '^wiki/?(.*)$' => '/w/index.php?title=$1',
   '^article/?(.*)$' => '/article.php?title=$1'
);

/* Get the URI and trim leading slashes */
$uri = ltrim($_SERVER["REDIRECT_SCRIPT_NAME"], "/");

foreach ($redirection as $key => $value)
{
   if (eregi($key, $uri))
   {
        /* Convert the replacement string syntax - $1 -> \1 */
        /* and perform the substitution */
      $new_uri = eregi_replace($key, str_replace("$", "\\", $value), $uri);
      break;
   }
}

if (isset($new_uri))
{
   header("Location: $new_uri");
   exit;
}

?>

<!-- Your 404 error page -->

<HTML>
<HEAD>
<TITLE>
Not Found
</TITLE>
</HEAD>
<BODY>
The object <tt><?php echo $uri; ?></tt> is not available.
</BODY>
</HTML>


In WordPress, edit the Permalink option (See http://codex.wordpress.org/Permalinks_Options_SubPanel for more information). After choosing the structure of Permalinks you should get the rewrite rules that goes in a .htaccess file if you were using Apache.

These rules should be put in the $redirection variable in the script (listed above). Here is how to to transform the rules:

Ignore most of the lines except those which begin with RewriteRule:

For example:

Code:
RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]


should be translated to

Code:
'^wiki/?(.*)$' => '/w/index.php?title=$1'
and added to the $redirection variable in the script.

If the .htaccess content generated by permalink is not easy to translate or if you have problems converting it, please post it here and we'll show you how to do the conversion.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Wed Nov 30, 2005 5:25 pm    Post subject: Reply with quote

Thank you aprelium for you assistance.
I do however have problems with it, meaning I'm not sure if I'm doing what I'm supposed to.

This is what my 404.php looks like right now. It's also configured in my custom error pages.
Code:
<?php

/* Add in this array the list of (old path => new path) pairs */
$redirection = array(
   '/?(.*)$' => '/index.php/%year%/%monthnum%/%day%/%postname%/'
);

/* Get the URI and trim leading slashes */
$uri = ltrim($_SERVER["REDIRECT_SCRIPT_NAME"], "/");

foreach ($redirection as $key => $value)
{
   if (eregi($key, $uri))
   {
        /* Convert the replacement string syntax - $1 -> \1 */
        /* and perform the substitution */
      $new_uri = eregi_replace($key, str_replace("$", "\\", $value), $uri);
      break;
   }
}

if (isset($new_uri))
{
   header("Location: $new_uri");
   exit;
}

?>

<!-- Your 404 error page -->

<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
The object <tt><?php echo $uri; ?></tt> is not available.
</BODY>
</HTML>


My permlinks looked like this: /blog/?p=32 and have used this code for the "pretty" ones: /index.php/%year%/%monthnum%/%day%/%postname%/

Please be as detailed as possible, since I'm obviously doing something wrong or missing a step completely.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Dec 01, 2005 12:35 pm    Post subject: Reply with quote

[quote="CypherBit"]
'/?(.*)$' => '/index.php/%year%/%monthnum%/%day%/%postname%/'
[/code]
This part is the cause of the problem. %year%, %day%, and %postname% are internal variable in Wordpress and do not mean anything for the web server. They are also not referenced in the .htaccess rules.

Can you please give us exactly what Wordpress asked you to put in your .htaccess file? This is what we need to update the redirection rules. The redirection rules should reference variables like $1 and don't contain any of the %var% variables.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Thu Dec 01, 2005 8:18 pm    Post subject: Reply with quote

At the risk of sounding stupid (probably too late), I have no idea what you mean by: Can you please give us exactly what Wordpress asked you to put in your .htaccess file?

I didn't even have a .htaccess file. Didn't know it's needed. Where should I put it, I'll chmod it 777; more importantly where should I check to see what Wordpress asked me? I don't get asked anything, I get "Permalink structure updated" and that's it.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Dec 02, 2005 2:49 pm    Post subject: Reply with quote

CypherBit wrote:
At the risk of sounding stupid (probably too late), I have no idea what you mean by: Can you please give us exactly what Wordpress asked you to put in your .htaccess file?.


As explained in a previous message, in WordPress 1.5 and higher, edit the Permalink option (See http://codex.wordpress.org/Permalinks_Options_SubPanel for more information). After choosing the structure of Permalinks you should get the rewrite rules that shoud go in a .htaccess file if you were using Apache.

These are the rules that we need. Alternatively, search for a .htaccess file in your WordPress directory and let us know what it contains.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Fri Dec 02, 2005 3:02 pm    Post subject: Reply with quote

Quote:
After choosing the structure of Permalinks you should get the rewrite rules that shoud go in a .htaccess file if you were using Apache.

I don't see the rewrite rules anywhere.

Quote:
These are the rules that we need. Alternatively, search for a .htaccess file in your WordPress directory and let us know what it contains.

No .htaccess file is generated although I get "Permalink structure updated". I even made a .htaccess file put it at the root of my blog and it's empty after updating my permalink structure.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Dec 03, 2005 4:09 pm    Post subject: Reply with quote

CypherBit,

What is the exact version of WordPress you are using?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Sat Dec 03, 2005 7:51 pm    Post subject: Reply with quote

1.5.2
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 04, 2005 2:41 pm    Post subject: Reply with quote

CypherBit wrote:
1.5.2

OK. So we'll test it and will give you the instructions to set this Permalink feature.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Sun Dec 04, 2005 11:40 pm    Post subject: Reply with quote

Great, thank you for all your troubles.
Back to top View user's profile Send private message
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Tue Jan 17, 2006 7:22 pm    Post subject: Reply with quote

Any progress here, v2.0 of WordPress is out and am wondering if anything has been done as far as the tests are concerned.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jan 18, 2006 2:57 pm    Post subject: Reply with quote

CypherBit wrote:
Any progress here, v2.0 of WordPress is out and am wondering if anything has been done as far as the tests are concerned.


We've first updated php.ini as explained in http://codex.wordpress.org/Using_Permalinks#Using_Permalinks_Without_mod_rewrite by adding/setting:

Code:
cgi.fix_pathinfo = 1
cgi.force_redirect = 0


Next, we've updated the PHP interpreter declaration inside Abyss Web Server so that its type is set to Standard (instead of PHP Style).

We've installed WordPress 2.0. After having a working blog, we went to WordPress Admin > Options > Permalink, selected "Date and name based", and pressed "Update Permalink Structure" button... And voila... It works now exactly as you want. :-)
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Sat Jan 21, 2006 2:36 pm    Post subject: Reply with quote

Thank you for all your troubles aprelium.
Unfortuantelly this doesn't work for me. I updated my php.ini, PHP interpreter declaration, restarted the server and changed my permalinks to "Date and name based".

I receive: "No input file specified." error.

Could the PHP version be the cause of this? I'm still using 4.3.10.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Jan 22, 2006 12:59 pm    Post subject: Reply with quote

CypherBit,

Can you please send us your abyss.conf and php.ini file?
Do you get "No input file specified" with all PHP files?
Can you try for a while the preconfigured PHP 5 package http://www.aprelium.com/abyssws/php5win.html (you don't need uninstalling your PHP 4 to do so)?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Sun Jan 22, 2006 8:41 pm    Post subject: Reply with quote

aprelium, I checked my php.ini and noticed an error in cgi.fix_pathinfo, which I fixed and I'm almost there now.

Please take a look here: http://www.cypherbit.com/blog/
The permalinks work! It's just seems there's no .css file now.

I'm actually using PHP 5.12 (not the precenofigured package) with Abyss on my USB key and it works great, I just haven't gotten around to update it where my blog is situated.

Thank you for all your troubles.
If my .conf and php.ini are still needed let me know.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jan 23, 2006 2:24 pm    Post subject: Reply with quote

CypherBit,

It works fine for us and there is even a CSS file (and a nice blog template). Please try refreshing your browser (full refresh).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Mon Jan 23, 2006 6:31 pm    Post subject: Reply with quote

Well the main page works for me as well, but if you click on a particular entry (permlink) it does not. I've tried it in multiple browsers.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jan 24, 2006 1:08 pm    Post subject: Reply with quote

CypherBit wrote:
Well the main page works for me as well, but if you click on a particular entry (permlink) it does not. I've tried it in multiple browsers.

The HTML source code reveals a path problem with the CSS file:

Code:

<link rel="stylesheet" href="wp-content/themes/cypherbit-blog/style.css" type="text/css" media="screen" />


The CSS file is relative to the current page (does not start with a slash). So fix it in your theme setup to be /blog/wp-content/themes/cypherbit-blog/style.css .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CypherBit
-


Joined: 27 Aug 2004
Posts: 18

PostPosted: Tue Jan 24, 2006 6:17 pm    Post subject: Reply with quote

An easy fix indeed.

aprelium thank you so much. I really appreciate it.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jan 25, 2006 2:18 pm    Post subject: Reply with quote

CypherBit,

You're welcome.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group