一本书后上一个实例:
源码在:http://yun.baidu.com/share/link?shareid=2951536691&uk=573545701
不知道如何它运行起来、 我的做法是:
1.附加数据库
将data文件夹中的db_database25文件夹拷贝/var/lib/mysql
2.将程序发布到AppServ下
将25文件夹拷贝到/usr/local/apache2/htdocs
3.运行
打开IE浏览器,在地址栏中输入127.0.0.1/25,为什么没有一点反应?
我只安装了LAMP,还需要安装什么东西吗?还是方法不对,为什么在浏览器输入127.0.0.1/25就可以运行呢?
苦于无人求助,非常希望得到大家的帮助,谢谢!
步骤一、安装好LAMP环境(wamp,xampp, phpstudy),开启,看看配置环境是否正常.扔个简单的php文件看能否打开。
步骤二、将源码扔到指定文件夹,按照说明进行安装,一般是需要配置数据库的。
步骤三、安装完成,正常打开。
流程方面,可以安装个wordpress先试试。
网站搭建
需要ip指向网站,host加网站和ip
比如apache配置vhosts
<VirtualHost *:80>
DocumentRoot "D:/workspace/html"
ServerName html.test
ServerAlias
FcgidInitialEnv PHPRC "D:/software/cood_tools/phpstudy/Extensions/php/php7.4.3nts"
AddHandler fcgid-script .php
FcgidWrapper "D:/software/cood_tools/phpstudy/Extensions/php/php7.4.3nts/php-cgi.exe" .php
<Directory "D:/workspace/html">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html error/index.html
</Directory>
ErrorDocument 400 /error/400.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
ErrorDocument 501 /error/501.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html
ErrorDocument 504 /error/504.html
ErrorDocument 505 /error/505.html
ErrorDocument 506 /error/506.html
ErrorDocument 507 /error/507.html
ErrorDocument 510 /error/510.html
</VirtualHost>
host加
127.0.0.1 html.test