rawandnet
asked on
compile php-apache-mysql step-by-step
Is there a full step-by-step instruction of compiling php, apache and mysql with enabling the following utilities for php
PHP 5.2 or newer
IMAP (extension)
mbstring (extension)
Mailparse (extension)
memory_limit >= 16M (php.ini)
file_uploads = On (php.ini)
PHP 5.2 or newer
IMAP (extension)
mbstring (extension)
Mailparse (extension)
memory_limit >= 16M (php.ini)
file_uploads = On (php.ini)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes. what you want its there except mailparse. If you know what extension require for mailpersr just use that or allow me 2 hour i will tell u what extension u need. Other then its fine. I prefer source over yum.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
guys i was using (<? phpinfo(); ?> page to test php version, it was blank solution is:
Using <? phpinfo(); ?> is based on the short_open_tag configuration. Make sure that in your /etc/php.ini file that this is still enabled.
short_open_tag = On
thanks, sill i will try compling steps, incase i had problem in future.
Using <? phpinfo(); ?> is based on the short_open_tag configuration. Make sure that in your /etc/php.ini file that this is still enabled.
short_open_tag = On
thanks, sill i will try compling steps, incase i had problem in future.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
compiling from source will take only 20 min!!! its up to you.. but if you want to go for latest version then you need to compile from source
but i will tell you to practice on a test server , like create a vmware , and test on their before going to live server
but i will tell you to practice on a test server , like create a vmware , and test on their before going to live server
ASKER
Fosiul01
Fosiul01, used your link to compile apache, mysql and php, I have compiled mysql and at stage
(bin/mysqld_safe -–user=mysql &) i got following:
[root@server mysql]# 100419 11:54:21 mysqld_safe Logging to '/usr/local/mysql/var/test 3.local.er r'.
100419 11:54:21 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
100419 11:54:21 mysqld_safe mysqld from pid file /usr/local/mysql/var/test3 .local.pid ended
I am not sure if mysql is enabled or not, how can i enable it, when i issue
(./bin/mysqladmin -u root password 'new-password') I get following:
[root@test3 mysql]# ./bin/mysqladmin -u root password 'Pass'
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
what am i missing?
Fosiul01, used your link to compile apache, mysql and php, I have compiled mysql and at stage
(bin/mysqld_safe -–user=mysql &) i got following:
[root@server mysql]# 100419 11:54:21 mysqld_safe Logging to '/usr/local/mysql/var/test
100419 11:54:21 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
100419 11:54:21 mysqld_safe mysqld from pid file /usr/local/mysql/var/test3
I am not sure if mysql is enabled or not, how can i enable it, when i issue
(./bin/mysqladmin -u root password 'new-password') I get following:
[root@test3 mysql]# ./bin/mysqladmin -u root password 'Pass'
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
what am i missing?
is this your permission to directory is Ok ??
when you start mysql you see like this :
[root@mail ~]# /usr/local/mysql/bin/mysql d_safe --user=mysql &
[1] 19514
[root@mail ~]# 100419 10:40:44 mysqld_safe Logging to '/usr/local/mysql/var/mail .xxxxxx.co .uk.err'.
100419 10:40:45 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
[root@mail ~]# ps aux | grep mysql
root 19514 0.0 0.1 3572 1240 pts/1 S 10:40 0:00 /bin/sh /usr/local/mysql/bin/mysql d_safe --user=mysql
mysql 19676 0.0 0.5 36048 5820 pts/1 Sl 10:40 0:00 /usr/local/mysql/libexec/m ysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql /var --user=mysql --log-error=/usr/local/mys ql/var/mai l.xxxxxx.c o.uk.err --pid-file=/usr/local/mysq l/var/mail .xxxxx.co. uk.pid --socket=/tmp/mysql.sock --port=3306
root 19688 0.0 0.0 3000 704 pts/1 S+ 10:40 0:00 grep mysql
if ps aux | grep mysql does not return anything
then check the error log of your mysql which would be in "usr/local/mysql/var/test3 .local.err '"
if your server name is test3
see what error log saying
when you start mysql you see like this :
[root@mail ~]# /usr/local/mysql/bin/mysql
[1] 19514
[root@mail ~]# 100419 10:40:44 mysqld_safe Logging to '/usr/local/mysql/var/mail
100419 10:40:45 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
[root@mail ~]# ps aux | grep mysql
root 19514 0.0 0.1 3572 1240 pts/1 S 10:40 0:00 /bin/sh /usr/local/mysql/bin/mysql
mysql 19676 0.0 0.5 36048 5820 pts/1 Sl 10:40 0:00 /usr/local/mysql/libexec/m
root 19688 0.0 0.0 3000 704 pts/1 S+ 10:40 0:00 grep mysql
if ps aux | grep mysql does not return anything
then check the error log of your mysql which would be in "usr/local/mysql/var/test3
if your server name is test3
see what error log saying
ASKER
the log shows
100419 13:33:29 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
100419 13:33:29 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
100419 13:33:29 [ERROR] /usr/local/mysql/libexec/m ysqld: unknown option '-
100419 13:33:29 [ERROR] Aborting
100419 13:33:29 mysqld_safe mysqld from pid file /usr/local/mysql/var/test3 .local.pid ended
and ps aux | grep mysql:
[root@test3 ~]# ps aux | grep mysql
root 27170 0.0 0.0 58916 528 pts/2 S+ 13:31 0:00 tail -f /usr/local/mysql/var/test3 .local.err
100419 13:33:29 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
100419 13:33:29 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
100419 13:33:29 [ERROR] /usr/local/mysql/libexec/m
100419 13:33:29 [ERROR] Aborting
100419 13:33:29 mysqld_safe mysqld from pid file /usr/local/mysql/var/test3
and ps aux | grep mysql:
[root@test3 ~]# ps aux | grep mysql
root 27170 0.0 0.0 58916 528 pts/2 S+ 13:31 0:00 tail -f /usr/local/mysql/var/test3
what version of mysql you download ??
latest one is : 5.1.41
latest one is : 5.1.41
ASKER
it is 5.1.45, by the way I downloaded the file from http://www.brothersoft.com/mysql-250551.html. as i coudn't do it from from mysql website itself. it ask for registration, after doing that still i didn't get confirmation email.
ommm i would not trust any thing other then mysql website
you dont have to create username and password
just click on " no thanks just take me to download"
and for 32 bit download this
Generic Linux (glibc 2.3) (x86, 32-bit), Compressed TAR Archive
you dont have to create username and password
just click on " no thanks just take me to download"
and for 32 bit download this
Generic Linux (glibc 2.3) (x86, 32-bit), Compressed TAR Archive
ASKER
on of them is from the source code that is 21MB
other one from General Linux 131MB,
which one shall i download i am using Linux Enterprice 5 (RHEL)
other one from General Linux 131MB,
which one shall i download i am using Linux Enterprice 5 (RHEL)
from this link
http://dev.mysql.com/downloads/mysql/#downloads
Select Linux Generic From Combo box
now for 32 bit , download this
Generic Linux (glibc 2.3) (x86, 32-bit), Compressed TAR Archive
http://dev.mysql.com/downloads/mysql/#downloads
Select Linux Generic From Combo box
now for 32 bit , download this
Generic Linux (glibc 2.3) (x86, 32-bit), Compressed TAR Archive
ASKER
thanks
ASKER
I am so disapointed of redhat that doesn't support php 5.3, even repository doesn't work anymore to update php.
fosiul01 if i follow your steps, does that enable the utility i mentioned above?