farzher Posted February 27, 2011 Share Posted February 27, 2011 I got Zend framework running fine on WAMP but trying to get it working on my web host isn't going so well... How do I set up the index.php file so the application path is correct and all the right libraries get linked? Quote Link to comment https://forums.phpfreaks.com/topic/228991-how-do-install-zend-framework-to-my-web-host-o_o/ Share on other sites More sharing options...
farzher Posted February 27, 2011 Author Share Posted February 27, 2011 Some errors look like this: Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/webmall.net/httpdocs/index.php on line 12 Quote Link to comment https://forums.phpfreaks.com/topic/228991-how-do-install-zend-framework-to-my-web-host-o_o/#findComment-1180239 Share on other sites More sharing options...
ignace Posted February 27, 2011 Share Posted February 27, 2011 Have you uploaded Zend framework to your webhost? Is this path available in the include_path? Quote Link to comment https://forums.phpfreaks.com/topic/228991-how-do-install-zend-framework-to-my-web-host-o_o/#findComment-1180250 Share on other sites More sharing options...
farzher Posted February 27, 2011 Author Share Posted February 27, 2011 Yeah I don't think I'm using the correct include path though, on my local server it was just C:\wamp\www On my web host I'm using this in the php.ini: include_path=".:/var/www/vhosts/webmall.net/httpdocs/library" How can I check what the right path is? I have the library folder in the root, but apparently that include path doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/228991-how-do-install-zend-framework-to-my-web-host-o_o/#findComment-1180266 Share on other sites More sharing options...
ignace Posted February 27, 2011 Share Posted February 27, 2011 Have you uploaded the directory Zend into library? Do you overwrite the include_path in your application through set_incude_path()? Quote Link to comment https://forums.phpfreaks.com/topic/228991-how-do-install-zend-framework-to-my-web-host-o_o/#findComment-1180267 Share on other sites More sharing options...
farzher Posted February 27, 2011 Author Share Posted February 27, 2011 Wow, I was overwriting it using that... thanks! But I still have one crazy problem with my .htaccess rewrite. When I upload this .htaccess file my index.php comes out as html... o_O without the .htaccess it processes the index script fine... Here's the .htaccess code: AddHandler x-mapp-php5 .php AddType x-mapp-php5 .php Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(txt|swf|js|ico|gif|jpg|png|css|xml)$ / I've tried a few different codes I found online, using any of them makes my index output as html. All I'm trying to do is remove the index.php from the url. Quote Link to comment https://forums.phpfreaks.com/topic/228991-how-do-install-zend-framework-to-my-web-host-o_o/#findComment-1180268 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.