Activity Stream
48,167 MEMBERS
61793 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1.     
    #11
    Member
    Yes, most of the Linux distros come with MySQL and PHP pre-installed, so it should already be there..

  2.   Sponsored Links

  3.     
    #12
    Banned
    I have kept for a reinstallation on my VPS with CentOS 6 (32-bit) Minimal x86.

    ---

    Now will that also install PHP, MySQL?

  4.     
    #13
    Member
    Yes, like i said most the Linux distros come with PHP and MySQL pre-installed, but if not here is the guide to install them:

    Installing Apache:

    1. Download Apache

    Download the latest version from Apache HTTP Server Project . Current stable release of Apache is 2.2.9. Move the source to /usr/local/src and extract it as shown below.
    Code: 
     # cd /usr/local/src # gzip -d httpd-2.2.9.tar.gz # tar xvf httpd-2.2.9.tar

    2. Install Apache


    View all configuration options available for Apache using ./configure ?help (two hyphen in front of help). The most commonly used option is ?prefix={install-dir-name} to install Apache on a user defined directory.
    Code: 
     # cd httpd-2.2.9 # ./configure --help In the following example, Apache will be compiled and installed to  the default location /usr/local/apache2 with the DSO capability. Using  the ?enable-so option, you can load modules to Apache at runtime via the  Dynamic Shared Object (DSO) mechanism, rather than requiring a  recompilation.
     # ./configure --enable-so # make # make install Note: During the ./configure, you may get the following error message.
     # ./configure --enable-so configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr Install the gcc and the dependent modules as shown below and try ./configure again to fix the above issue.
     # rpm -ivh gcc-4.1.2-14.el5.i386.rpm glibc-devel-2.5-18.i386.rpm glibc-headers-2.5-18.i38 6.rpm kernel-headers-2.6.18-53.el5.i386.rpm Preparing...
    Code: 
    ########################################### [100%] 1:kernel-headers         ########################################### [ 25%] 2:glibc-headers          ########################################### [ 50%] 3:glibc-devel            ########################################### [ 75%] 4:gcc                    ########################################### [100%]
    3. Start Apache and verify installation

    # cd /usr/local/apache2/bin # ./apachectl start Go to http://local-host, which should display the default message ?It Works!?


    Installing MySQL:


    1. Download the latest stable relase of MySQL

    Download mySQL from mysql.com . Please download the community edition of MySQL for your appropriate Linux platform. I downloaded the ?Red Hat Enterprise Linux 5 RPM (x86)?. Make sure to download MySQL Server, Client and ?Headers and libraries? from the download page.
    Code: 
     
    
    • MySQL-client-community-5.1.25-0.rhel5.i386.rpm
    • MySQL-server-community-5.1.25-0.rhel5.i386.rpm
    • MySQL-devel-community-5.1.25-0.rhel5.i386.rpm
    2. Remove the existing default MySQL that came with the Linux distro

    Do not perform this on an system where the MySQL database is getting used by some application.
    [local-host]# rpm -qa | grep -i mysql mysql-5.0.22-2.1.0.1 mysqlclient10-3.23.58-4.RHEL4.1 [local-host]# rpm -e mysql --nodeps warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave [local-host]# rpm -e mysqlclient10 3. Install the downloaded MySQL package

    Install the MySQL Server and Client packages as shown below.
    [local-host]# rpm -ivh MySQL-server-community-5.1.25-0.rhel5.i386.rpm MySQL-client-community-5.1.25-0.rhel5.i386.rpm Preparing...
    Code: 
    ########################################### [100%] 1:MySQL-client-community ########################################### [ 50%] 2:MySQL-server-community ########################################### [100%] This will also display the following output and start the MySQL daemon automatically.
     PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h medica2 password 'new-password'  Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default.  This is strongly recommended for production servers. See the manual for more instructions. Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available at http://www.mysql.com/ Support MySQL by buying support/licenses from http://shop.mysql.com/  Starting MySQL.[  OK  ] Giving mysqld 2 seconds to start Install the ?Header and Libraries? that are part of the MySQL-devel packages.
    Installing PHP:


    2. Download PHP

    Download the latest source code from PHP Download page. Current stable release is 5.2.6. Move the source to /usr/local/src and extract is as shown below.
    Code: 
    # bzip2 -d php-5.2.6.tar.bz2 # tar xvf php-5.2.6.tar
    3. Install PHP

    View all configuration options available for PHP using ./configure ?-help (two hyphen in front of help). The most commonly used option is ?-prefix={install-dir-name} to install PHP on a user defined directory.
    Code: 
     # cd php-5.2.6 # ./configure --help In the following example, PHP will be compiled and installed under  the default location /usr/local/lib with Apache configuration and MySQL  support.
     # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql # make # make install # cp php.ini-dist /usr/local/lib/php.ini
    4. Configure httpd.conf for PHP

    Modify the /usr/local/apache2/conf/httpd.conf to add the following:
    Code: 
     <FilesMatch "\.ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch>
    Make sure the httpd.conf has the following line that will get automatically inserted during the PHP installation process.

    LoadModule php5_module modules/libphp5.so Restart the apache as shown below:
    Code: 
    # /usr/local/bin/apache2/apachectl restart

    5. Verify PHP Installation


    Create a test.php under /usr/local/apache2/htdocs with the following content
    Code: 
     # vi test.php <?php phpinfo(); ?>
    Go to http://local-host/test.php , which will show a detailed information about all the PHP configuration options and PHP modules installed on the system.
    6. Trouble shooting during installation

    Error 1: configure: error: xml2-config not found:
    While performing the ./configure during PHP installation, you may get the following error:
    Code: 
     # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. Install thelibxml2-devel and zlib-devel as shown below to the fix this issue.
     # rpm -ivh /home/downloads/linux-iso/libxml2-devel-2.6.26-2.1.2.0.1.i386.rpm /home/downloads/linux-iso/zlib-devel-1.2.3-3.i386.rpm Preparing...
    Code: 
    ########################################### [100%] 1:zlib-devel             ########################################### [ 50%] 2:libxml2-devel          ########################################### 100%
    Error 2: configure: error: Cannot find MySQL header files.
    While performing the ./configure during PHP installation, you may get the following error:
    Code: 
    # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore! Install the MySQL-devel-community package as shown below to fix this issue.
     # rpm -ivh /home/downloads/MySQL-devel-community-5.1.25-0.rhel5.i386.rpm Preparing...                ########################################### [100%] 1:MySQL-devel-community  ########################################### 100%
    Goodluck.

  5.     
    #14
    Banned
    Hmm.. is there any easier way to understand it?

  6.     
    #15
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Is it so hard to Google? Just go to lxadmin.org for information about Kloxo.

    There are probably 9999 threads about Kloxo installation here and on the web.

    Defendos BETA3 Released! Thread - Official Website

  7.     
    #16
    Member
    It is quite easy to understand, you might wanna search on YouTube for some visuals too...

  8.     
    #17
    Banned
    @l0calh0st - I tried googling, got solutions but gave me errors so i planned to do a clean install again.

    @RapT1le - I will try installing Kloxo 1 last time... if not successful I will contact you

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 25th Aug 2011, 09:10 AM
  2. Just Installed Fresh TorrentFlux on Fresh Server But Torrents not starting
    By Jason_weds_Freddy in forum Technical Help Desk Support
    Replies: 4
    Last Post: 7th Aug 2011, 06:59 PM

Tags for this Thread

BE SOCIAL