Saturday, August 20, 2011

Brain food - PHP, mySQL, Apache stuff

Here are some common tasks that a newbie in PHP needs to memorize:

Restarting Apache, after doing some tweaks
sudo /etc/init.d/apache2 reload

Editing the php.ini file
sudo nano /etc/php5/apache2/php.ini

php.ini to display errors, for the development web server:
After opening the php.ini file for editing, scroll down to the Error handling and logging section.

Comment out the error_reporting = ... line, copy-paste it to a new line, and change it to:
error_reporting = E_ALL

Scroll down further to the line display_errors = ... and change it to:
display_errors = On

Accessing mySQL at the command-line:
mysql --user=root --password={root's password]


No comments:

Post a Comment