MOBILE · [Q]GIS · POSTGIS

Custom PHP 5.3.1 with APC and XDEBUG on (Dreamhost) Shared Host

I’ve recently been setting up my new dreamhost for symfony projects deployment and the only thing the default PHP is missing is the support for APC (alternate php cache). So after looking at the dreamhost wiki I cleaned up and added some features to the one of the install scripts. Here it is for your/mine (future) commodity.

Related

20 Responses

Hi,
does this script create a custom php install with APC working by itself or do I need to modify something else to make it work? I’d like to use APC for magento and all the other scripts for installing php and APC on dreamhost failed to install…
Thanks

Thanks a lot it works! One last question: Magento doesn’t support php5.3 very well… I’d like to install 5.2. Is it sufficient change PHP=”php-5.3.1″ to PHP=”php-5.2.12″ (for example) at the 1 “#@todo Update” or are there other settings to customize and how?
I’d really appreciate if you could answer this question, hope it doesn’t bother you too much.
Thanks a lot.
Emmanuele

Is it just me or is APC not actually functional? I see that it is enabled, however if you look at apc.php there is never any entries other than apc.php itself, and apc start time is the whenever the script ran. I’m sure there is a way around this, but what am I missing?

mmm haven’t had a chance to play with apc (and I’m no apc expert either…) since then due to lack of time… i just cleaned up the install script using the settings from the scripts on wiki.dreamhost but looking at a phpinfo it all seams to work… i’ll have a look asap

yea, it works fine, except i believe php as cgi runs as a new instance of php each time, hence no shared memory. (well that’s what I’ve gathered from other research I’ve done)
Take a look at that apc.php file, the output will let you know whether apc is doing anything for you or not
Thanks for your efforts btw, the script worked great.

Hi, Im getting the following error, no idea what to do, any advice?
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@quefresas.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Did anyone use this installation to debug with Xdebug ?
I use the following configuration in the php.ini
end_extension_ts-
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=
xdebug.remote_port=
Alas I it doesn’t work and before I spend more time on it I would like to know if this port opening is even allowed?
Any help will be very welcomed

My message got scrambled, as stated I using the following configuration in the php.ini
end_extension_ts=[absolute path to xdebug.so]
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=[domain name]
xdebug.remote_port=[port of my choosing]