

- #INSTALL MYSQL AND PHPMYADMIN UBUNTU INSTALL#
- #INSTALL MYSQL AND PHPMYADMIN UBUNTU FULL#
- #INSTALL MYSQL AND PHPMYADMIN UBUNTU CODE#
- #INSTALL MYSQL AND PHPMYADMIN UBUNTU PASSWORD#
The following are the steps involved in setting up Apache, PHP, MySQL and Drupal on a freshly installed Ubuntu 8.04 system. To do this, edit the "/etc/apache2/conf.d/phpmyadmin.Most of the web based systems that we build at Zyxware uses Drupal as the content framework.
#INSTALL MYSQL AND PHPMYADMIN UBUNTU PASSWORD#
Then, type the password for the MySQL server (password of the administrator of the database) when the wizard prompted.Īnd finally, enter a password (2x) for phpmyadmin account will be automatically created on the MySQL server.įinally, you can a little more secure your phpmyadmin, changing his alias in the apache configuration file. Then answer "Yes" to the question : "Should we configure the database phpmyadmin with dbconfig-common." Note : If you confirm the selection without having checked the box, simply type the command "dpkg-reconfigure phpmyadmin" to restart the configuration of this package. Check the "apache2" box by pressing the space bar and press "Enter" to confirm.
#INSTALL MYSQL AND PHPMYADMIN UBUNTU INSTALL#
Now install the tool database management known worldwide data written in PHP phpMyAdminĭuring the installation of phpMyAdmin, a window will appear for you to select which web server phpMyAdmin is installed. # Updating server rights (in particular to take into account the new root password if you have changed it)Īll done! If you've completed all of the above steps, your MySQL installation should now be secure. Remove test database and access to it? : y # Database "test" created during the installation and is accessible by default deletes everyone. # Disable root access to the MySQL server for obvious safety reasons # Finally, answer yes (Y) for the rest of the questions by pressing the "Enter" key (since the default is Y (yes)). # No need to change the password because we just configure

Then secure your MySQL server using the command :īash # The password for the MySQL root user Then restart the MySQL configuration to reflect the changes : # the collation will be automatically set to "utf8_general_ci". # So when creating a database via phpMyAdmin (for example), # Configure the server to work with the default UTF8. Then edit the "/etc/mysql/my.cnf" file like this : So that web server must be restarted.īash apt-get install mysql-server mysql-client mysql-common Note : PHP is a module that is linked to the Apache web server. Then restart the apache configuration to reflect the changes. In this case, simply add them to the list.ĭisable_functions = symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,passthru,escapeshellarg,escapeshellcmd

You will also notice a list of functions "pcntl_" is already entered in the latest version of PHP5. # Sets a list of dangerous turn on your server functions. Moreover, this feature set deprecated since version "5.3.0" PHP and disappear from the version "5.4.0".

#INSTALL MYSQL AND PHPMYADMIN UBUNTU CODE#
# It is recommended to disable and protect their PHP code correctly. # magic_quotes_gpc can "protect" the "GET" data "POST". # short_open_tag allows you to use short tags instead of # Activate it when developing a website but disable it at the start of production thereof to prevent hackers from falling on "sensitive" informations. # The "display_errors" directive to display the errors generated by PHP. # Because hackers will not know the php version used on the server, you will be more protected against attacks. # Cache PHP (PHP mask information about the header of the web server). PHP # Super global variable (disable for security reasons) Then edit the following informations in the "/etc/php5/apache2/php.ini" file like this : Note: PHP will be automatically linked to your Apache web server.īash apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl Then, install the "PHP" module in order to create dynamic websites. ServerName Then restart the apache configuration to reflect the changes : You can then give a name to your Apache server by adding the line below. To do this, add the following lines at the bottom of "/etc/apache2/nf" file :Īpache # Prevents display information from the server Once the server is installed, we will prevent the display of information about the server, displayed (for example) in a 404 error :Īpache/x.x.xx (Ubuntu) Server at 192.168.1.xx Port 80 phpMyAdmin : The database tool management known worldwide, written in PHP. MySQL : The server database (which is the most used in the world of web).
#INSTALL MYSQL AND PHPMYADMIN UBUNTU FULL#
In this tutorial, we will install a full server web development including :
