hello from androidPublished with Blogger-droid v1.7.4
Nomally php var_dump() function display like this
We will override var_dump() by xdebug for human read with color highlight like this
1. install php5-xdebug follow command :
sudo apt-get install php5-xdebug
2. find xdebug.so :
sudo find / -name xdebug.so
result just like this :
/usr/lib/php5/20090626+lfs/xdebug.so
3. Edit php.ini :
sudo gedit /etc/php5/apache2/php.ini
add this in the end of file :
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
find html_errors in php.ini and change it to on :
html_errors = on
save your php.ini
4. Restart Your Apache :
sudo /etc/init.d/apache2 restart
5. have debug fun !!!
1. open terminal
2. install mysql
sudo apt-get install mysql-server mysql-client
3. install apache
sudo apt-get install apache2
4. install php and apache module
sudo apt-get install php5 libapache2-mod-php5
5. install php5 basic module
sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
6. restart apache
sudo /etc/init.d/apache2 restart
7. test your apache and php work
sudo gedit /var/www/info.php
insert code below and save :
<?php
phpinfo();
8. open your web browser and check it at http://localhost/info.php and see result like this.
9. install phpmyadmin
sudo apt-get install phpmyadmin
select > apache2
10. edit apache2.conf
sudo gedit /etc/apache2/apache2.conf
insert this code into the last line
Include /etc/phpmyadmin/apache.conf
11. reload or restart your apache
sudo /etc/init.d/apache2 reload
12. open your web browser and go to
http://localhost/phpmyadmin/
13. have fun !!!
ps.
sudo apt-get install mysql-server mysql-client apache2 php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php-pear php5-imagick php5-mcrypt php5-sqlite php5-tidy phpmyadmin