Knowledge base/Help /Installation

ZEND Optimizer on your server+UPDATE

Christian
posted this on February 20, 2012 19:09

Installing the ZEND optimizer files on the web server can be a tricky thing.

A detail in the discription of the ZEND installation guide my server provided

(1&1/big commercial server) was quite important to make things running.

..

"Since the settings defined in the php.ini file only apply to the folder where

it is saved, it is now necessary to upload the php.ini file to any additional

subfolders that contain files which require Zend Optimizer."

..

The PHP.INI file needs to be in other folders.. at least everywhere in the admin

folder. F.e. when updating to a new MotoCMS version, the PHP.INI file had to be

also in the "myserver/admin/actions/update" folder. Maybe it's helpful for others.

..

OH! ..that noise. Back to the SEN'heisers.

Regards, CBoerner

 

UPDATE (for updaters): With the 1.8 update a new folder "m" (mobile editor)

is added onto your server space. It also needs the php.ini in the above/below

mentioned folders, since it's a seperate mobile web editor (with its own folder

structure). No big news, i just wanted to add the info since update "m" is big.

 

Comments

User photo
Kostas Snider
CMS Guide

Thank you so much, Christian!

You're fully correct, on some servers it will be necessary to upload the php.ini (or php5.ini) file to admin/actions/update/, admin/actions/backup/, admin/modules/(each folder)/

On other servers uploading php.ini file just to the root folder is enough. Or to the root, admin and admin/actions/ folders only.

Sometimes, you will not be able to install Zend Optimizer at all - when the php.ini file have to be in some specific folder that can be accessed only by hosting provider.

Many things are depending on server's "personality".

Best regards,

Kostas

February 21, 2012 08:36
User photo
Selectdp

I am getting a message "Your website files are not supported by Zend Guard Loader intalled on your server. " after I uploaded my site to my hosting company - they had v 3.3 for their PHP v5.3.8 - are there any hosting companies that easily meet your hosting requirements?

April 27, 2012 17:29
User photo
Mathew Brown
CMS Guide

Hello,

If you have PHP version 5.3 installed on your server you should ask your hosting provider to install Zend Guard Loader for it. After they install it please contact our support team for compatible files for PHP 5.3.

If they can not install Zend Guard Loader so we can suggest you godaddy.com, bluehost.com and hostgator.com

We're sorry for inconveniences!

Best regards,

Mathew Brown

April 29, 2012 02:30
User photo
Jörg Seidel

Hallo,

Ich habe gestern ein Template erworben und mit FileZilla auf meinen Host bei STRATO AG hochgeladen. Nun bekomme ich eine Fehlermeldung, dass Zend Optimizer nicht installiert ist. Oben hat Christian gepostet, dass es auch an der fehlenden PHP.INI liegen kann. Mein Frage:

1.) Wie und womit erstellt man eine PHP.ini- Datei, als was muss man sie abspeichern (TXT etc.. ???)

2.)  wo genau muss ich denn die PHP.INI eingebaut werden

3.) was muss in der Datei stehen?

Würde mich über eine schnelle Info sher freuen...

Vielen Dank

Jörg

May 18, 2012 14:59
User photo
Mathew Brown
CMS Guide

Hello Jörg,

This instruction depends on server configurations.  If it allows user to enable Zend Optimizer you'll manage to do this, but if it is forbidden so you won't enable it anyhow.

So in this case you'd better submit new request providing your FTP details there or contact directly your hosting provider asking them to install Zend Optimizer for you.

Best regards,

Mathew Brown

May 20, 2012 07:05
User photo
Jörg Seidel

Hallo Mathew

vielen Dank für deine Nachricht. Ich kann dir nur folgendes sagen: Mein Provider hat mir einen Link geschickt, der auch auf eine FAQ-Bereich hinweist. Dieser Link heißt: http://www.strato-faq.de/1663

Meine PHP-Version ist 5.3.18 und die Zend Optimizer Version kenn ich noch nicht. Wie du aber sehen kannst, muss ich da auf PHP 5.2 wechseln und dazu eine ".htaccess-Datei" erstellen. Nun hat mein Template aber eine solche Datei schon. Was soll ich tun? Und wo muss die Datei hin? Außerdem muss ich wohl noch PHP.INI-Dateien erstellen? Stimmt der Inhalt, wie er in dem Link angegeben ist? Und in welche Verzeichnisse muss ich die PHP.Ini Datei hochladen?

Ich bin hier ziemlich überfordert. Ich bekomme das Template so nicht zum laufen. Evtl muss ich vom Kauf zurücktreten und dich bitten, mir den Betrag zurück zu erstatten, wenn es nicht klappt.

Hoffe du oder jemand anderes kannst mir weiterhelfen...!

Viele Grüße

Jörg Seidel

June 03, 2012 15:23
User photo
Mathew Brown
CMS Guide

Hello Jörg,

You've made right decision that asked us about it!

I've submitted a request for you and you should receive message to your email. Could you provide us with your FTP access details and website URL so we could help you. It's difficult to say anything without access to server or even website URL.

Do not provide server details here but in your request

We're sorry for inconveniences!

Best regards,

Mathew Brown

June 04, 2012 00:21
User photo
Christian

Hi Jörg,

 

what was the result with Zend on Strato? Did it work? Strato was tricky for

us when setting up ZEND optimizer. We switched to another domain/provider.

 

Many regards, Christian

July 02, 2012 17:39
User photo
Jörg Seidel

Hallo Christian,

nach etwas Kommunikationsschwieriegkeiten habe ich raus bekommen, dass Zend bei Strato auf den Servern installiert ist du musst dann nur noch die PHP Version downgraden mit einer htaccess-Datei... dann läuft alles bestens...

Liebe Grüße

Jörg

July 05, 2012 15:49
User photo
Christian

Hi Jörg, thanks for the info. Different server behavior is a nighmare BUT delight when its solved.

Downgrading PHP with a htaccess is something you might explain me. (cboerner at g** dot ne*).

..

Invisible server files (copied via FTP) can easily be made visible (MacOSX) with the tool "Houdini".

July 28, 2012 12:28
User photo
Konstantinos

Hallo 

Ich kriege das irgend wie nicht hin mit dem Zend Optimizer.

jetzt wollte Ich mal fragen ob man das Admin Panel Installation extra bestellen kann 

August 04, 2012 07:58
User photo
Eric Curtis
CMS Guide

Hello Konstantinos,

We do not have German Representative unfortunately, so please do not mind, if I have missed something in your message. 

Zend Optimizer (for php 5.2) & Zend Guard Loader (for php 5.3) should be installed on the server, since our admin files are encrypted using Zend technology. Otherwise the product will not run. Sure, there may be other issues (customer's mistakes, server's "personality" and so on)

Sure, you can order the installation separately by submitting a ticket to our support team here providing your website URL and FTP access details. It will cost you 79$. 

Best regards, 
Eric Curtis

August 04, 2012 17:43
User photo
Christian

Hi Konstantinos,

i'm answering in english, since it is an english forum (oder?/isn't it?) and the Moto support speaks english.

Setting up the admin panel with "Zend Optimizer" can be tricky, it is realy up to your server. The best thing

is really to ask the server support for help. They really know their server and have done installations many

times. It might get a while for an support answer but then they are the guys who know most and help quickly.

..

If you are on a mac, don't forget to make invisible files visible (Houdini Freeware etc). When copying files

from a mac folder to ftp via by drag&drop, invisible files (.htaccess) might not be copied over. In short, it

just don't work because files are missing etc.

..

That's it. Christian

August 04, 2012 17:45
User photo
Bruce Miller
CMS Guide

Thank you very much for assistance and for your answer!

August 05, 2012 11:35
User photo
A.M. Mottola

I'm getting the same error:

"Selectdp

I am getting a message "Your website files are not supported by Zend Guard Loader intalled on your server. " after I uploaded my site to my hosting company - they had v 3.3 for their PHP v5.3.8 - are there any hosting companies that easily meet your hosting requirements?

April 27, 2012 17:29"

My hosting company has the following:

root@rapid [~]# php -m | grep gd
gd
root@rapid [~]# php -m | grep curl
curl
root@rapid [~]# php -m | grep mcrypt
mcrypt
root@rapid [~]# php -v
PHP 5.3.16 (cli) (built: Aug 31 2012 02:24:49)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

I have already uploaded the PHP 5.3.x update files. There are no php.ini files in my template. There are no PHP5.ini files in my template.

The following test worked:

pureisland.com/test.txt

but the install is still returning the error above.

September 16, 2012 10:05
User photo
A.M. Mottola

Also, checked Zend forums and found the following posts:

Re: Problem with upgrade to Zend Guard 5.5

Postby zele20 on Thu Sep 08, 2011 4:35 pm

Im' installing a CMS FLASH MOTO and the our support said me that in result of phpinfo() must show Zend Guard Loader v5.5

Re: Problem with upgrade to Zend Guard 5.5

Postby kentatzend on Thu Sep 08, 2011 4:42 pm

you have Guard Loader installed correctly The Guard ersion is 5.5 but the "internal" version for the loader is 3.3. This is similar to the php engine reporting that it is V2.3 but the php version is 5.3 ...
September 16, 2012 10:48
User photo
A.M. Mottola

This build works with all recommended extensions installed:

 

root@rapid [~]# php -m | grep gd
gd
root@rapid [~]# php -m | grep curl
curl
root@rapid [~]# php -m | grep mcrypt
mcrypt
root@rapid [~]# php -v
PHP 5.3.16 (cli) (built: Aug 31 2012 02:24:49)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

September 16, 2012 14:53
User photo
Eric Curtis
CMS Guide

Hello Anne,

As I can see your admin is up and running now. We have fixed the issue in your ticket 39946.

Best regards,
Eric Curtis

September 18, 2012 01:47
User photo
alen gaspar

Hi Jörg,

ich habe das gleiche Problem. Habe mir auch ein Template gekauft und bin bei STRATO. Nun bin ich auch ziemlich verwzweifelt und habe schon sehr viel telefoniert. Habe auch von PHP5.3 auf PHP5.2 runtergestellt und nun sollte man ja noch diese .htacces einfügen. Wo hast du das den eingefügt/welche Ordner und was ist mit der php.ini?? Über eine Antwort würde ich mich freuen!!

Grüße

Alen

November 08, 2012 07:41
User photo
alen gaspar

Hi,

Ich habe bei Ihnen ein CMS-Template erworben. Ich bin bei der STRATO AG und habe per FilleZilla das template Binar hochgeladen. Wie mein Vorredner habe ich von der STRATO AG folgenden Link bekommen http://www.strato-faq.de/artikel.html?sessionID=562923c5ccbb0d15016f29a9ac4d3c8d&id=1663 um dieses Template zum laufen zu bringen. Jetzt habe auchich versucht das PHP durch die .htaccess down zu graden. Jedoch kommt bei mir immer noch die Meldung das kein ZEND Optimizer vorhanden sein soll. Vlt habe ich diese .htaccess falsch importiert? Muss ich die vom template vorhandene .htaccess überschreiben?? Laut Strato ist ein Zend Optimizer vorhanden. BItte um Hilfe ich bin langsam am verzweifeln.

 

Mit freundlichen Grüßen

 

Alen Gaspar

November 09, 2012 05:13
User photo
Christian

Hello, i followed the above mentioned link for the setup at STRATO domain hosting.

 

They talk about STRATO SpeedPlus http://www.strato-faq.de/317 which is the Strato "tech" behind it (from/ab BasicWeb XL).

Clients with older "tech" (PowerWeb XE, PowerWeb Basic,BasicWeb XL) can upgrade for free http://www.strato-faq.de/1613

Check if you have the right package (starts Basic Web XL) and that the new "tech" is provided (all packets from 01.12.2009)

 

Maybe a domain forwarding/Domain Weiterleitung to another server or bigger server packet can also help with this issue.

We simply did a domain packet upgrade for more real space, more included domains and SSL functions for Facebook etc.

 

ps:hi alen, der support hier spricht englisch. ich selbst bin nur benutzer. frag direkt den moto support/submit a ticket an

der richtigen stelle http://support.cms-guide.com/requests/new

Die .htaccess datei kann es nur einmal geben, das heist also überschreiben (vorher sichern/umbenennen). auch müssen

alle files auf dem server bestimmte schreibrechte (file permissions) besitzen/bekommen. mit filezilla rechtsklick auf eine

datei und im dropdown "..file permission" wählen. (mein filezilla ist in englisch etc). Denn wenn dateien nicht beschrieben

werden können/überschrieben werden können geht gar nichts. es gibt's errormeldungen obwohl alles installiert ist. frage

den support direkt wegen den "file permissions" auf deinem server. vielleicht richten sie die permissions für dich ja ein etc.

 

Regards, Christian

November 12, 2012 14:31
User photo
Hani Lgd

Hi, where is this php.ini file ??? I looked everywhere but I did not find it.

November 28, 2012 10:52
User photo
Christian

@ Hani..

 

The PHP.ini file should be on your server. If you have a domain (www.xyz.com etc) and domain space (space for pictures etc data)

you can get to this data via a FTP application (FileZilla?). You have to log-in with Filezilla to your webspace via a log-in name and

a password. All this should be provided by the company which holds your domain/domain space OR you set it up via some web-

site (of the company) where you define your email accounts. Once you setup FTP and Log-in via the FTP program (Filezilla etc),

you are able to see all the files on your server, all folders just everything which loads if someone opens your website. There is

the php.ini file next to other .php or .xml files just on the root (not in another folder etc) of your webspace. Check it out. :-)

 

ps: hopefully this was not all about something you already know (for years). I'll be ashamed. // So where's the sun these days?

November 28, 2012 11:25
User photo
Hani Lgd

Thank you for your fast answer Christian !

But I already check it and confirm you that there is absolutely not php.ini file on my personal ftp.

I don't know if it could help, but I get my personal web space from OVH.COM

November 28, 2012 11:29
User photo
Christian

Hi, i'm actually helping out in my breaks. Question: Do you have an index.php somewhere?

If not, it might be just the wrong account ..or you are looking in a folder on your server etc.

The php.ini file has to be next to the index.php file 100% (on the root of your server space.

If not: you are looking not at the correct place OR nothing is currently installed (easy one :-)

That's it for me. Good luck, go on :-)

November 28, 2012 13:03
User photo
Hani Lgd

I think it's not installed... I'm sorry but I have absolutely no idea how to do it... Could you help me ?

November 28, 2012 13:34
User photo
Christian

No, can't help, not my job. Ask support, read here: http://support.cms-guide.com/entries/22236098-moto-cms-html-templat...

I'm out (now). Regards, Christian

November 28, 2012 14:46
User photo
alen gaspar

Hi,

create a ticket for request!!!

Regards, Alen 

November 28, 2012 18:02
User photo
Eric Curtis
CMS Guide

Hello Hani,

Please be advised, php.ini file is not always accessible on shared hosting servers since it is located in the folder which is not visible for end users (or only using SSH connection).

You should check php_info file to determine your php.ini file location. Absolute path to the file will be displayed in the Loaded Configuration File section. In your case it is /usr/local/lib/php.ini (please refer to http://www.izi-events.com/kanaftchian/admin/actions/php_info.php)

Also sometimes server can parse additional php.ini files, which user can create himself, it should be placed to /public_html or /cgi-bin folder.

You have PHP version 4.4 installed on your server, while PHP version 5.2 or 5.3 are required to run the product. 
Also you need Zend Optimizer v. 3.3.x or higher for PHP 5.2 or Zend Guard Loader v. 3.3 or higher for PHP 5.3

Since process of server configuration depends on each hosting provider "personality", I suggest you to contact your hosting provider and ask them to upgrade the PHP version and install Zend extension compatible with this version. 

Best regards, 
Eric Curtis

November 28, 2012 23:10
User photo
Nariman Chizari

Hallo Jörg ich habe das gleiche Problem bei strato. Kanns du mir bitte detailiert erklären wie du das gemacht hast mit der „PHP version downgraden mit einer htaccess-Datei“.Das ist der code von meiner htaccess-Datei die vorhanden war bei dem cms flash template.

 

Options +FollowSymLinks +ExecCGI

 

<IfModule mod_rewrite.c>

  RewriteEngine On

 

  ## uncomment the following line, if you are having trouble

  ## getting no_script_name to work

  #RewriteBase /

 

  ## remove trailing slash

  #RewriteCond %{REQUEST_FILENAME} !-d

  #RewriteCond %{REQUEST_URI} ^(.+)/$

  #RewriteRule ^(.+)/$  $1 [R=301,L]

 

  ## turn off index.html, it is for offline mode

  RewriteRule ^.*index.html$ index.php [QSA]

 

  ## no, so we redirect to our front web controller

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteRule ^(.*)$ index.php [QSA,L]

</IfModule>

 

Kann mir bitte jemand sagen was ich da ändern muss um die PHP version downzugraden??

 

Das ist die php.ini die Ich laut strato anlegen sollte um den vorinstalierten Zend Opt. Zu aktivieren.

 

zend_optimizer.optimization_level=15

zend_extension=/usr/zend/5_2_x_comp/ZendOptimizer.so

safe_mode = off

 

wäre super wenn mir einer helfen könnte.

November 29, 2012 05:00
User photo
Eric Curtis
CMS Guide

Hello Nariman,

Please try to add following row to the beginning of your .htaccess file:

AddType application/x-httpd-php52 .php .php5

Your php.ini file (guess it is correct) should be placed to all template subfolders which are running Zend:

/admin
/admin/modules/~all subfolders
/admin/actions
/admin/actions/backup
/admin/actions/backup/libs
/admin/actions/update
/admin/actions/update/libs
/m
/m/admin
/m/admin/modules/~all subfolders
/m/admin/actions

After that you should be ok, but I strongly recommend you to contact your hosting provider support team for help

Also, please be advised, we do have only English support representative so communication on any other language may cause confusion

Best regards, 
Eric Curtis

November 29, 2012 06:11
User photo
Sussie Andrews

About a week ago I got new HTML CMS template from MotoCMS but I decided to install it myself as I had some practice working with FileZilla and permissions. I spent almost 18 hours working on my template and nothing worked out all I got is that Zend Optimizer is not installed. I spent a lot of time with 1&1.com rep on the phone but he was just pointing me to useless posts that did not work for me (I even have no idea how php.ini works and what it should have inside). So I decided not to spoil my time and simply got new account with BlueHost, uploaded my template and thats it - I went to my domain name and the template was up and running. I am sure next time I will listen to service provider's recommendations and will not waste my time again. So if you have these Zend issues, better go to BlueHost and get an account with them.

May 07, 2013 14:47
User photo
Dennis McMurphy
CMS Guide

Hello Sussie

Thank you for sharing your experience.

Best regards
Dennis.

May 09, 2013 07:20
User photo
Christian

Dear sirs and mesdames :-)

if we may add some light to grey server deepness ..for them websites ships run smoothly surfing the net waters.

We've learned from very own installations ..partly it has been reverse thinking from experience and also support

we've received from different website hosting companies ..when installing Moto templates for flash/facebook/html.

..

Let's jump into the water right from the beginning .. downloading the template  and uploading via ftp:

1 = only upload using binary mode (else things just do not work at all right from the bginning)

http://tinyurl.com/jwzrtmd (..this links to a moto very own page)

2 = change the right permissions of the server file (you have to be able to save changes to certain server files)

http://tinyurl.com/kdkjs2q (..this links to a moto very own page)

3 = you may simply check IF all files/folders have been fully transmitted or not. we've done transmitting via a

virtual windows system (on mac) and some folders just haven't been transmitted. (just simply check files etc)

 

Grey Server Deepness ..FreakWaves approaching at the horizont but the ship steadily follows its own path.

It has to directly cut into them waves on a 180° angle, else all is lost and it will sink to the bottom of the sea.

 

ZEND or NOT:

Now it gets to specific server packets ..AND this might be confusing, since there is no universal tip /trick /info.

We are working with different webspace providers, which have different ZEND integration not only for servers

individually. Also packets on one and the same server works different. Quite confusing and FREAKWAVE-ish!

 

Basicly (basicly) a php.ini file (see below) and maybe changes of the .htaccess files is needed to make ZEND

getting working. Sometimes the ZEND files need to be in a folder on your webspace, sometimes not when the

server has it installed univerally somewhere in the system. BUT the php.ini has to direct to the ZEND files.

=php.ini (example directing to the folder on your server where the zend files are // ask server support)

 

zend_optimizer.optimization_level=15
zend_extension=/kunden/homepages/34/d454576e454/htdocs/ZendOptimizer/data/5_2_x_comp/ZendOptimizer.so

 

=php.ini (example directing to a folder universally on the server for the zend files // ask server support)

 

zend_optimizer.optimization_level=15
zend_extension=/usr/zend/5_2_x_comp/ZendOptimizer.so

 

INFO: For all that you need PHP 5 on your server space available. If you have a small website packet, PHP is

maybe just not available. You need to upgade to a bigger packet OR change servers. PHP 5.2 is quite standart.

 

PHP 5.2 or NOT: (.htaccess file on your server root)

We know that Moto templates run fine with PHP 5.2. SOMETIMeS it is needed to downgrade the PHP version

of a higher version via the .htaccess file on your server ..that can look like the following example of .htaccess:

 

AddType application/x-httpd-php52 .php .php5

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^.*index.html$ index.php [QSA]

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

 

SOMETIMES (sometimes) it is not needed to downgrade the PHP version to 5.2 via the .htaccess files. ACUALLY

it could cause errors when integrating the info "AddType application/x-httpd-php52 .php .php5" ..then use standart:

 

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteRule ^.*index.html$ index.php [QSA]

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

 

PHP.INI where and what: (see attached screenshot from Moto very own page)

=php.ini: You need a php.ini installed/copied onto your server space root (..top/next to the index file) and also in

other folders on your web space at: "/admin", in all "/admin/modules" ,"/admin/actions", "/admin/actions/backup",

"/admin/actions/update", "admin/actions/update/libs". also in: "/m", in all"/m/admin/modules", "/m/admin/actions"

 

INFO: This might look different when you have a HTML template installed. The M (for mobile page) folder looks

different/has different content. BUT you know what to do. The php.ini needs to be in your working/admin folders.

 

===FINAL=====FINAL========FINAL======FINAL===========FINAL==========FINAL=======

QUICK ZEND: ..beware of SAND banks:

 

=Check the binary mode transfer in your ftp program

=Check that all files are actually transmitted / compare folders etc

=Check with your webspace provider that PHP will be available and running

=Check if you need to downgrade PHP or if "standart" PHP 5.2 is running fine

=Check how the ZendOptimizer files are installed. Do they have to be in a folder OR are they installed universally.

(in our installations ZEND files needed to be in a folder at 1&1 and are universal installed one the server at strato)

 

FINAL WORDS

Savely manage your server harbors,fill your website ships to the top.Make 'em surf the web.Beware of FreakWaves.

http://www.youtube.com/watch?v=0YVZn46KgTs&list=PLF7FBE5EA5E56AF7E (in memory of the "ms munchen")

Regards, Christian

 

May 21, 2013 12:27
User photo
Christian

cut waves from the front, not from the side :-)

May 21, 2013 12:42