标签: server-configuration

在Htdocs之外创建XAMPP/Apache服务文件

是否可以配置xampp来提供htdocs目录之外的文件?

例如,假设我有一个文件如下:

C:\projects\transitCalculator\trunk\TransitCalculator.php

我的xampp文件通常来自:

C:\xampp\htdocs\

(因为那是默认配置)有没有办法让Apache识别并提供我的TransitCalculator.php文件而不移动它htdocs?我希望Apache能够提供/访问项目目录的全部内容,而且我不想移动项目目录htdocs.

编辑:编辑将Apache添加到问题标题,使Q/A更"可搜索"

php apache xampp server-configuration

295
推荐指数
6
解决办法
24万
查看次数

为了从OSX中完全删除MAMP安装需要做什么?

由于我们不会讨论的原因,我已经确定MAMP是一堆困扰我的系统的垃圾,除非我完全删除它,否则我将生活在耻辱中.

我已经完成了显而易见的事情并从我的Applications文件夹中删除了MAMP目录,但是,我不喜欢流浪文件,我有一种痒的感觉,MAMP在某处放了一些.sock文件,或者在我的文件中弄乱了系统.

MAMP在安装时添加到系统中的文件是什么,它们在哪里?

如果你有证据证明MAMP实际上没有把文件放在任何地方(除了/ MAMP目录),那么这就像任何答案一样好!

macos server-configuration mamp

24
推荐指数
1
解决办法
4万
查看次数

配置文件中的PhpMyAdmin错误

错误是:

phpMyAdmin配置存储未完全配置,某些扩展功能已停用.要找出原因,请点击此处.
与Suhosin一起运行的服务器.有关可能的问题,请参阅文档.

$ cfg ['Servers'] [$ i] ['pmadb'] ......好的

$ cfg ['Servers'] [$ i] ['relation'] ...不行[文档]
一般关系功能:已禁用

$ cfg ['Servers'] [$ i] ['table_info'] ...不行[文档]
显示功能:已禁用

$ cfg ['Servers'] [$ i] ['table_coords'] ...不行[文档]

$ cfg ['Servers'] [$ i] ['pdf_pages'] ...不行[文档]
创建PDF:禁用

$ cfg ['Servers'] [$ i] ['column_info'] ...不行[文档]
显示列注释:已禁用
浏览器转换:已禁用

$ cfg ['Servers'] [$ i] ['bookmarktable'] ...不行[文档]
书签SQL查询:已禁用

$ cfg ['Servers'] [$ i] ['history'] ...不行[文档]
SQL历史记录:已禁用

$ cfg ['Servers'] [$ i] ['designer_coords'] ...不行[文档]
设计师:已禁用

$ cfg ['Servers'] [$ i] ['tracking'] …

php server-configuration phpmyadmin

17
推荐指数
4
解决办法
6万
查看次数

运行jar时配置服务器端口

我目前正在使用Gradle编写一个用Java 8编写的Spring Boot应用程序.我正在寻找的是从命令行运行Jar时作为参数传递服务器端口.

例如:

  • java -jar myApplication.jar --port=8888:这使用端口运行我的Spring启动应用程序 8888
  • java -jar myApplication.jar:由于没有端口号作为参数传递,弹出启动应用程序应该在默认端口号上运行(比方说8080)

谁能帮我这个 ?

java spring server-configuration jar spring-mvc

17
推荐指数
2
解决办法
3万
查看次数

Linux上PostgreSQL中的配置参数work_mem

我必须通过调整基本的PostgreSQL服务器配置参数来优化查询.在文档中,我遇到了work_mem参数.然后我检查了如何更改此参数会影响我的查询的性能(使用sort).我用各种work_mem设置测量了查询执行时间,非常失望.

我执行查询的表包含10,000,000行,并且有430 MB的数据要排序.(Sort Method: external merge Disk: 430112kB).

work_mem = 1MB,EXPLAIN输出是:

Total runtime: 29950.571 ms (sort takes about 19300 ms).
Sort  (cost=4032588.78..4082588.66 rows=19999954 width=8) 
(actual time=22577.149..26424.951 rows=20000000 loops=1)
                 Sort Key: "*SELECT* 1".n
                 Sort Method:  external merge  Disk: 430104kB
Run Code Online (Sandbox Code Playgroud)

work_mem = 5MB:

Total runtime: 36282.729 ms (sort: 25400 ms).
Sort  (cost=3485713.78..3535713.66 rows=19999954 width=8) 
      (actual time=25062.383..33246.561 rows=20000000 loops=1)
      Sort Key: "*SELECT* 1".n
      Sort Method:  external merge  Disk: 430104kB
Run Code Online (Sandbox Code Playgroud)

work_mem …

postgresql server-configuration postgresql-performance

16
推荐指数
1
解决办法
1万
查看次数

httpd:无法可靠地确定服务器的完全限定域名

我知道这个问题经过了很多研究,但这里的解决方案并没有解决它们.

让我们从一些背景信息开始:

OS X 10.8.4 Apache 2.2.22

问题:我在控制台中遇到此错误,Apache无法找到我的localhost,但确实启动了.奇怪的.

[Sat Aug 17 13:40:06 2013] [info] mod_ssl/2.2.22 compiled against Server: Apache/2.2.22, Library: OpenSSL/0.9.8r
httpd: Could not reliably determine the server's fully qualified domain name, using Specter.local for ServerName
Run Code Online (Sandbox Code Playgroud)

所以通常这会指向我的ServerName没有设置正确.它是:/我尝试过不同的变种,如Specter.local,localhost等

这是我的/private/etc/httpd.conf的副本,这与/private/etc/apache2/httpd.conf相同

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a …
Run Code Online (Sandbox Code Playgroud)

apache macos server-configuration web

14
推荐指数
2
解决办法
3万
查看次数

使用apache2服务器配置匹配/拒绝所有子目录的访问

如何拒绝访问给定目录的所有子目录?(允许手动修改目录树中单个项目的访问权限.)

我尝试用<Directory(Match)>指令来做.服务器配置(000-sites-enabled)如下所示:

DocumentRoot /var/www
<Directory /var/www>
    Allow from all
    Deny from none
    Order deny,allow
</Directory>
<Directory /var/www/*>
    Deny from all
</Directory>
Run Code Online (Sandbox Code Playgroud)

查询到http://localhost/成功地显示/var/www/index.html和所有查询到任何子目录失败.

问题是:对httproot中的文件的任何查询都会失败 - 即请求http://localhost/index.html将导致403 Forbidden.

<Directory(Match)>指令似乎实际匹配的目录和文件!?

为了看看这是否属实,我试过:

<Directory /var/www/i*>
    Deny from all
</Directory>
Run Code Online (Sandbox Code Playgroud)

这拒绝仅访问以"i"开头的文件/目录.

有没有办法改变这种行为,<Directory>只让匹配目录?还有另一种方法可以实现所有子目录被拒绝吗?(除了手动拒绝所有文件或手动启用所有文件)

apache server-configuration apache2 wildcard subdirectory

11
推荐指数
1
解决办法
4万
查看次数

如何一起运行Apache(httpd)和Tomcat?

我最近得到了在Struts上运行的项目,我期待更多的JSP即将推出.

在谷歌搜索问题后,我被引导到试图做同样事情的人的博客.这些博客并不完全是他们如何做到这一步的一步一步的过程,但更像是一个参考,以防他们将来需要做同样的事情.在某些情况下,作者没有确切地说他是否成功地试图同时运行上述两种服务.

Unfortunately, I can't follow their "instructions" as I have plenty of PHP projects configured (upload directories, classpaths etc...) to run on my test server and I don't have the luxury of time to reconfigure them all in case I mess up with the httpd server. And for honesty's sake, I haven't tried a single step on running them together for the same reason of being hesitant to update configuration files.

I'm not sure if this adds to the …

apache server-configuration web-services

9
推荐指数
1
解决办法
1万
查看次数

如何为WordPress多站点编写h2o webserver mruby处理程序?

这就是Apache所需要的.我想知道如何在h2o中这样做.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Run Code Online (Sandbox Code Playgroud)

//在这个btw上浪费了300点声望.

ruby wordpress server-configuration mruby h2o-http

9
推荐指数
1
解决办法
392
查看次数

视频未找到或拒绝访问

我在ASP.NET 3.5中使用C#创建了一个网站.在默认页面中我们有一个swf播放器.我们有一个视频文件.文件格式为.mp4.

守则在这里: -

类型= "应​​用程序/ x-冲击波闪光"

ID = "player2"

NAME = "player2"

SRC = "图像/ player.swf"

宽度= "350"

高度= "280"

将allowscriptaccess = "总是"

将allowFullScreen = "真"

Flash变数= "文件= .. /图像/ vtwsub.mp4"

/>

问题是,当我尝试在我的本地运行此代码时,它会运行,但是当我在客户端Windows 7服务器中放入相同的代码时,它会显示"未找到视频或访问被拒绝:../ images/vtwsub.mp4.

我已经在服务器中提供了WWWROOT文件夹的完全访问权限,但问题仍然存在.我需要很快解决这个问题.我试图在谷歌找到一些答案,但没有得到确切的答案.如果有人有任何想法,请回复我.提前致谢.

flash server-configuration

8
推荐指数
1
解决办法
1万
查看次数