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

Error with advanced config .htaccess

I can access Mint OK and the tag is prepended properly to my pages using my site’s root .htaccess file. But if I add the php_value auto_prepend_file none line as instructed to an .htaccess file in the /mint directory it no longer works. I get this instead:

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.8-1/share/pear') in Unknown on line 0

Any idea what might be the problem?

Got the answer: I’m using MT as my host, and I’m having the same issue as described in this thread: http://haveamint.com/forum/troubleshoot … ed_to_work

The blank.php option Shaun mentioned worked for me.

Not sure if they have that prepend ‘none’ setup for some reason on their end… the same problem still remains, and MT’s been otherwise awesome for me so far.

Talkdoc
Minted
Posted on Oct 15, '09 at 09:33 pm

Is the .htaccess file in the mint directory absolutely necessary?

Aside from the fact that I can’t get it to work, I see no evidence that its absence is causing any problems or that Mint is reporting on its own activity.

Talkdoc
Minted
Posted on Oct 16, '09 at 01:11 am

Just received this reply from my hosting company’s tech support:

Our Apache setup doesn’t allow or use php values in the Apache .htaccess file. The servers main global php.ini file contains the following:

auto_prepend_file =

Therefore, you shouldn’t have to do anything because it’s already pointing to an empty path. However, should you want to enter a path or use another php.ini value that is different from the servers global php.ini file, you can make you own blank one. For instance, if you wanted to manually turn off php register_globals in a specific folder, you can create a blank file called php.ini and insert the following code:

register_globals = Off

This is only an example though and shouldn’t be used unless you really want to turn off register_globals. However, what you are requesting you should be all set if you wanted to this use no path.

Does this mean I don’t need to do anything or should I create this php.ini file inside the Mint directory with the php_value auto_prepend_file none?

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