PHP infrastructure powered by Websoft9(LAPP | CentOS7.3 )
Jun 28, 2024
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
5. Restart the http service
6. Visit the http://Domain/ to start the application intallation wizard
7. If you are prompted during the installation wizard database can not
be created automatically, you need to create a database through:
http:// Internet IP Address/adminer
Install the second website(e.g.named mysite2 ), the same steps
Upgrade
You can run the update command for all the upgrade for this Image
~# yum update -y
Backup
Routine backup (archives) of the database and application setup is
essential to ensure failover is smooth.
Backup is based on the server snapshot automatic backup and manual
local backup in two ways, both of which have their own advantages and
disadvantages, it is recommended to use together
Automatic Backup by Snapshot of ServerIaaS provider have the “snapshot” function for Server, the snapshot is for the
server disk. Snapshot tool can record the specified point in time the hard
disk data, all backed up, and can achieve a key recovery.
If you have an automatic snapshot of the disk settings, the following scenes
you can be more calm face:
Work a few days of the results, was mistakenly deleted
Hackers damage your site
The content has been messed up
Done a snapshot backup, a key to restore to the backup point of time state.
That is, on-site reduction, very good function.
Different cloud vendor snapshot settings slightly different, specific
reference:
How to use Alicloud snapshot?
(https://www.alibabacloud.com/help/doc-detail/25455.htm)
LAPP FAQ
Coming soon…
How to configure domain?
Use domain you should complete the following steps:
Step One:Domain resolution
e.g,If you using the AliCloud Domain product,you should log in to your
Domain Console Panel
And find the domain name resolution interface,then add an A record to the
Internet IP Address of Server from Domain Control Panel.
Step One:modify the vhost file
1. Using SFTP to edit the /ect/httpd/conf.d/vhost.conf
2. Modify the domain related information like below,then save it
ServerName www.mydomain.com
ServerAlias mydomain.com
3. Using putty to run the command “systemctl restart httpd”
How to start or stop the Services?
Apache http service
~# systemctl start httpd
~# systemctl stop httpd
~# systemctl restart httpd
MySQL service
~# systemctl start mysqld
~# systemctl stop mysqld
~# systemctl restart mysqldHow to change the permissions of
filesytem?
When install new extension from back-end it will not successful,may be the
permissions of file and folder is not appropriate,you should change it
Web site root permissions to follow:
file 644,folder 755 ,Permissions Users and groups apache,apache
If there is a file permissions problem, execute the following three
commands:
~# chown -R apache.apache /data/wwwroot/chyrp
~# find /data/wwwroot/chyrp -type d -exec chmod 755 {} \;
~# find /data/wwwroot/chryp -type f -exec chmod 644 {} \;
Websoft9">