1.Create base environment
See follow to how to create linux environment in Amazon Linux AMI:
How To Create A LAMP Setup (Apache2, PHP, MySQL) On CentOS 5.x In An Amazon Linux AMI 32bits Or 64bits
How To Create A LAMP Setup (Apache2, PHP, MySQL) On CentOS 5.x In An Amazon Linux AMI 32bits Or 64bits - Page 2
2.Install Zend Studio CE
RPM Installation (RHEL, CentOS, Fedora and OEL)
2.1.create file /etc/yum.repos.d/zend.repo and adding the following content:
[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
2.2 install zend server –ce
yum install zend-server-ce-php-5.3
2.3 install zend other
yum install php-5.3-extra-extensions-zend-server php-5.3-loader-zend-server zend-server-framework-extras
2.4 stop zend default process
netstat -anp
find zend process pid. link these:
unix 2 [ ACC ] STREAM LISTENING 8831 2161/php /usr/local/zend/gui/lighttpd/tmp/php-fastcgi.socket
open /etc/profile. Add the following lines to the end of the file:
PATH=$PATH:/usr/local/zend/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib
In order for this to take effect, close and reopen your shell or run the following command:
source /etc/profile
2.6 put your www files to /var/www/html
2.7 then see the website url in your client browser.it fine.
3.allow linux sql to access rds
rds –> db secure group –> description –>add your ec2 secure group
4.make http default documentDocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks IncludesNOEXEC
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php index.htm index.html
</Directory>
above contaie default webroot+rewrite+directoryindex
<Directory "/var/www/html">
Options Indexes FollowSymLinks IncludesNOEXEC
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php index.htm index.html
</Directory>
No comments:
Post a Comment