hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
On Mon, 3 Mar 2008, Matt Shields wrote:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
is this include SSL???
t. hiep
On Mon, Mar 3, 2008 at 9:04 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
On Mon, 3 Mar 2008, Matt Shields wrote:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
is this include SSL???
Learn Yum, it's your friend. If you don't know how to use it just type "yum" and it will give you a list of options. See how I used "yum groupinfo" on the "Web Server" group. One of the default packages is mod_ssl.
[root@admin ~]# yum groupinfo "Web Server" Loading "installonlyn" plugin Setting up Group Process Setting up repositories base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 centosplus 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 comps.xml 100% |=========================| 912 kB 00:02 yumgroups.xml 100% |=========================| 9.7 kB 00:00
Group: Web Server Description: These tools allow you to run a Web server on the system. Mandatory Packages: httpd Default Packages: tux mod_python mod_ssl distcache webalizer php-ldap squid mod_perl crypto-utils httpd-manual php Optional Packages: php-odbc tomcat5-admin-webapps php-pear mod_auth_kerb httpd-suexec tomcat5-webapps mod_nss mod_auth_pgsql mod_auth_mysql mod_authz_ldap tomcat5 php-mysql php-pgsql
On Mon, 3 Mar 2008, Matt Shields wrote:
On Mon, Mar 3, 2008 at 9:04 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
On Mon, 3 Mar 2008, Matt Shields wrote:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
is this include SSL???
Learn Yum, it's your friend. If you don't know how to use it just type "yum" and it will give you a list of options. See how I used "yum groupinfo" on the "Web Server" group. One of the default packages is mod_ssl.
[root@admin ~]# yum groupinfo "Web Server" Loading "installonlyn" plugin Setting up Group Process Setting up repositories base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 centosplus 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 comps.xml 100% |=========================| 912 kB 00:02 yumgroups.xml 100% |=========================| 9.7 kB 00:00
Group: Web Server Description: These tools allow you to run a Web server on the system. Mandatory Packages: httpd Default Packages: tux mod_python mod_ssl distcache webalizer php-ldap squid mod_perl crypto-utils httpd-manual php Optional Packages: php-odbc tomcat5-admin-webapps php-pear mod_auth_kerb httpd-suexec tomcat5-webapps mod_nss mod_auth_pgsql mod_auth_mysql mod_authz_ldap tomcat5 php-mysql php-pgsql
thanks, t. hiep
--- Matt Shields mattboston@gmail.com wrote:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play
with it and have a general
idea. it's time for me to setup a centos box for
development. i rarely
install anything from source, except a few times
in college when i have to
modify kernel for OS project. but i guess i can
learn now.
i just installed centos 5 with minimal
installation. next step is to
install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i
have questions before i
proceed.
is it better to install from source or rpm? how
easy it is to
upgrade/update if install from source? it seems
so much easy to
upgrade/update from rpm, well b/c i'm always do
this way.
is there any other instruction (beside the one
mentioned above) to install
LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
Adding to this (which works for me too), here are some default values (from RHEL) for configs and web root:
main configs - /etc/httpd/conf/ for merged configs- /etc/httpd/conf.d/ apache2 daemon name = httpd web root - /var/www/html/
mod_perl config - /etc/httpd/conf.d/perl.conf
note that there is no default mod_perl startup script!
On Mon, 3 Mar 2008, Matt Shields wrote:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
all done. now, how do i force apache & mysql servers start up whenever the box boot?
t. hiep
on 3-3-2008 8:54 AM Hiep Nguyen spake the following:
On Mon, 3 Mar 2008, Matt Shields wrote:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi all,
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
all done. now, how do i force apache & mysql servers start up whenever the box boot?
t. hiep
chkconfig mysqld on && chkconfig httpd on
On Mon, Mar 03, 2008 at 08:54:03AM -0800, Hiep Nguyen enlightened us:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
all done. now, how do i force apache & mysql servers start up whenever the box boot?
I would suggest reading the Deployment Guide (http://www.centos.org/docs/5/html/5.1/Deployment_Guide/) which will answer many of these questions.
A place for you to start on this particular question would be the man page of the chkconfig command.
Matt
On Mon, 3 Mar 2008, Matt Hyclak wrote:
On Mon, Mar 03, 2008 at 08:54:03AM -0800, Hiep Nguyen enlightened us:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
all done. now, how do i force apache & mysql servers start up whenever the box boot?
I would suggest reading the Deployment Guide (http://www.centos.org/docs/5/html/5.1/Deployment_Guide/) which will answer many of these questions.
A place for you to start on this particular question would be the man page of the chkconfig command.
thank you everyone for helping. done with installation, now move on to configuration.
i try to access web server (10.0.0.160), but couldn't found. so check to see if httpd is running or not.
[root@dev ~]# ps aux | grep httpd root 2375 1.3 3.8 26412 9932 ? Ss 08:02 0:00 /usr/sbin/httpd apache 2405 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2406 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2407 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2408 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2409 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2410 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2411 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd apache 2412 0.0 1.9 26548 4972 ? S 08:02 0:00 /usr/sbin/httpd root 2608 0.0 0.2 3896 684 pts/0 S+ 08:03 0:00 grep httpd
my question is why so many of them running???
less /etc/httpd/logs/error_log: [Mon Mar 03 13:30:03 2008] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_ t:s0 [Mon Mar 03 13:30:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Mar 03 13:30:04 2008] [notice] Digest: generating secret for digest authentication ... [Mon Mar 03 13:30:04 2008] [notice] Digest: done [Mon Mar 03 13:30:04 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Mon Mar 03 13:30:05 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Tue Mar 04 08:00:38 2008] [notice] caught SIGTERM, shutting down [Tue Mar 04 08:02:51 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:ht tpd_t:s0 [Tue Mar 04 08:02:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Mar 04 08:02:52 2008] [notice] Digest: generating secret for digest authentication ... [Tue Mar 04 08:02:52 2008] [notice] Digest: done [Tue Mar 04 08:02:53 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Tue Mar 04 08:02:53 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
any clue why i can't see web server from my internal network? i can ping 10.0.0.160 no problem.
t. hiep
on 3-4-2008 5:04 AM Hiep Nguyen spake the following:
On Mon, 3 Mar 2008, Matt Hyclak wrote:
On Mon, Mar 03, 2008 at 08:54:03AM -0800, Hiep Nguyen enlightened us:
On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen hiep@ee.ucr.edu wrote:
i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now.
i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL.
i found http://lamphowto.com/lampssl.html, but i have questions before i proceed.
is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way.
is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL?
appreciate your help/suggestion t. hiep
It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands
yum -y groupinstall "Web Server" yum -y install mysql-server php-mysql
This will get Apache, MySQL, and PHP all installed.
all done. now, how do i force apache & mysql servers start up whenever the box boot?
I would suggest reading the Deployment Guide (http://www.centos.org/docs/5/html/5.1/Deployment_Guide/) which will answer many of these questions.
A place for you to start on this particular question would be the man page of the chkconfig command.
thank you everyone for helping. done with installation, now move on to configuration.
i try to access web server (10.0.0.160), but couldn't found. so check to see if httpd is running or not.
<snip>
my question is why so many of them running???
Your config file has a setting for how many children should be always running, and how many connections each can accept before starting more.
less /etc/httpd/logs/error_log: [Mon Mar 03 13:30:03 2008] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_ t:s0 [Mon Mar 03 13:30:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Mar 03 13:30:04 2008] [notice] Digest: generating secret for digest authentication ... [Mon Mar 03 13:30:04 2008] [notice] Digest: done [Mon Mar 03 13:30:04 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Mon Mar 03 13:30:05 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Tue Mar 04 08:00:38 2008] [notice] caught SIGTERM, shutting down [Tue Mar 04 08:02:51 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:ht tpd_t:s0 [Tue Mar 04 08:02:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Mar 04 08:02:52 2008] [notice] Digest: generating secret for digest authentication ... [Tue Mar 04 08:02:52 2008] [notice] Digest: done [Tue Mar 04 08:02:53 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Tue Mar 04 08:02:53 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
any clue why i can't see web server from my internal network? i can ping 10.0.0.160 no problem.
t. hiep
Do you have the firewall properly configured? You should get the standard CentOS placeholder page. Try either adjusting your firewall or temporarily turning it off and see if you get something.