Installing XHProf on Debian Rumi, January 12, 2013January 12, 2013 xhprof provides profiling information, down to the function call. This includes execution time, CPU and memory usage for each operation. The module allows you to find and optimise bottlenecks in your application. The library includes a GUI output, you just use the classes provided to create the reports. I installed using PECL on a Debian Squeeze development server, and the first things you need are php5-dev and make; apt-get install php5-dev make However, when you try to run the PECL install, we fail because the package is beta. We therefore need to set PECL to install beta packages. Configure PECL to install beta packages: pecl config-set preferred_state beta pecl install xhprof PECL will correctly fetch the source files, but fail to start compiling. […] 11 source files, building running: phpize Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module ERROR: 'phpize' failed This error is caused by a bug in the PEAR library installed on the system. The bug was fixed in PEAR 1.9.3, but as of the time of writing PEAR 1.9.4 is the latest stable version. Updating PEAR fixes the issue and allows the module to be compiled correctly. pear install PEAR-1.9.4 After installing 1.9.4 you can then compile and install xhprof on Debian Squeeze. To add the module to PHP, you need to add it to your configuration. The last thing to do is check the module is correctly loaded, check your phpinfo() output for an xhprof section. Then you can start profiling your projects. For more information on setting up and using xhprof, head over to this ibuildings techportal article. Related Administrations Configurations (Linux) phpTool
Docker Commands December 21, 2021 Working with Docker Images Docker containers are built from Docker images. By default, Docker pulls these images from Docker Hub, a Docker registry managed by Docker, the company behind the Docker project. Anyone can host their Docker images on Docker Hub, so most applications and Linux distributions you’ll need will have… Read More
Use sudo su to login without any password prompt January 15, 2024 Step 1 Edit sudoers file with command visudo: $ visudo You should get something similar to this content: # # This file MUST be edited with the ‘visudo’ command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See… Read More
SCP in linux July 27, 2011 In Unix, you can use the scp command to copy files and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password or passphrase for authentication. Unlike rcp or FTP,… Read More