Koozali.org: home of the SME Server

Zend install help! Willing to pay for step by step!

Todd

Zend install help! Willing to pay for step by step!
« on: January 08, 2005, 12:15:44 AM »
Has anyone installed Zend on sme. I am looking for a how to step by step. It looks a little tricky. I am willing to pay for a how to. As long as it works of course. It seems a lot of new php stuff is now comming to me with needed Zend support. Net the programmer will want me to poo a gold brick>>>>> And I am sure some one may have a step by step for that too. I'll let you know if I need that one later!

guest22

Zend install help! Willing to pay for step by step!
« Reply #1 on: January 08, 2005, 06:07:26 AM »
Hi Todd,

please give more specific information about your hardware, software (OS and version) and mdifications or hacks, so people have a better idea on what is going on.

RequestedDeletion

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #2 on: January 08, 2005, 09:08:31 AM »
You could try Turck-mmcache - it has the advantage of being free - http://turck-mmcache.sourceforge.net/index_old.html#bench

Todd

What is installed!
« Reply #3 on: January 08, 2005, 08:53:16 PM »
What is installed is only a load of sme 6.0.1 and the greg swallow update script for sme from here http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts with php 4.3.10 from here http://forums.contribs.org/index.php?topic=25275.0  I found Zend for free at http://www.zend.com/store/free_download.php?pid=13
I think this is what the programer is asking for. His php programs will not show up when you try to view them on a web page with out it. From what I can gather he incryps his php and this is what reads it? If some can help me out with a step by step I can make a pay pal donation to who ever they like. I realy need this and this form is always a great help! I would not be using Linux as a server with out this form. But using .gz files and .tar files are very new to me and some times I need a little help! Everyone here, always helps out when they can.

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #4 on: January 08, 2005, 09:39:29 PM »
Sounds like he wants this: http://www.zend.com/store/products/zend-encoder.php

Bettter double check....

Todd

Uhhh I see.
« Reply #5 on: January 08, 2005, 10:04:38 PM »
I sent a e-mail to him and I am waiting for a reply. I hope it is not the 1000.00 dollar one or it my be cheaper to get a new programer. I will post back in a hr or so. Thanks for helping and hope you ca stay tuned.

Todd

Got back his e-mail, now that the work is done,?
« Reply #6 on: January 08, 2005, 11:40:22 PM »
he just keeps telling me it is easer to host with his friend than have me install the Zend program he needs. He has still not told me which on he needs. I feel a issue comming on with this guy.......

Todd

OK I have the info from him.
« Reply #7 on: January 09, 2005, 01:11:36 AM »
this is what is needed to instal!
http://www.zend.com/store/products/zend-optimizer.php. Does anyone think they can help. I have tried it a few times now and have php messed up. Ihave a clean install waiting now. Thanks everyone.

Todd

OK I am now sure that this is what is needed!
« Reply #8 on: January 09, 2005, 04:50:28 AM »
http://www.zend.com/store/products/zend-optimizer.php But they do not have a rpm. I am unsure of how to load it to my server and use .gz files.

Todd

Ok, got it installed, but something not right.
« Reply #9 on: January 09, 2005, 05:39:46 AM »
The following configuration changes have been made:                    
The php.ini file has been relocated from /etc to /usr/local/Zend/etc.
A symbolic link for the php.ini file has been created in /etc
The original php.ini was backed up to /etc/php.ini-zend_optimizer.bak

Where do I put my php files now. I do not feel this was right? Anyone know? If all goes well I will try and post a how to file but I think it is still not working.

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #10 on: January 09, 2005, 05:56:09 AM »
Hi Todd

I've  recently installed ZEND optimizer on SME 6.0.1 and it was as straight forward as it can get.

Just extract the downloaded file to your SME server (I put mine in my RPMS folder) and from the command line cd to the extracted ZendOptimizer folder and type "sh install.sh". This will start the install script and you just have to answer a couple of questions and follow the bouncing ball. Takes about 2 minutes.

You should not have to do anything other than that to have the ZEND optimizer installed.
You will however, need to add some code to your /etc/php.ini file to be able to see the effects of the install when accessing your web pages.

You will have to copy the very bottom section [ZEND] and the 5 lines of code of the php.ini file in the /usr/local/ZEND/etc folder and paste it into the bottom section of your /etc/php.ini file. Then do a "service apache restart". Now go to your browser and you should be able to see your index.php page.

One other note is that if you still cannot see the page and it still comes up blank then you may also need the "mcrypt" php module which takes care of the decrypting aspect of encrypted php pages. This was available from a previous post on this forum. Just search for "mcrypt" if you find that this is also a requirement.

Ed
......

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #11 on: January 09, 2005, 06:37:04 AM »
Sorry it should read "service httpd restart" not "service apache restart".

Ed
......

Todd

Zend install help! Willing to pay for step by step!
« Reply #12 on: January 09, 2005, 06:41:38 AM »
Quote from: "edb"
Sorry it should read "service httpd restart" not "service apache restart".

Ed


Sir,
 Do you think you can give me a step by step? I have been working on this for 7 to 8 hrs now and feel the brain burn. I am very new to Linux and ove it. Just very new to it. should i make a dir. to put the file in. The file is on my windows box in some .gz thing and I have followed the directions that came with it but no luck. Please help! You seem like you can help.

Todd

here is my link.
« Reply #13 on: January 09, 2005, 06:48:17 AM »
69.226.95.232 I did the install but nothing. I do not think I did it right. How and where do I past the code and where do I get it? uuuuhhhhhh. handicaped linux user here. Now I wish I never learned microsofty. Then my brain would work normal.
Thanks

Todd

OK checked the files you said on my other post!
« Reply #14 on: January 09, 2005, 06:58:47 AM »
magic_quotes_gpc On On
register_globals On On
What lins and how do I add them! I think these are all issues you had by looking at your postings. Do you have a step by step? From how to get the file to the server to install! There my be others with the same issue as us!

Todd

Will this help ed?
« Reply #15 on: January 09, 2005, 07:04:14 AM »
http://69.226.95.232/phptester.php
This shows that php is working I think. But not Zend!

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #16 on: January 09, 2005, 07:48:36 AM »
Sounds like the first thing you will want to do if you are just beginning and not experienced with Linux commands is to download a copy of WinSCP and install it on your Windows PC and choose Norton commander as your interface choice at install time. Then download a copy of WinRAR and install it on your PC. Just do a Google search for both of these products.

Once you have WinRAR installled (it is basically the same as WinZip) you can open the ZEND gz file and extract the contents to your local PC C-Drive. This will create the ZendOptimizer directory that you will next copy to your SME server.
Do This Now

Now, launch the WinSCP program you downloaded and installed. In the host name type in the IP address of your SME server, in the username type "root" followed by the password for your server, then in the protocol section select SCP. Click the save button and call it "Webserver". Then click the login and you should see your local C-drive in the lefthand side and the SME server files on the righthand side. Now isn't that a lot easier?

Now to copy the files from your local PC to the server, locate the ZendOptimizer directory in the lefthand side of the WinSCP window, then go to the righthand (SME side) of the WinSCP window and find the PLUS directory (since I believe your ran the update script on this forum), now drag the ZendOptimizer directory from the left screen over to the PLUS directory on the right screen and the files should begin copying over to the server.

Now that the files are on the server you will need to access the actual server console to do the install of the ZEND files.

You will now need to do everything as I indicated in my previous reply but to make your life easier you can now use WinSCP on your local PC to edit the files I was talking about.
In WinSCP you can edit the files on the server by navigating to the files I stated and right clicking on them and selecting "edit" from the dropdown menu. When you open the file in edit mode you can select the text with your mouse and the copy it to the clipboard then go to the other file and open it in edit mode, scroll to the bottom and paste the text from the other file. Then when you exit it will ask you to save the changes and say yes. Now go back to the server console again and type "service httpd restart".

There you're all done! Better instructions than this are impossible.

Ed
......

Todd

Zend install help! Willing to pay for step by step!
« Reply #17 on: January 09, 2005, 08:29:08 AM »
Specify the location where to install Zend Optimizer?
/user/local/Zend  is this right?

Confirm the location of your php.ini file?
/user/local/Zend/etc  is this right?

Specify the full path to the Apache binary?
/usr/sbin/httpd   is this right?

I feel so lost!!!!!

Todd

Zend install help! Willing to pay for step by step!
« Reply #18 on: January 09, 2005, 08:34:30 AM »
Where do I find this?
bottom section [ZEND] and the 5 lines of code of the php.ini file in the /usr/local/ZEND/etc folder

I can find usr/local/Zend/ect but not a file called [ZEND], where is this at?

Todd

Wow Ed, You have no idea how much this helped me! Thank you!
« Reply #19 on: January 09, 2005, 08:48:32 AM »
The php.ini file in /ect has a shortcut picture is that right? The line of code is the same as in /usr/local/ZEND/etc. and still no index.php on webpage? Oh thank you for all your help. Winscp is so cool and WoW it works so much better than putty. Thank you, thank you.......

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #20 on: January 09, 2005, 07:46:05 PM »
You shoud be able to just go with all the default settings when installing ZEND.

Read my message again Todd, [ZEND] is not a file it is the bottom section of the /usr/local/ZEND/etc/php.ini file. If both the /usr/local/ZEND/etc/php.ini and /etc/php.ini are reading the same info now then you have things setup correctly.
If things are still not working make sure that you have your "cgi directory enabled" for the Primary or IBay through the SME server manager. This is as far as I can go with helping you.

Ed
......

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #21 on: January 09, 2005, 07:52:00 PM »
I noticed that your index.php seems to be working now but why is it an email form? Is this just a test file?
Anyway you seem to be working fine now. Cheers

Ed
......

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #22 on: January 10, 2005, 02:59:53 AM »
You can owe me a beer or two Todd... :pint:

Code: [Select]
#!/bin/sh

cd /root

wget -nc http://www.skynetonline.ca/images/ZendOptimizer-2.5.7-linux-glibc21-i386.tar.gz

tar xzvf ZendOptimizer-2.5.7-linux-glibc21-i386.tar.gz

cd ZendOptimizer-2.5.7-linux-glibc21-i386

echo "About to install Zend - press enter accepting all defaults"
echo "Press any key to continue..."
read answer
./install.sh

rm -f /etc/php.ini

/sbin/e-smith/expand-template /etc/php.ini

mkdir -p /etc/e-smith/templates-custom/etc/php.ini/

touch /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
echo [Zend] > /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
echo zend_optimizer.optimization_level=15 >> /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
echo zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7 >> /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
echo zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7 >> /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
echo zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so >> /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
echo zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so >> /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer
chmod 644 /etc/e-smith/templates-custom/etc/php.ini/81ZendOptimizer

/sbin/e-smith/expand-template /etc/php.ini

service httpd restart
service httpd-admin restart


Copy all that into notepad, save it as zend.sh and copy it onto the server.  Logged in as root, type 'sh zend.sh' and it will do almost everything for you.  The custom template is what you were missing I think.

Or download it from:
http://www.skynetonline.ca/images/zend.sh

After installing verify by going to:
https://www/phpmyadmin/phpinfo.php
...and just underneath the first section you will see:
Quote
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies
    with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
    with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies


NOTE: It seems like you got it working before I posted this, but because of the template system in SME, after rebooting or any upgrade, then it will stop working unless you have created the custom template like I suggest.

Edb, you better fix your system too or you will soon find your Zend is not working as well.

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #23 on: January 10, 2005, 06:32:39 PM »
Thanks for your suggestion Greg. I will correct my server right away.
......

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #24 on: January 10, 2005, 07:20:26 PM »
Thank you for the tip about the templates_custom fragment to get ZEND to work after a reboot.

I was used to just copying and pasting when I seen things weren't working after a reboot. Your suggestion makes life a lot easier.

If you don't mind I have another question for you and it has to do with a templates_custom fragment for the httpd.conf file. Due to specific requirements I need to disable a couple php settings through the template for a specific Ibay called "store".
Here is what I would like to disable and this is how the file looks that I created as /etc/e-smith/templates_custom/etc/httpd/conf/httpd.conf/98ecommerce
<Directory /home/e-smith/files/ibays/store/html>
    php_flag magic_quotes_gpc off
    php_flag register_globals off
</Directory>

Now, with this file in place I do an /sbin/e-smith/expand-template /etc/e-smith/templates_custom/etc/httpd/conf/httpd.conf followed by "service httpd restart" and "service httpd-admin restart" and everything works just the way it is supposed to work.

The problem is that when I do a reboot, I have to manually issue the /sbin/e-smith/expand-template /etc/e-smith/templates_custom/etc/httpd/conf/httpd.conf command again to get things working.

Do you have any suggestions? I appreciate your input. Thanks again

Ed
......

Offline smeghead

  • *
  • 557
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #25 on: January 10, 2005, 07:43:38 PM »
Quote
The problem is that when I do a reboot, I have to manually issue the /sbin/e-smith/expand-template /etc/e-smith/templates_custom/etc/httpd/conf/httpd.conf command again to get things working.


Methinks you need to run:

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
..................

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #26 on: January 10, 2005, 07:54:29 PM »
Thanks Smeghead,

I've already done that but doesn't make a difference when I reboot. I see I had a typo in my previous message but the command I used was /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf but still no luck. It gets things working but not on a reboot?
 
 
edb
......

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #27 on: January 10, 2005, 09:51:29 PM »
Is this also a typo?  This:
Quote
/etc/e-smith/templates_custom/etc/httpd/conf/httpd.conf/98ecommerce

should be:
Quote
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98ecommerce


I assume, as you probably did, that by putting that bit at the end of httpd.conf that it would override any settings above it...but I'm not sure of that.  If you expand the template as Smeghead suggested and your file is in the right spot (as above) then you should see those lines at the end of your /etc/httpd/conf/httpd.conf file - and then just run 'service httpd restart'.  If the lines are there (and whatever you are doing still isn't working) then you need to do something else as well.

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #28 on: January 10, 2005, 11:24:52 PM »
I think you're missing my point.

I have done everything from creating the template fragment to initiating the proper commands to expand the template and it does work fine after I do this.
I was this far before I asked my question.

My issue is that when the server reboots I have to again manually expand the template and restart httpd.
I would like to be able to have the server reboot and make the change permanent without having to do it manually, just as we did with the ZEND issue.

Thanks
......

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #29 on: January 11, 2005, 12:41:26 AM »
So after you expand the template and restart httpd the lines of text you are adding show up in your /etc/httpd/conf/httpd.conf file, but after rebooting they are gone?

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #30 on: January 11, 2005, 01:28:19 AM »
Close. After a reboot the lines are still at the bottom of the httpd.conf file but for whatever reason I have to give the /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf and restart httpd to see the results I want. I just don't get it? Does it make any sense to you.
......

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #31 on: January 11, 2005, 01:50:04 AM »
I dont think it has to do with expanding the template again if the file is the same before and after.  Try rebooting and then see if it works, then just restart httpd and see if it works.  Although either way it doesn't make any sense to me either.  You might have to go though your log files to see if any error messages can explain it.

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #32 on: January 11, 2005, 06:34:55 AM »
Your right it sure is wierd.
I just tried it again after a reboot and sure enough it didn't work properly. But all I had to do was a "service httpd restart" and everything is ok again.

Could it be the relationship between HTTPD loading and PHP loading depending on what gets loaded first?
Since the code I'm adding within the httpd.conf file are php varriables maybe it's not working due to httpd loading before php and therefore, php isn't runing so httpd doesn't know how to handoff the code. Hence, the reason for the restarting of the httpd after the server is up seems to work fine? Comments

Ed
......

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #33 on: January 11, 2005, 08:02:31 AM »
Maybe check out other ways of setting those variables than in the httpd.conf file.  Try google, I am out of ideas, sorry.

Offline gregswallow

  • *
  • 651
  • +1/-0
Zend install help! Willing to pay for step by step!
« Reply #34 on: January 11, 2005, 08:11:49 AM »
Note - I made a script to install Zend Optimizer, Turck-MMCache and PHPCoder - check it out here:
http://forums.contribs.org/index.php?topic=25554.msg103256#msg103256

Offline edb

  • *
  • 546
  • +0/-0
Zend install help! Willing to pay for step by step!
« Reply #35 on: January 11, 2005, 04:55:24 PM »
Thanks for looking at it Greg.

Ed
......