我在Ubuntu16上从源代码编译并安装了PHP7.1.7。 我遵循这个教程: http : //www.shaunfreeman.name/installing-php-7-on-ubuntu-16-04/ 我跟着它到了他添加的东西到modules.ini文件的地方。 现在,Apache没有加载任何PHP,所以我安装了 sudo apt-get install libapache2-mod-php 现在Apache加载了PHP,但版本不同,也没有我编译的PDO驱动程序。 我用phpinfo()检查了这个 Apache显示了7.0.18,而我安装了7.1.7。 我不知道如何安装第二个版本(也许是libapache2-mod-php?) 另外在/ usr / bin中的php可执行文件是7.0.18,所以我删除了它,并创build了一个符号链接到我的7.1.7,所以至less在terminal的PHP工作与正确的版本。 我需要让Apache使用这个新版本。 事情尝试: 在同一个问题上的许多其他答案(如这个 )说,我只需要加载我的apache2configuration不同的模块。 但是我在我的系统上找不到与php7.1.7相关的模块。 我有一个php7.0,我相信这是加载的Apache。
我使用以下命令生成证书 openssl req -new -newkey rsa:2048 -nodes -keyout rrr.key -out rrr.csr 然后,我在sites-available文件夹中创build了以下文件ssl-001.conf <VirtualHost _default_:444> DocumentRoot /var/www/html/endpoint/ ServerName safcom.co.ke ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /home/xxxx/rrr.csr SSLCertificateKeyFile /home/xxxx/rrr.key </VirtualHost> 然后把ports.conf改成这个 <IfModule ssl_module> Listen 443 Listen 444 </IfModule> <IfModule mod_gnutls.c> Listen 443 Listen 444 </IfModule> 然后重新启动我的服务器,它不起作用。 我试图实现的是有我的端口80和443正常运行,但有一个额外的端口444有ssl。 我究竟做错了什么? 我的理解是,你可以有一个证书每个IP或端口!
我在PHP中创build了一个小应用程序,其中一个模块是通过Ajax“导入”数据。 它是如何工作的: 用户点击“开始” Ajax函数发送POST请求(一次性使用)到“在后台”工作的后端方法 完成所有操作后,返回响应。 在我的开发env的思想是好的,进程可以运行多less需要,但在另一台服务器每次2分钟后。 返回“方法不允许”,所以我有问题: – 这个服务器运行在Apache 2.4 – Apache的configuration超时的请求? 或者,也许有人有另一个想法,问题在哪里?
在Debian 8(在Ubuntu上使用ppa)上安装了php7.1之后,我设法恢复了正确的php7.1包。 不过,我相信我缺less了几个关键模块。 问题是,从php5升级之前工作正常的WordPress的网站失败,http错误500.是的,似乎WordPress支持php7.1。 虚拟服务器由virtualminpipe理。 我的apache2日志显示: require_once(/home/example/public_html/wp-config.php): failed to open stream: Permission denied in /home/example/public_html/wp-load.php on line 37 现在,php文件正在下载到这个服务器上,而不是处理它们。 但是我没有改变权限,权限仍然是正确的。 用户和组是example.example。 在/ cat / passwd中,该用户存在。 其他网站似乎工作正常。 我已经安装了以下模块: php7.1-curl php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-xml php7.1-xmlrpc 这是wordpress文档中记载的依赖关系。 我应该补充说只有ssl版本不起作用。 http版本显示默认的apache页面。 我的虚拟主机configuration(这可能是因为它由virtualmin生成有点麻烦)。 <VirtualHost *:80> SuexecUserGroup "#1003" "#1003" ServerName example.com ServerAlias www.example.com ServerAlias webmail.example.com ServerAlias admin.example.com ServerAlias *.example.com DocumentRoot /home/example/public_html ErrorLog […]
我已经为subversion的Apache服务器启用proxypass设置。 它的工作正常以下的设置。 也能够检出库。 ProxyPass /svn/testing_migration https://example.com/svn/testing_migration/ ProxyPassReverse /svn/testing_migration https:/example.com/svn/testing_migration/ 当我传递包含不同path的不同服务器时,在检出回购时出现错误。 以下是设置 ProxyPass /svn/testing_migration https://example.com/svn/testing_migration/svn/repos/testing_migration/ ProxyPassReverse /svn/testing_migration https:/example.com/svn/repos/testing_migration/ 上述设置工作正常,当我通过浏览器访问存储库,但在检出回购时出错。 错误:url不一样
我有一个由两个子域组成的Apacheconfiguration,这两个子域在Apacheconfiguration中作为虚拟主机实现,存储在磁盘上 /var/www/html (site: box.domain.com) /var/www/owncloud (site: cloud.domain.com) /var/www/owncloud-backup (should not be accessible) 由于RewriteCondconfiguration错误,导致redirect不会发生(见下文),所以在进入http://box.domain.com时,会显示/ var / www的目录列表。 但是, / var / www在任何configuration文件中都没有定义为DocumentRoot 。 / var / www中唯一提到的是apache2.conf中的安全模型。 出于安全原因,如果未来configuration中出现类似的错误,我想知道为什么/ var / www出现在目录列表中,当这个目录没有被定义为DocumentRoot的时候。 发现这个错误是非常困难的,因为使用Strict-Transport-Security ,一旦浏览器指向https://网站,浏览器就会自动redirect。 系统是Ubuntu 14.04与Apache 2.4.7-1ubuntu4.17 sites-enabled / box.domain.conf (注意RewriteCond应该包含box.domain.com): <VirtualHost *:80> ServerName box.domain.com RewriteEngine on RewriteCond %{SERVER_NAME} =cloud.domain.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} END,QSA,R=permanent] </VirtualHost> sites-enabled / […]
有一个网站,我通过apache2在我的房子,我用作家庭自动化中心托pipe在一个树莓派。 我有一个ipcamera,我只保留在本地networking(无端口转发),以保证它成为一个僵尸networking的一部分或被brickerbot击中(在那里,这样做)的安全。 我将videostream转发到我的网页上,当我在本地时,我可以看到该Feed,但是当我离开时,我看不到Feed,因为我查找的是家庭networking外部不存在的页面。 我可以通过使用腻子将袜子隧道连接到我的家庭networking来实现这一点,但是,我希望能够从各种设备中看到此馈送,而无需使用特定浏览器的隧道。 有没有办法让我的networking服务器代理请求通过它为本地networking地址(即任何启动192.168。###。###)?
我有一个问题,我的服务器,当用户打开特定链接的网站(即主页)在一个标签,如果需要一些时间来加载,然后打开其他页面(即关于或联系页面)的新选项卡中的同一网站也需要时间。 一旦第一页(主页)加载,其他页面也加载。 为什么发生这样的事情,是否有任何服务器端configuration问题来处理这样的事情? 我正在运行PHP Laravel应用程序,而Apache和MySQL分别托pipe在Amazon上的多个xlarge实例上。
我买了一个SSL证书到一个域(foo.foo2.com),我已经做了这个安装: httpd-vhost.conf(apache文件) <VirtualHost *:443> ServerAdmin [email protected] DocumentRoot "C:/xampp/htdocs/foo.foo2.com" ServerName foo.foo2.com SSLEngine on SSLCertificateFile "C:/xampp/apache/conf/certificates/foo.foo2.com/certificate.crt" SSLCertificateKeyFile "C:/xampp/apache/conf/certificates/foo.foo2.com/certificate.key" SSLCACertificateFile "C:/xampp/apache/conf/certificates/foo.foo2.com/certificate.ca.crt" ErrorLog logs/error.log CustomLog logs/access.log common </VirtualHost> Windows Server 2008 R2 在防火墙上打开了443个端口(我用zenmap检查443是否打开) Apache停止并开始没有问题,但是当我把https://foo.foo2.com放在浏览器上时,该操作给了我一个超时。 有任何想法吗? 当我使用这个工具( https://www.sslshopper.com/ssl-checker.html ),我得到这个消息: foo.foo2.com resolves to 212.145.243.67 Server Type: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 No SSL certificates were found on foo.foo2.com. Make sure that the […]
我正在使用Apache作为我的Web应用程序的代理服务器,在Glassfish容器中运行。 我在Apache中configuration了代理密码和SSL。 该网站可以从外部访问URL https://www.my-domain.com没有任何问题。 但是我想在浏览器上调用没有前缀“https://”(www.mydomain.com。)的网站。 如果我不使用https://使用URL,它会在浏览器(Safari,firefox)上给我提供“无法连接到服务器”的错误,并在命令提示符处使用curl: Rebuilt URL to: www.my-domain.com/ Trying 2xx.xxx.xxx.xxx… connect to 2xx.xxx.xxx.xxx port 80 failed: Connection refused 我根据apache文档configuration了虚拟主机,将没有 “https”的任何请求redirect到“https”。 Hier是我的configuration: <VirtualHost 2xx.xxx.xxx.xxx:80> ServerName my-domain.com ServerAlias www.my-domain.com RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule (.*) https://my-domain.com [R,L] </VirtualHost> 有什么我缺less的configuration? 为什么Apache服务器不redirect请求? 任何帮助将不胜感激。 PS。 一旦我用https://从外部调用页面,即使删除了现金,也可以调用它,而不用使用前缀https://。 在VPN或在同一个networking,它的工作没有前缀。