Skip to main content

Home/ BI-TAGS/ Group items tagged postfix

Rss Feed Group items tagged

cezarovidiu

Setting Up a Server Linux article - 0 views

  • Installing and Configuring Apache
  • apt-get install apache2
  • etc/init.d/apache2 start|stop|restart|reload|force-reload apacheclt start|stop|restart|...
  • ...19 more annotations...
  • Apache2's configuration files, by default, are in /etc/apache2/.
  • apache2.conf is where the main configuration is
  • it used to be httpd.conf, so don't be fooled.
  • Installing and Configuring MySQL
  • apt-get install mysql-server-5.0
  • /etc/init.d/mysql start|stop|restart|reload|force-reload|status
  • To first start working with this database, the root password must be set. The word root does not apply to the system's root, but to the database administrator, however, it can be the same person. So let's set it and log in: mysqladmin -u root password 'thepassword' mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 10 to server version: 5.0.20a-Debian_1-log Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
  • /etc/mysql/my.cnf
  • apt-get install php5
  • Installing and Configuring PHP
  • Now, add support for MySQL: apt-get install php5-mysql
  • Just like for Apache and MySQL, extra packages will have to be install as well: apache2-mpm-prefork, libapache2-mod-php5 and php5-common.
  • The configuration file for PHP is located in /etc/php5/apache2/php.ini
  • every time you modify it, Apache must be restarted.
  • /var/www/information.php
  • Installing and Configuring Postfix
  • The default configuration files are in /etc/postfix, we will only use main.cf
  • apt-get install php5-cli php-pear php5-ldap php5-imap php5-gd php5-mhash php5-odbc php5-ps
  • I also like to add some more packages for PHP, such as CLI, Pear, LDAP, IMAP, GD, mhash, ODBC and PostScript:
1 - 8 of 8
Showing 20 items per page