New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
mmmm ... thank you very much for help, greatly appreciate ... i'll inform you quickly ...
My last lamp install notes. Centos 6.4/6.3
yum update
Download repos for newer and extra packages
EPEL i386
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
or
EPEL x86_64
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
and
rpmforge 32bit
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
or
rpmforge 64bit
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
and
Remi 6 i386
http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
install repos
rpm -Uvh remi-release-6.rpm epel-release-6.rpm rpmforge-release-*.rpm
set priority to 10. Edit the repos config files below.
ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
priority=10
nano /etc/yum.repos.d/epel*
nano /etc/yum.repos.d/remi.repo
priority=10
yum install yum-priorities
yum groupinstall 'Development'
yum --enablerepo=remi install httpd php php-common openssl-devel openssl mod_ssl rpm-build rpm-devel autoconf automake lynx gcc
yum --enablerepo=remi install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
Start apache.
/etc/init.d/httpd start
Start apache after reboot
chkconfig --levels 235 httpd on
NOTE: On Centos, add the user apache to the group who owns the directory. For example, I created a user in /home/jeff/ user and group is: jeff:jeff
You will add the user apache to the group jeff.
Set the right permissions on the web folder.
-chmod 770 /home/jeff
-ownership folder jeff is
drwxr-x---. jeff:jeff
Create a web folder public_html. See permissions below.
chmod 755 /home/jeff/public_html
drwxr-xr-x 23 jeff jeff 4096 Mar 21 13:07 public_html
Edit Apache configuration file
nano /etc/httpd/conf/httpd.conf
< VirtualHost xx.xx.xx.xx:80>
ServerAdmin [email protected]
DirectoryIndex index.html index.php
DocumentRoot /home/user/public_html
Options - Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow , deny
allow from all
# CGI Directory
ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/
<Location /cgi-bin>
Options
+ExecCGI
</Location>
ServerName website.com
ServerAlias www.website..com
# Logfiles
ErrorLog "logs/user_error_log"
CustomLog "logs/user_access_log" common
</VirtualHost>
# website.com ssl
<VirtualHost xx.xx.xx.xx:443>
SSLEngine On
SSLCertificateFile /etc/ssl/localcerts/www_website._com.crt
SSLCertificateKeyFile /etc/ssl/localcerts/www.website.com.key
SSLCACertificateFile /etc/ssl/localcerts/AddTrustExternalCARoot.crt
SSLCertificateChainFile /etc/ssl/localcerts/PositiveSSLCA2.crt
ServerAdmin [email protected]
DirectoryIndex index.html index.php
DocumentRoot /home/user/public_html
<Directory /home/user/public_html>
Options
-Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow
,deny
allow from all
</Directory>
# CGI Directory
ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/
<Location /cgi-bin>
Options
+ExecCGI
</Location>
ServerName www.website.com
# ServerAlias www.website..com
# Logfiles
ErrorLog "logs/user_error_log"
CustomLog "logs/user_access_log" common
</VirtualHost>
/etc/init.d/httpd restart
Mysql db installation
yum --enablerepo=remi install mysql mod_auth_mysql mysql-devel mysql-server
yum --enablerepo=remi install mod_python python python-devel
yum --enablerepo=remi install perl mod_perl mod_perl-devel openssl-perl perl-Convert-ASN1 perl-Date-Calc perl-DateManip perl-HTML-Parser perl-libwww-perl perl-CPAN perl-DBD-MySQL perl-XML-Parser
yum install openssh-clients
chkconfig --levels 235 mysql on
more stuff...
logwatch
mod_sec
apf firewall
bfd
etc.,
I cant find this
# Listen for virtual host requests on all IP addresses NameVirtualHost *:80
in your apache config.according to this : http://httpd.apache.org/docs/2.2/vhosts/examples.html you must have it and your DNS should be pointing those domain names to your server.
yeah ... @Noerman thank you very much for your help ... also thanks to all of you for helping me ... finally @Noerman give me a big help to do this with webmin panel ... yeah now it's working perfect ...
@shyaminayesh good luck with your new websites
@vRozenSch00n : hey hey thank you very much ...
@shyaminayesh Love to help you, don't forget to learn for more.
Learn how to configure manually.
Real man doesn't need control panel.
@budingyun : yep ... i'm trying to do it without control panel ...
yep ... still learning ...
I recommend you learn how setup nginx + php-fpm.