Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Moved to MediaTemple but Mint failed to work

Hi all,

I just moved to media temple and my blog is working fine, but my mint is not. I pretty sure after doing searched I go tmy local host server correct. I get this error message:

Warning: Unknown(none): failed to open stream: No such file or directory in Unknown on line 0

Warning: Unknown(none): failed to open stream: No such file or directory in Unknown on line 0

Warning: (null)() [function.include]: Failed opening ‘none’ for inclusion (include_path=’.:/usr/local/php-4.4.7-1/share/pear’) in Unknown on line 0

Can anybody help?

DOH! Figured it out its the htacess file.

Chris24
Minted
Posted on Sep 03, '07 at 04:31 pm

I’m having this problem aswell, what was your solution?

I’m having a related problem with my MediaTemple (I have a GridServer) and get the same error message as listed above when trying to access Mint.

Here’s the sequence of events:

I installed Mint (no problem, aside from the fact that the hostname isn’t localhost, but is external.XXXXXgridserver.com) and added the Mint WordPress plugin.

I ran the “installer” and created an created an .htaccess file in the /html/ folder in my domain and pasted in the code

AddType application/x-httpd-php .html .htm
php_value auto_prepend_file /home/12345/domains/mydomain.com/html/mint/config/auto.php

So far so good. Mint was working beautifully. To make life easier, I used the Mint WordPress plugin to add the script to all relevant pages. So far so good.

Then came the problem: To keep Mint from tracking itself, I created an .htaccess file in the /mint/ directory with the code

php_value auto_prepend_file none

The file uploaded as ASCII and permissions were set to 644, so it should be good to go.

However, when I now try to access http://movito.net/mint I get the same message as lingmister:

Warning: Unknown(none): failed to open stream: No such file or directory in Unknown on line 0

Warning: Unknown(none): failed to open stream: No such file or directory in Unknown on line 0

Warning: (null)() [function.include]: Failed opening 'none' for inclusion (include_path='.:/usr/local/php-4.4.7-1/share/pear') in Unknown on line 0

Renaming the .htaccess file (and thereby having it ignored) makes Mint accessible again.

After reading through various posts here at the forum I found some info that indicated that there was a problem with how MediaTemple GridServers handle this statement

AddType application/x-httpd-php .html .htm

and that the following was a better way to write it

<FilesMatch ".(html|htm)$">
SetHandler php4-script
</FilesMatch>

So I changed the root .htaccess file to reflect this. It now reads

<FilesMatch ".(html|htm)$">
SetHandler php4-script
</FilesMatch> 
php_value auto_prepend_file /home/12345/domains/mydomain,.com/html/mint/config/auto.php

This had no positive or negative effect on my site, so I’ll assume it works.

I therefore tried changing the .htaccess file in the Mint directory to look like this:

<FilesMatch ".(html|htm)$">
SetHandler php4-script
</FilesMatch>
php_value auto_prepend_file none

This had no effect on the error messages and it seems that there is some strange .htaccess problem at MediaTemple – or is it the code. I can’t tell which is the problem.

Thus, it seems that I am unable to prevent Mint from tracking itself on a GridServer at MediaTemple.

Any suggestions would be appreciated!

Shaun Inman
Mint/Pepper Developer
Posted on Nov 30, '07 at 12:06 pm

Have you tried changing

php_value auto_prepend_file none

to

php_value auto_prepend_file ''

Since the server appears to be treating the keyword none as the string file path '/none' maybe feeding it an empty string will prevent it from trying to prepend a file. If that doesn’t work, try creating a empty file (for convenience save it in mint/config/blank.php) and prepend it instead.

That said, this is a server configuration issue that should be brought to your hosts attention (the keyword none should not be treated as the string file path '/none').

I had the same problem on media temple and couldn’t solve it using a .htaccess file. however, adding this to php.ini in the mint directory fixed it:

auto_prepend_file=/domains/[mydomain.com]/html/mint/config/auto.php

where [mydomain.com] is your domain name (or whatever is in your domains directory).

that fixed it.

LeviFig
Minted
Posted on Mar 05, '08 at 05:18 pm

@Shaun

I had the same problem with (mt)! I used your solution to include a blank.php and it worked! The ’ ’ caused a 500 server error…

This is kind of a weird problem considering (mt) sponsors you… I will fill in a ticket later!

Cheers ;)

Thanks Shaun the blank file works :)

Is this what you mean Shaun?

Change the .htaccess in the /mint directory to:

php_value auto_prepend_file 'config/blank.php'
Shaun Inman
Mint/Pepper Developer
Posted on Sep 22, '08 at 08:50 am

Yes, except you will probably need to use the full server path to blank.php.

You must be logged in to reply. Login above or create an account