Acties:
  • 0 Henk 'm!

  • sdk1985
  • Registratie: Januari 2005
  • Laatst online: 16:10
Ik probeer APC te installeren op een CentOS 6.6 met DirecAdmin. Installeren en builden ging goed. Echter de stap waar ik de apc configuratie aan php.ini moet toevoegen zit ik vast.

Uit de tutorial: http://help.directadmin.com/item.php?id=400
Then, we needed to edit the php.ini to add the code:
extension=apc.so
apc.enabled=1
apc.shm_size=1000M
apc.ttl=7200
apc.user_ttl=7200
apc.enable_cli=1
apc.max_file_size=5M
Ik heb dit onderaan php.ini toegevoegd en afgesloten met een lege regel.

Resultaat:
[root@vps1 ~]# php -i | grep 'apc'
PHP:  syntax error, unexpected END_OF_LINE, expecting '=' in /usr/local/lib/php.                                          ini on line 1922


Iemand een suggestie hoe ik dit wel moet implementeren. Alle topics die ik online vindt specificeren niet rond welke regel je dit moet toevoegen.

Hostdeko webhosting: Sneller dan de concurrentie, CO2 neutraal en klantgericht.


Acties:
  • 0 Henk 'm!

  • CAPSLOCK2000
  • Registratie: Februari 2003
  • Laatst online: 12:22

CAPSLOCK2000

zie teletekst pagina 888

Op grond van deze melding lijkt het of er iets mis is met /usr/local/lib/php, maar ik heb geen idee wat DirectAdmin uitspookt, voor mij is dat een ondoorgrondelijk moeras. Werkt PHP wel als je die APC regels verwijdert uit php.ini?

This post is warranted for the full amount you paid me for it.


Acties:
  • 0 Henk 'm!

  • sdk1985
  • Registratie: Januari 2005
  • Laatst online: 16:10
Ja zonder de regels is er niets aan de hand. Het gebeurd alleen als ik zelf de [apc] sectie toevoeg onderaan het bestand (want die mist nu). Tot heden kan ik niet vinden rond welk regelnummer ik APC kan plaatsen.

edit: Heel stom, er stond overal een spatie voor door de copy paste!

Config:
[root@vps1 ~]# php -i | grep 'apc'
apc
apc.cache_by_default => Off => Off
apc.canonicalize => On => On
apc.coredump_unmap => Off => Off
apc.enable_cli => On => On
apc.enabled => On => On
apc.file_md5 => Off => Off
apc.file_update_protection => 2 => 2
apc.filters => no value => no value
apc.gc_ttl => 3600 => 3600
apc.include_once_override => Off => Off
apc.lazy_classes => Off => Off
apc.lazy_functions => Off => Off
apc.max_file_size => 5M => 5M
apc.mmap_file_mask => no value => no value
apc.num_files_hint => 1000 => 1000
apc.preload_path => no value => no value
apc.report_autofilter => Off => Off
apc.rfc1867 => Off => Off
apc.rfc1867_freq => 0 => 0
apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
apc.rfc1867_prefix => upload_ => upload_
apc.rfc1867_ttl => 3600 => 3600
apc.serializer => default => default
apc.shm_segments => 1 => 1
apc.shm_size => 100M => 100M
apc.shm_strings_buffer => 4M => 4M
apc.slam_defense => On => On
apc.stat => On => On
apc.stat_ctime => Off => Off
apc.ttl => 7200 => 7200
apc.use_request_time => On => On
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 7200 => 7200

Werkt nu.

[ Voor 171% gewijzigd door sdk1985 op 21-02-2015 17:09 ]

Hostdeko webhosting: Sneller dan de concurrentie, CO2 neutraal en klantgericht.