Results 11 to 17 of 17
-
3rd Jan 2012, 01:13 PM #11Member
Yes, most of the Linux distros come with MySQL and PHP pre-installed, so it should already be there..
-
3rd Jan 2012, 01:15 PM #12OPBanned
I have kept for a reinstallation on my VPS with CentOS 6 (32-bit) Minimal x86.
---
Now will that also install PHP, MySQL?
-
3rd Jan 2012, 01:18 PM #13MemberYes, 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%]
# 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
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.
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
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
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>
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 contentCode:# vi test.php <?php phpinfo(); ?>
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%
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%
-
3rd Jan 2012, 01:20 PM #14OPBanned
Hmm.. is there any easier way to understand it?
-
3rd Jan 2012, 01:21 PM #15MemberWebsite's:
Elite.SO Defendos.com Motionite.comIs 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.
-
3rd Jan 2012, 01:22 PM #16Member
It is quite easy to understand, you might wanna search on YouTube for some visuals too...
-
3rd Jan 2012, 01:23 PM #17OPBanned
@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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
(Help Required) Display name+thread description+flag mod installation
By champ_007_bond in forum vBulletinReplies: 12Last Post: 25th Aug 2011, 09:10 AM -
Just Installed Fresh TorrentFlux on Fresh Server But Torrents not starting
By Jason_weds_Freddy in forum Technical Help Desk SupportReplies: 4Last Post: 7th Aug 2011, 06:59 PM
themaCreator - create posts from...
Version 3.08 released. Open older version (or...