环境:ubuntu+php+apache+mysql。之前apache可以解析php程序,但是写msyql数据库程序时因为没反应,我把php重新装了一遍,(注:源码安装,./configure=...,make,make install云云).安装结束后,不但mysql没反应,连php都不支持了。有朋友知道这是哪出了问题吗?刚接触这些东西,感觉好乱啊,好不容易配好了,现在又不行了。崩溃。还请朋友们帮个忙啊。先谢谢了。
调试欢乐多
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .phtml
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to t
</IfModule>
LoadModule php5_module "d:/lamp/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "d:/lamp/php5/"还要检查之前是否有重复的地方
你看看mysql操作函数的错误是神马,找不到unix-domain socket文件?
apache php MySQL 三大工具 绝对可以的
apt-get install lamp-server^
嗯,我现在是直接安装的 lamp server,不折腾了,php没多少进展,精力全都耗费在配置上了。得不偿失。