Last update at :2024-06-14,Edit by888u
Yesterday, Snail shared the installation of Lighttpd/SQLite/PHP website building environment on Debian system. After testing and practicing several times, there was no problem. This is not the case when I create a website in this environment. The programs I came into contact with include TYPECHO and ZBLOG PHP supports SQLITE database, so in this article, Snail will create a site respectively and follow the TYPECHO and ZBLOG PHP programs to see if it is successful.
First, create a site directory
mkdir -p /home/wwwroot/laozuomkdir -p /home/wwwroot/laozuo/public
Create a site in home/wwwroot and name the folder with the website domain name so that if there are multiple sites, you can clearly see which folder corresponds to which site.
Second, modify the site environment connection
vi/etc/lighttpd/lighttpd.conf
Add in the last line
$HTTP[\\”host\\”] =~ \\”(^|\\\\.)laozuo\\\\.org$\\” {server.document-root = \\”/ home/wwwroot/laozuo/public\\”accesslog.filename = \\”/var/log/lighttpd/laozuo/access.log\\”server.error-handler-404 = \\”/404.html\\” }
Third, restart the Lighttpd service
/etc/init.d/lighttpd restart
At this time, there is no problem with the site environment. We need to upload the web page files and place them in the directory of the corresponding folder.
Fourth, install the Typecho site
Select the corresponding database version (optional), and the database files are randomly generated. The installation will be successful directly according to the wizard. If you encounter problems with directory permissions that cannot be followed, you can just modify the permissions.
Fifth, install ZBLOG PHP site
The picture above is the SQLITE database selection path that appears when installing the ZBLOG PHP wizard. In this way, we can easily set up a website in the Lighttpd/SQLite/PHP environment.
Recommended site searches: Ministry of Industry and Information Technology ICP registration, best US server, PHP virtual space, virtual host ranking, IP segment query, website IP address query, free space application, Jiangsu high defense server, query IP address, website registration information Query,
发表评论