Gå til innhold

RH 5.4 php med mcrypt modulen


Anbefalte innlegg

Skal installere apache med php på en maskin som har Red hat 5.4. Men jeg får ikke til å legge til modulen mcrypt. Finner den ikke via yum install og alle guider jeg finenr på nettet skriver hvordan du kan kompilere dette for centos.

Noen som vet hvordan jeg kan få med denn modulen i php?

Lenke til kommentar
Videoannonse
Annonse

Har fått til mcrypt nå. Men har et nytt problem. Trenger også Zend Optimizer. Har lastet ned denne og fikk en .so fil

I readme står dette:

Zend Optimizer installation instructions
----------------------------------------
Important: if you are installing this product because you received a message from a web site telling you to install Zend Optimizer and you are *not* the administrator of that web site STOP!.  You do not need to install this software. Instead, contact the website's system administrator and tell them that their website is displaying an error relating to Zend Optimizer and that they need to install Zend Optimizer in order to resolve this problem.

Release Information: This update is only relevant for PHP 5.2.X although this is a complete packagethat supports all other PHP versions.

1. Extract the Zend Optimizer package.

2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
  corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).

2. Add the following line to your php.ini file:
  Linux and Mac OS X:	 zend_extension=<full_path_to_ZendOptimizer.so>
  Windows:				zend_extension_ts=<full_path_to_ZendOptimizer.dll>
  Windows non-thread safe: zend_extension=<full_path_to_ZendOptimizer.dll>
  (*) The Windows non-thread safe binary is only used with Zend Core 2.0.

3. Restart your Web server.

Har lagt til zend_extension=/usr/local/lib/Zend/ZendOptimizer.so i /etc/php.ini

 

Men i error loggen til apache står det at den ikke får kan laste inn filen pga manglende tilgang.

Failed loading /usr/local/lib/Zend/ZendOptimizer.so:  /usr/local/lib/Zend/ZendOptimizer.so: cannot open shared object file: Permission denied
Failed loading /usr/local/lib/Zend/ZendOptimizer.so:  /usr/local/lib/Zend/ZendOptimizer.so: cannot open shared object file: Permission denied
Failed loading /usr/local/lib/Zend/ZendOptimizer.so:  /usr/local/lib/Zend/ZendOptimizer.so: cannot open shared object file: Permission denied
[Fri Feb 05 02:24:45 2010] [notice] caught SIGTERM, shutting down
Failed loading /usr/local/lib/Zend/ZendOptimizer.so:  /usr/local/lib/Zend/ZendOptimizer.so: cannot open shared object file: Permission denied
[Fri Feb 05 02:24:45 2010] [notice] SELinux policy enabled; httpd running as context user_u:system_r:httpd_t:s0
[Fri Feb 05 02:24:45 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 05 02:24:45 2010] [notice] Digest: generating secret for digest authentication ...
[Fri Feb 05 02:24:45 2010] [notice] Digest: done
[Fri Feb 05 02:24:45 2010] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations

Har sjekket hvordan en tilsvarende .so fil var angitt medtilgang på en annen fil og satt denne likt. Men det hjalp ikke.

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...