我正在为我的开发团队build立一个用于开发的Intranet。 到目前为止,我已经安装了一个新的安装了Git的CentOS盒子,并初始化了一个存储库。 我的目标是让开发人员通过networking连接来访问存储库。 由于我们还没有开始使用它,所以没有任何域名托pipe在这个盒子上。 所以……我希望开发人员能够远程访问存储库,但我正试图弄清楚我将如何设置。 我应该使用networking地址如192.168.2.XX吗? 它是否必须被绑定到域名? 我也会承认我不是一个Linux专家,不知道如何设置它。 也许也许我可以做到这一点,如果我必须,但我也必须在networking(我没有访问)的DNS混乱: CentOS服务器 – 内部网域名没有本地DNS
因此,我的网站由于某些原因不显示图像,但这些图像单独显示在单个url上。 顺便说一句,我正在使用WordPress 下面是它的外观的截图: View post on imgur.com 但是,这些图像的URL可以正常工作 http://phanime.com/wp-content/uploads/2013/08/korra-2.jpg 此url完美显示图像,但在实际的屏幕截图中,图像根本不显示。 我认为有一些服务器问题,也许我没有正确的权限,虽然包含所有这些图像的上传文件夹有777权限,所以应该没问题。 这是不显示任何图像的网页的url:phanime.com
参考: 多重规则Apache重写 虽然这对多层次的项目钻取效果很好,但我仍然需要一个admin.php页面来在规则之外运行。 目前在这套规则下,标准页面/脚本不会运行。 思考/想法? RewriteRule ^mr/index.php$ – [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/?$ /mr/index.php?product_group=$1&product_family=$2&product_category=$3&product_sub_category=$4&product=$5 [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/?$ /mr/index.php?product_group=$1&product_family=$2&product_category=$3&product_sub_category=$4 [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/?$ /mr/index.php?product_group=$1&product_family=$2&product_category=$3 [L] RewriteRule ^([^/]*)/([^/]*)/?$ /mr/index.php?product_group=$1&product_family=$2 [L] RewriteRule ^([^/]*)/?$ /mr/index.php?product_group=$1 [L] 更新: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ – [L] RewriteRule ^index.php$ – [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/?$ index.php?n_section=$1&n_product_group=$2&n_product_family=$3&n_product_category=$4&n_product_subcategory=$5 [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/?$ index.php?n_section=$1&n_product_group=$2&n_product_family=$3&n_product_category=$4 [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/?$ index.php?n_section=$1&n_product_group=$2&n_product_family=$3 [L] […]
我试图使用以下命令来构buildPHP版本5.3.28: [root@server php-5.3.28]# ./configure –with-apxs2=/usr/bin/apxs –with-libdir=lib64 –cache-file=./config.cache –prefix=/usr/local/php-5.3.28 –with-config-file-path=/usr/local/php-5.3.28/etc –disable-debug –with-pic –disable-rpath –with-bz2 –with-curl –with-freetype-dir=/usr/local/php-5.3.28 –with-png-dir=/usr/local/php-5.3.28 –enable-gd-native-ttf –without-gdbm –with-gettext –with-gmp –with-iconv –with-jpeg-dir=/usr/local/php-5.3.28 –with-openssl –with-pspell –with-pcre-regex –with-zlib –enable-exif –enable-ftp –enable-sockets –enable-sysvsem –enable-sysvshm –enable-sysvmsg –enable-wddx –with-kerberos –with-unixODBC=/usr –enable-shmop –enable-calendar –with-libxml-dir=/usr/local/php-5.3.28 –enable-pcntl –with-imap –with-imap-ssl –enable-mbstring –enable-mbregex –with-gd –enable-bcmath –with-xmlrpc –with-ldap –with-ldap-sasl –with-mysql=/usr –with-mysqli –with-snmp –enable-soap –with-xsl –enable-xmlreader –enable-xmlwriter […]
我正在尝试使用PHP 5.5.7在OS X 10.9.1上运行 mongo-php-driver ,但是我走到了一个死胡同,我尝试了所有我可能find的东西,没有任何工作。 一切都编译得很好,但PHP不加载扩展,并给出了一个非常奇怪的错误: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20121212/mongo.so' – dlopen(/usr/local/lib/php/extensions/no-debug-zts-20121212/mongo.so, 9): Symbol not found: _core_globals Referenced from: /usr/local/lib/php/extensions/no-debug-zts-20121212/mongo.so Expected in: flat namespace in Unknown on line 0 我已经检查了线程安全和架构问题,但一切都很好,扩展和PHP都是线程安全的和64位。 我也检查是否有任何问题的二进制文件,如phpize和php-config ,但一切似乎都很好… 我真的不知道该怎么做,任何人都有任何线索? 正如voretaq7和MadHatter所指出的,这就是我所做的: 下载PHP 5.5.7并编译 ./configure –with-apxs2=/usr/local/apache2/bin/apxs ; 下载了mongo驱动程序的master分支并按照默认configuration进行了编译; 包含在php.ini中的扩展名: extension = mongo.so ; 冉php -v ,得到了我之前说的奇怪的错误; 检查PHP和驱动程序是否正在编译64位,他们是; 检查phpize和php-config是否是在第1步中安装的那些,他们是; 吼他妈的这个狗屎,并寻求帮助。 意识到我可以尝试1.4.5的驱动程序版本。 […]
问题: 这已经持续了相当长的时间。 我只安装一次,之后,它可以是: PHP页面显示PHP代码(不是当前的错误,但我经历了这个) PHP页面返回“服务器内部错误” 我真正想要的是让PHP通过oci8连接到Oracle 11g XE。 我不知道这会很难。 此外,查看位于/var/log/httpd/error_log的错误日志(我假设这是PHP的错误日志),显示以下错误: PHP致命错误:未知:无法打开需要'/var/www/html/info.php'(包括path='。:/ usr /共享/梨:/ usr /共享/ php')。 我从来没有遇到过这个。 系统: Fedora 19 x86_64 Oracle 11g XE Apache 2.4.6 PHP 5.5.4 附加信息: info.php仅包含以下内容: <?php phpinfo(); ?> php -i作品,虽然我不知道该找什么。 我试过的: 大量。 但是自从我重新格式化电脑之后,又重新开始了,所以这就是我所做的一切: 安装了Oracle 11g XE 正确地将我的数据库备份到Oracle中 通过添加以下内容来修改.bashrc TMP = / TMP; 出口TMP TMPDIR = $ TMP; 导出TMPDIR ORACLE_HOSTNAME=localhost.localdomain; export […]
正如通常对编码人员所做的那样,我不得不接pipe别人的这个公司的代码,服务器运行在运行ubuntu-saucy-13.10-amd64-server的Amazon Cloud(i2.xlarge)上。 (剩下的那个人) 服务器有700GB固态硬盘和30GB内存,但我的问题是以前的开发人员在编写SQL语句,以及我看到的PHP脚本有很长和不必要的循环糟糕。 我想到看PostgreSQL日志,但是我仍然需要匹配查询到PHP页面(漫长而痛苦的过程)。 有没有一种方法可以告诉哪个PHP页面对资源pipe理器的服务器造成了“最大的损害”,所以我可以先开始replace最差的那个? 任何帮助非常感谢,我一直在这一段时间。
我们正在运行CentOS版本6.5和PHP 5.4.24,我试图安装mcrypt-php。 当我按照https://stackoverflow.com/questions/17109818/install-php-mcrypt-on-centos6中的说明,但是,过程出错。 Setting up Install Process Resolving Dependencies –> Running transaction check —> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed –> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64 –> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64 –> Running transaction check —> Package php-common.x86_64 0:5.3.3-27.el6_5 will be installed –> Processing Conflict: php54w-common-5.4.24-1.w6.x86_64 conflicts php-common […]
我有一个运行Ubuntu 12.10,PHP 5.5.8和操作码caching的function适中的VPS(四核Xeon,3GB内存,SSD)启用。 我正在使用memcached,操作码caching和mod_pageSpeed。 我正在使用New Relic监控应用程序。 问题是无论我尝试了什么,增加内存限制,caching大小等,我无法获得低于约80毫秒的请求响应时间。 数据库运行Percona,每个请求花费大约40毫秒,而PHP每个请求花费大约40毫秒。 所有请求都是从OpCode编译的caching中提供的,所以我不明白所有的延迟来自哪里。 我错过了什么? 谢谢。 如果我错过了一些关键的信息,可以提前道歉,所有这些都可以根据要求提供。
我想要在运行Ubuntu 12.04 LTS的内部生产服务器上安装PHP5。 当我尝试使用apt-get进行安装时,列出了许多依赖项,并build议运行apt-get -f install 。 当我运行,我得到这个返回: Reading package lists… Done Building dependency tree Reading state information… Done Correcting dependencies… Done The following extra packages will be installed: linux-headers-3.2.0-59 linux-headers-3.2.0-59-generic linux-headers-server linux-image-3.2.0-59-generic linux-image-server linux-server Suggested packages: fdutils linux-doc-3.2.0 linux-source-3.2.0 linux-tools The following NEW packages will be installed: linux-headers-3.2.0-59 linux-headers-3.2.0-59-generic linux-image-3.2.0-59-generic The following packages will […]