Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2008, 06:41 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default Problems with 1and1 hosting

I have been satisfied with 1and1 hosting up until now when I have tried to use the Zend Framework on my site.

My problem lies with bootstrapping. The mod-rewrite engine does not seem to want to work. Here is what my .htaccess files is:

PHP Code:
AddType x-mapp-php5 .php
AddHandler x
-mapp-php5 .php

RewriteEngine on
RewriteRule 
!.(js|ico|gif|jpg|png|css)$ index.php 
Seems like it should work right? Wrong. I get this error:
Error 500 - Internal server error

An internal server error has occured!
Please try again later.

Does anyone here have an experience with Zend Framework and 1and1 hosting? Can anyone recommend a web hosting provider that is easier to use Zend Framework with? THANK YOU.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-03-2008, 04:35 AM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default

Not sure if you're still having trouble with this.

Try this in your .htaccess file:

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Should work for ya.

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-03-2008, 01:52 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

Check out Media Temple. Both their Grid Service and Dedicated Virtual Hosting plans support PHP5 now, and all the modules you need are installed by default.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 07:10 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Thanks for the help!

I have since moved on to a VPS (Rimuhosting). Have that much flexbility is a lot better for me, and I am also learning how to manage a server for real.

I still have my old 1and1 space though and I will give this new Rewrite code a try!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-01-2008, 07:41 AM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default The second code example works great on 1 and 1

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

works great on 1 and 1 web hosting for using the Zend Framework

I have tried it on my site at http://seo-samurai.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-05-2008, 12:49 PM
Ron Ron is offline
Junior Member
 
Join Date: Apr 2008
Posts: 7
Default 1and1 Zend Framework

This is what I used when setting Zend Framework on a dedicated 1and1 server.

in .htaccess
Code:
AddType x-mapp-php5 .php
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
in php.ini
i
Code:
nclude_path ="/homepages/**/***********/zend_library"
I was getting the 500 error before adding the php.ini file
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-11-2008, 06:04 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default

Quote:
Originally Posted by Ron View Post
This is what I used when setting Zend Framework on a dedicated 1and1 server.

in .htaccess
Code:
AddType x-mapp-php5 .php
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
in php.ini
i
Code:
nclude_path ="/homepages/**/***********/zend_library"
I was getting the 500 error before adding the php.ini file

I tried, but still fail. I do follow the "Official+ZF+QuickStart".

Now:
.htaccess is:

AddType x-mapp-php5 .php
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

php.ini is:

include_path="/homepages/23/d189849426/htdocs/1or9/card/library"

or

include_path="/homepages/23/d189849426/htdocs/1or9/card/library/Zend"

I tried both above. I put php.in at
/homepages/23/d189849426/htdocs/1or9/card/public
is that a right place?

Is there anyone can help me?
I really hate 1and1.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-17-2008, 08:03 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Lightbulb The french have done it again

Here guys is an htaccess configuration that I can confirm is working on my 1and1 account to run Zend Framework.

It didn't seem like I could find anything on the web except for, would you believe it, a bit of code I found it on a french website!

and here is my own htaccess file:

Code:
AddType x-mapp-php5 .php .html .htm
AddHandler x-mapp-php5 .php .html .htm

RewriteEngine On
RewriteBase /
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.html
Options -MultiViews
You can ignore the first two lines, they're just me wanting to fool people into thinking I have magically dynamic html files (it parses them as php 5). If you are not doing this you may want to edit the penultimate line to read:

Code:
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
Whatever your index file is really.

I haven't even bothered with php.ini files, however I am just starting with the framework so it might be necessary. Nonetheless I'll keep you updated either way.

Good luck, and let me know if that helps.

Last edited by bdvholmes : 04-17-2008 at 08:05 PM. Reason: Forgot to mention php.ini files
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-24-2008, 02:01 AM
Junior Member
 
Join Date: May 2008
Posts: 11
Default

htaccess file is very complex i have experienced problem with it but finally i sorted it out.

Have talked with 1and1 about the problem you are having they might fix it up for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:55 PM.