Questions tagged «apache2»

使用此标签可以解决有关在Ubuntu或Ubuntu官方衍生版本之一上配置和使用Apache的问题。

4
在Ubuntu 16.04中Apache2重新启动失败
我想用domain我localhost的代替localhost或127.0.0.1 我添加了一个配置文件myconfig.conf,sites-availbale 我也使用sudo a2ensite myconfig.conf 当我apache2使用重新启动服务器时sudo sudo systemctl restart apache2,出现如下错误 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. 我apache2通过卸载将其重新安装,但由于 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl …
6 server  apache2  php7 

1
使用本地主机dns在特定的192.168.1.x主机上运行apache
我尝试使用本地dns服务器(nameserver localhost在/etc/resolv.conf中)在特定的“ 192.168.1.x”地址上运行apache 。 如果我这样做dig @localhost www.mywebsite.com,则名称解析为192.168.1.67。 在ports.conf中,我有这个:听192.168.1.67:80 在/sites-enabled/000-default.conf中,我将默认*:80更改为: <VirtualHost 192.168.1.67:80> 但这是行不通的。www.mywebsite.com和192.168.1.67均无法访问。 我想念什么?

1
找不到LAMP 404页面
我正在尝试访问index.php页面上的项目,该项目正在本地主机上使用Slim框架。但是,我得到404页面未找到。 我创建了一个/home/user/public_html从的符号链接/var/www/html 我允许所有权限与chmod 777上public_html 我的项目位于 /home/user/public_html 这是我的.htaccess文件: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] 我可以访问包含的php文件phpinfo()。它位于/public_html mod_rewrite 已启用。 我没有使用VirtualHost。这可能是问题吗?

1
在HIVE 3.0.0中发生了JNI错误
我成功安装了Hadoop,并且工作正常,但是当我安装Hive并hive在终端中运行命令时,出现此错误 Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 64 at java.util.jar.JarFile.match(java.base@9-internal/JarFile.java:983) at java.util.jar.JarFile.checkForSpecialAttributes(java.base@9-internal/JarFile.java:1017) at java.util.jar.JarFile.isMultiRelease(java.base@9-internal/JarFile.java:399) at java.util.jar.JarFile.getEntry(java.base@9-internal/JarFile.java:524) at java.util.jar.JarFile.getJarEntry(java.base@9-internal/JarFile.java:480) at jdk.internal.util.jar.JarIndex.getJarIndex(java.base@9-internal/JarIndex.java:114) at jdk.internal.loader.URLClassPath$JarLoader$1.run(java.base@9-internal/URLClassPath.java:640) at jdk.internal.loader.URLClassPath$JarLoader$1.run(java.base@9-internal/URLClassPath.java:632) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(java.base@9-internal/URLClassPath.java:631) at jdk.internal.loader.URLClassPath$JarLoader.<init>(java.base@9-internal/URLClassPath.java:606) at jdk.internal.loader.URLClassPath$3.run(java.base@9-internal/URLClassPath.java:386) at jdk.internal.loader.URLClassPath$3.run(java.base@9-internal/URLClassPath.java:376) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) …

1
Apache2在Ubuntu 16.04上不读取.htaccess
我需要帮助。我尝试创建本地测试服务器。我已经安装了LAMP和DataLife Engine 11.1。它有效,但是例如,如果我想去,localhost/rules.html它会返回我404(因为显然不存在,因为它不存在),尽管它应该使用.htaccess并将我重定向到localhost/index.php?do=rules 我已经从网上尝试了很多不同的解决方案(例如编辑配置和启用重写mod)。而且它仍然会发生。有什么建议么? PS这是我的配置文件。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.