LAMP

Paul Preston Paul.Preston at proxar.co.uk
Wed Oct 19 08:52:39 UTC 2011


Hi,

LAMP environments are so common and so easy to setup that I don't expect any documentation to be published.

Assuming that you use redhat, please install following packages:
php-mysql.x86_64
mysql-server.x86_64
httpd.x86_64

Configure apache: Probably you need to add vhost configuration httpd.conf and separate file under/etc/httpd/conf.d/

Then start services:
chkconfig mysqld on
chkconfig httpd on
service mysqld start
service httpd start


Secure mysql: use mysql_secure_installation command

Create database  and assign permissions ("create database <database name>" and "grant ...." commands)

Import data with using mysql -p < backup.sql

Unblock ports (most likely 80 and 443) in a firewall /etc/sysconfig/iptables and restart the service ("service iptables restart")

Configure your application to use localhost as a database server and other details (db name, username and password)

Probably you will need to setup dns to point to your new Linux server.

That's it... obviously it's a basic configuration to get it up and running. You should also apply hardening with using various methods including mod_security and following document: http://people.redhat.com/sgrubb/files/hardening-rhel5.pdf

Good Luck!

Kind Regards,

--
Paul Preston
Proxar IT Ltd. Registered in England and Wales: 6744401- VAT: 942985479
Tubs Hill House, London Road, Sevenoaks, Kent, TN13 1BL
Tel:  (+44) 0844 809 4335
Fax: (+44) 01732 459 423
Mob: (+44) 077 9509 3450
Web: www.proxar.co.uk
Email: paul.preston at proxar.co.uk


-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of ambadas bhagat
Sent: 19 October 2011 09:02
To: General Red Hat Linux discussion list
Subject: LAMP

Dear RedHat Experts
I am using RHEL 4 and 5 so i have developed php website which backend is mysql that is currentlly running in windows, but i want to setup LAMP in linux how can i do this , i want to store same code and database into the linux i am not getting proper documentation also. so plz tell me what can i do
--

Thank You
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Please note that we may monitor or record telephone calls, email traffic data and also the content of email for the purposes of security and staff training. This message (and any associated file or documentation) is intended only for the use of the individual or entity to whom it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notifiedthat any dissemination, copying or distribution of this message, or files and documentation associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from oyur computer. Any views or opinions presented are solely those of the authorand do not necessarily represent those of the company.




More information about the redhat-list mailing list