If you're having trouble with running LAMP, here is a quick guide to solve most common problems.
Most faults about the Instance is closely related to the Instance provider, Cloud Platform. Provided you're sure the fault is caused by Cloud Platform, refer to Cloud Platform Documentation (opens new window).
# Redirects Error?
Check your .htaccess file in your application root directory, remove cycle redirects settings
# Database service could not be started?
Insufficient disk space, insufficient memory, and configuration file errors can make database service could not be started
It is recommended to first check through the command.
# check the MySQL service sudo systemctl restart mysql sudo systemctl status mysql sudo journalctl -u mysql # view disk space df -lh # view memory rate free -lh
# The database log file is too large, resulting in insufficient disk space?
By default, mysql will automatically open the binlog. Binlog is mainly used to recover the database without backup. However, the binlog will take up a lot of space. If you don't clean it for a long time, the remaining disk space will be 0, which will affect the database or the server will not start.
If you have confidence in your own backup, you do not need the binlog function. Refer to the following steps to turn it off:
- Edit [MySQL Configuration File] (/stack-components.md#mysql) and comment out the binlog log
- Restart MySQL
sudo systemctl restart mysqld
# phpMyAdmin page access blank?
Please try another browser, such as chrome or firefox. If the phpMyAdmin can be opened normally before, and now appears to be incomplete or blank, it is recommended to clean up the browser cache, cookies and other information
# When restart Apache service, such error No spaces...
Do not worry, the Apache service is running