Koozali.org: home of the SME Server

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

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

  • *
  • 548
  • +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

  • *
  • 548
  • +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

  • *
  • 548
  • +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

  • *
  • 548
  • +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

  • *
  • 548
  • +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

  • *
  • 563
  • +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

  • *
  • 548
  • +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

  • *
  • 548
  • +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?