View Full Version : How the HECK do I install ZEND?
chris_surfrider
04-01-2006, 12:36 AM
I have a Developer package (linux).
I have tried ALL day to try and install "Zend Optimizer".
I unzipped the .tar file and uploaded it to a folder on my webspace. (And yes, I downloaded the right version, as per 1&1's faq thing).
Then I opened puTTy (SSH program) and tried to run the install script by running the command:
./install (from the directory I created for Zend)
This is what it said:
ERROR: You do not have root priveleges to run this script!
At this point, I am totally lost.
It doesn't help to read 1&1's completely inane installation instructions at http://faq.1and1.com/scripting_languages_supported/php/11.html
Has anyone done this?
If so, can you explain EXACTLY, step by step how to do this???
Sorry to be such a pain, but this is really driving me nuts!
Sincerely (and with much future thanks),
-Chris R
eWebtricity
04-01-2006, 09:04 PM
It appears you have a shared hosting account, which means you don't really ever get "root" access. The 1and1 install instructions basically say copy the appropriate ZendOptimizer.so file to your webspace somewhere then edit your php.ini file to point to it using your directory structure (something like /homepages/xx/dxxxxxxx/htdocs/) which sounds easy enough. Your definitely not going to be able to run the ./install file to get it installed on a shared hosting account.
What version of PHP are you running? Perhaps we can help you find the correct zend module for it.
chris_surfrider
04-02-2006, 01:27 AM
It appears you have a shared hosting account, which means you don't really ever get "root" access. The 1and1 install instructions basically say copy the appropriate ZendOptimizer.so file to your webspace somewhere then edit your php.ini file to point to it using your directory structure (something like /homepages/xx/dxxxxxxx/htdocs/) which sounds easy enough. Your definitely not going to be able to run the ./install file to get it installed on a shared hosting account.
What version of PHP are you running? Perhaps we can help you find the correct zend module for it.
I'm running PHP Version 4.4.2
According to my "phpinfo[]" page, my php.ini file is located at:
/usr/local/lib/php.ini
But I don't know how to edit or access that file.
-------------------------------------------------------
1. I can't access "php.ini" from my FTP webspace. How would I go about accessing the file?
2. 1&1's FAQ answer for this was to simply do the following...
Change the php.ini file to include the following text:
zend_optimizer.optimization_level=15
zend_extension=/homepages/12/d1234567/htdocs/ZendOptimizer.so
Once I can access and edit the php.ini file, do I just "copy and paste" that in there?
Anywhere?
Again, I apologize for my complete lack of scripting knowledge and so on.
I'm definitely a marketer, and not so much a programmer :-)
Thanks guys, I really appreciate your help with this.
Sincerely,
-Chris Rempel
C-4 Hosting
04-02-2006, 03:51 AM
Dont quote me on this, but I think you can put a ' php.ini ' file in the root of your directory structure with just the lines of information you need and it will accept those.
Maybe eWeb or Highland can confirm this???
eWebtricity
04-02-2006, 02:49 PM
We've never used a shared account so I can't confirm C-4's suggestion. To answer your questions...
1. You can edit the php.ini file with the vi editor from the SSH command line.
2. You would simply copy/paste the lines but you need to adjust the path to reflect your account just like the instructions tell you to do.
snowboarder04
04-04-2006, 05:05 AM
Unless the 1and1 shared account servers have php running as CGI (which I doubt) there's no way to change php.ini settings for a shared account. Putting a php.ini file in the root folder is only used when php is running as CGI.
There's no way to install Zend Optimiser on a shared account because it encompasses the whole of the php installation on a server and requires commenting in the required Zend line in php.ini which would be inserted after root has run the ./install script.
aldee
04-04-2006, 01:59 PM
Unless the 1and1 shared account servers have php running as CGI (which I doubt) there's no way to change php.ini settings for a shared account. Putting a php.ini file in the root folder is only used when php is running as CGI.Of course they are. There is no other real option. Safe mode is an abomination and will be removed from future PHP versions anyway. suPHP is nothing I'd seriously consider either.
vBulletin® v3.7.0 Beta 4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.