ubuntu – phpmyadmin.conf和apache.conf缺失
发布时间:2020-10-19 15:31:45 所属栏目:Ubuntu 来源:互联网
导读:当试图用apache启动时 sudo /etc/init.d/apache2 restart 我收到了错误 apache2: Syntax error on line 260 of /etc/apache2/apache2.conf: Could not openconfiguration file /etc/apache2/conf.d/phpmyadmin.conf: No such fil
|
当试图用apache启动时 sudo /etc/init.d/apache2 restart 我收到了错误 apache2: Syntax error on line 260 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/phpmyadmin.conf: No such file or directory Action 'configtest' failed. The Apache error log may have more information. ...fail! 我该怎么办?在互联网上阅读时,我应该在/ etc / phpmyadmin中有一个名为apache.conf的文件,但我没有. 刚刚在Debian 7上遇到了这个问题,安装程序和dpkg-reconfigure phpmyadmin创建了一个断开的链接“/etc/apache2/conf.d/phpmyadmin.conf”,它指向丢失的文件“../../phpmyadmin/apache. CONF”.不得不从较旧的安装中删除副本,在下面发布. Piotr,你的评论没用,不污染.phpMyAdmin默认的Apache配置 Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory> (编辑:鄂州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
