GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to tell if zend optimizer is installed (https://gfy.com/showthread.php?t=853143)

TampaToker 09-05-2008 08:35 PM

How to tell if zend optimizer is installed
 
Been running blog organizer on a virtual sever and finally moved it to a dedicated. Host says zend is installed but the scripts say something different:

This file was encoded by the Zend Encoder / Zend SafeGuard Suite

In order to run it, please install the freely available Zend Optimizer, version 2.1.0 or later.

Babaganoosh 09-05-2008 08:39 PM

The host is mistaken.

GigoloShawn 09-05-2008 08:41 PM

It may not be installed for the cli.

I'm assuming you're not running Direct Admin or CPanel. There's a different .ini for the cli.

Babaganoosh 09-05-2008 08:41 PM

could also do a phpinfo(); and see what it says about zend

TampaToker 09-05-2008 08:42 PM

Quote:

Originally Posted by GigoloShawn (Post 14715161)
It may not be installed for the cli.

I'm assuming you're not running Direct Admin or CPanel. There's a different .ini for the cli.

grr i usually have a server guy who does this stuff for me but he wont be around for a few weeks. Its a manged account does that mean i can send the script to the host and have them install it?

GrouchyAdmin 09-05-2008 08:44 PM

Quote:

Originally Posted by TampaToker (Post 14715165)
grr i usually have a server guy who does this stuff for me but he wont be around for a few weeks. Its a manged account does that mean i can send the script to the host and have them install it?

Maybe. They may be too stupid. If you want to give me shell access, I'll tell you what's wrong. If you trust me with sudo or root access, I'll fix it for free.

:thumbsup

TampaToker 09-05-2008 08:44 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14715167)
Maybe. They may be too stupid. If you want to give me shell access, I'll tell you what's wrong. If you trust me with sudo or root access, I'll fix it for free.

:thumbsup

appreciate the offer but cant do that :)

GigoloShawn 09-05-2008 08:45 PM

Quote:

Originally Posted by TampaToker (Post 14715165)
grr i usually have a server guy who does this stuff for me but he wont be around for a few weeks. Its a manged account does that mean i can send the script to the host and have them install it?

Perhaps. If they think it's installed, though, they obviously don't know what the hell they're taking about.

GigoloShawn 09-05-2008 08:50 PM

Run this:

PHP Code:

<?php
if (!function_exists('findPhpCli')) {
  function 
findPhpCli() {
    
$phpClis=array(
                  
'/usr/bin/php''/usr/bin/php5',
                  
'/usr/bin/php-cli''/usr/local/bin/php-cli',
                  
'/usr/local/bin/php''/usr/local/bin/php5',
                  
'/usr/bin/phpcli''/usr/local/bin/phpcli',
                  
'/usr/bin/php-cli''/usr/local/bin/php-cli',
                  
'/usr/bin/php4''/usr/local/bin/php4',
                  );

    foreach (
$phpClis as $phpcli) {
      if (@
is_file("$phpcli") && is_executable("$phpcli")) {
          return(
"$phpcli");
          break;
      } else {
         return 
FALSE;
      }
    }
  }
}
?>
<html>
<title>PHP Diagnostics</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff">
<font size="5"><b>Diagnostics:</b></font>
<br><br>
<center>
<table width="90%">
<tr>
<td>
Checking for exec()
</td>
<td align="right">
<?php echo (function_exists('exec')) ? "<font color='#00ff00'>exec() is here.</font>" "<font colo
r='#ff0000'>Bad; enable exec()!</font>"
?>
</td>
</tr>
<tr>
<td>
Checking for shell_exec()
</td>
<td align="right">
<?php echo (function_exists('shell_exec')) ? "<font color='#00ff00'>shell_exec() too.</font>" "<font color='#ff0000'>Bad; enable exec()!</font>"?>
</td>
</tr>
<tr>
<td>
Checking for PHP cli
</td>
<td align="right">
<?php $found=findPhpCli(); echo ($found) ? "<font color='#00ff00'>Found PHP at $found</font>" "<font color='#ff0000'>You'll need to set " '$phpPath' " in signup_first_config.php!</font>"?>
</td>
</tr>
<tr>
<td>
Checking PHP for cli build
</td>
<td align="right">
<?php if ($found && function_exists('shell_exec')) { $data=shell_exec("$found -v"); echo (eregi("\(cli\)"$data)) ? "<font color='#00ff00'>It is the cli version.</a>" "<font color='#ff0000'>Does not appear to be the CLI version.</font>";  } else { echo "<font color='#ff0000'>I can't test, beca
use I couldn't find PHP!</font>"
; } ?>
</td>
</tr>
<tr>
<td>
Checking cli for Zend Optimizer Support
</td>
<td align="right">
<?php if ($found && function_exists('shell_exec') && $data) { echo (eregi("zend\ optimizer"$data)
) ? 
"<font color='#00ff00'>Looks like it.</a>" "<font color='#ff0000'>You will need Zend Opmizer support in your cli php's .ini file.</font>";  } else { echo "<font color='#ff0000'>I can't test, b
ecause I couldn't find PHP!</font>"
; } ?>
</td>
</tr>
</table>
</center>
</body>
</html>


TampaToker 09-05-2008 08:53 PM

Quote:

Originally Posted by GigoloShawn (Post 14715177)
Run this:

Diagnostics:

Checking for exec() exec() is here.
Checking for shell_exec() shell_exec() too.
Checking for PHP cli You'll need to set $phpPath in signup_first_config.php!
Checking PHP for cli build I can't test, beca use I couldn't find PHP!
Checking cli for Zend Optimizer Support I can't test, b ecause I couldn't find PHP!

GigoloShawn 09-05-2008 08:56 PM

It can't find a PHP cli.

That means that you probably don't have the PHP cli in your path, and it couldn't find it. I can't do much for ya to see if it's trying for the cli, sorry.

As suggested, make a page with <?php phpinfo(); ?> in it. If Optimizer is installed for the in-apache version, it will say so.

directfiesta 09-05-2008 08:58 PM

http://onlinehowto.net/Tutorials/PHP...allation/411/1

or

http://www.activecampaign.com/blog/2...end-optimizer/

But first check with a phpinfo file to see if it is already installed.

TampaToker 09-05-2008 08:58 PM

Quote:

Originally Posted by GigoloShawn (Post 14715192)
It can't find a PHP cli.

That means that you probably don't have the PHP cli in your path, and it couldn't find it. I can't do much for ya to see if it's trying for the cli, sorry.

As suggested, make a page with <?php phpinfo(); ?> in it. If Optimizer is installed for the in-apache version, it will say so.

ok cool man thanks for the help i will just send the script to the host. :)

GrouchyAdmin 09-05-2008 08:58 PM

Quote:

Originally Posted by GigoloShawn (Post 14715177)
Run this:

You forgot to change some data in there which doesn't apply to this case. I'm glad you found an actual use for the 'does your server have what it takes to run this' throwaway script. :1orglaugh :1orglaugh

HighEnergy 09-05-2008 09:04 PM

Quote:

Originally Posted by GigoloShawn (Post 14715177)
Run this:

That's funny .... ha ha ha

GrouchyAdmin 09-05-2008 09:13 PM

Quote:

Originally Posted by HighEnergy (Post 14715209)
That's funny .... ha ha ha

Thank you.

This throwaway script has also saved me countless hours of work trying to explain the differences between the cli, and the 'built into apache' module.

I'll let you license it.

baddog 09-05-2008 09:18 PM

Create a page with

Code:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

save as phpinfo.php

upload - access


All times are GMT -7. The time now is 03:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123