Code Monkey home page Code Monkey logo

php-website-template-l1's Introduction

README

A complete enterprise website, including the Frontend and Backend admin page. is uploaded in the repositories because of the end of the project/product life cycle. The code is for learning only and prohibits any business related behavior,website does not use any MVC framework, very suitable for beginners PHP study.

PHP-WEBSITE-TEMPLATE-L1 一个完整的中英文双语企业网站模板,界面设计简洁美观,包括前台后台,因为项目生命周期完结,整理到仓库中以做总结,代码仅供学习,禁止任何与商业有关的行为! 站点前后端未用任何MVC框架、未用任何第三方CMS系统,不存在复杂的一堆看不明白的代码,全程序均手写,非常适合PHP初学者入门。  


 

运行环境和下载地址

安装调试

  • 拷贝www到网站目录 例如:C:\AppServ\www\website\www

  • 导入数据库SQL文件 PHPMYADMIN中新建website数据库,并导入demo-l1.sql,注意新建数据库排序规则为utf8_general_ci

  • 配置前台和后台数据库连接信息
    前台文件路径 /www/inc/config.php
    后台文件路径 /www/admin/inc/config_admin.php

    $db_hostname="localhost"; //服务器
    $db_username="root"; //用户名
    $db_password="123456"; //密码
    $db_database="website"; //数据库

    后台文件路径 /www/admin/inc/config_admin.php中需指定测试域名的字符串,如下
    $siteurl="http://www.website.com";

*安装盘:\AppServ\Apache2.2\conf\httpd.conf

*禁止访问目录,httpd.conf中找到如下行信息,去除Indexes
Options Indexes FollowSymLinks Includes ExecCGI ------- httpd.conf去除 Indexes

  • httpd.conf 中找到'# Include conf/extra/httpd-vhosts.conf',去掉#,开启VHOST虚拟主机    

运行设置

  • You appserv httpd-vhosts.conf set
    安装盘:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf 设定虚拟主机信息,追加如下

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:\AppServ\www\website\www"
    ServerName www.website.com
    ErrorLog "logs/dummy-host2.x-error.log"
    CustomLog "logs/dummy-host2.x-access.log" common
    </VirtualHost>

  • 域名重定向,追加如下      127.0.0.1       www.website.com

  • 重启APACHE后,在浏览器中运行 http://www.website.com

  • 后台地址: http://www.website.com/admin/   User: admin  Password: admin888


Author Koko Lv
E-mail [email protected]

php-website-template-l1's People

Contributors

kokobing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.