1.:验证码不显示问题 在config files 中的php.ini extension=php_gd2.dll前面的“;” 号去掉;
2:修改端口问题 在 在config files 中找到httpd.conf Listen 80 将80修改就可以了;
3:修改网站的存放路径问题 在config files 中找到httpd.conf 找到 DocumentRoot 将后面的路径替换成你所需要的路径, 这个路径在 httpd.conf 是出现两次的 两次在文本编辑器相距不远 往下找找就可以找到 也可以查找<Directory 也可以找到。
4.网站ip访问
把php项目发布到www文件夹下后,使用http://localhost可以打开网站,解决方案如下:我的wamp装在c盘下,需要修改一下C:\wamp\Apache2\conf下的httpd.conf文件中的一些权限设置找到下面Directory开头的下面两段:
<Directory "c:/wamp/www/">
# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks
# # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride all
# # Controls who can get stuff from this server. #
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
<Directory "c:/wamp/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Deny from all
</Directory>
解决方法:红色的是要改的先将Allow from 127.0.0.1改为Allow from all 然后将Deny from all改为Allow from all
5.当织梦后台局域网内部有很多访问用户是会造成php内存溢出,不够用,特别是在一键更新整个网站的时候 报错如下 :
Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 6144 bytes) in F:\work\website111\include\helpers\channelunit.helper.php on line 603
或者这样的
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 84451 bytes) in F:\work\website111\include\dedetag.class.php on line 725;
一般出现这样的Allowed memory size 一段话,都可以尝试下面的解决方案解决
解法方案, 在config files 中的php.ini 中找到memory_limit=8M修改成较大值,80M,800M,在不照成内存溢出的前提下建议设置占用电脑内存的 40%左右。2G*40%=500M;
一般都是够用的。
以上改完以后重启Apache 服务就行了。
如果有什么问题请联系我
1074684163@qq.com 加Q的说明下csdn 看到的联系方式。 希望大家共同探讨共同进步