apache2

install CakePHP on Mac osx: apache problems

爱⌒轻易说出口 提交于 2019-12-18 18:32:42
问题 First time cake user and I'm having real apache problems. For some reason the .htaccess is trying to find File does not exist: /Library/WebServer/Documents/Users but there is no such directory as Users. I have tried setting up the following also: /etc/apache2/extra/httpd-vhosts.conf <VirtualHost *:80 > DocumentRoot "/Users/username/Sites/mysite/app/webroot" ServerName mysite.dev ServerAlias www.mysite.dev mysite.dev *.mysite.dev <Directory "/Users/username/Sites/mysite/app/webroot"> Options

apache tomcat 503 custom error page

北慕城南 提交于 2019-12-18 17:13:43
问题 I have apache2 and tomcat6(not installed from apt repository, manually downloaded and installed) running on port 80 with mod_jk setup. The jsp servlet pages are accessed pointing the browser to http://myapp.mydomain.com/ (virtual hosting is done in tomcat(server.xml) and in apache). I'm trying to redirect tomcat's error page 503 to custom error page when tomcat is down(pkill -9 java or /etc/init.d/tomcat stop) during deployment. My apache's Document Root is /var/www/ so I place below entry in

Enable PHP support for postgresql in Ubuntu 11.04 server

孤人 提交于 2019-12-18 14:09:12
问题 I've installed Apache2 with php5 support and everything works there. I've installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements. PROBLEM: I can't get a working connection between my php scripts and the PostgreSQL database. I have installed the php5-pgsql packaged from the repositories, but the connection just won't work. I get the following error message: PHP Fatal Error: Call to undefined function pg_connect() in /var/www/[myfile].php on line [X] How

X-Pad: avoid browser bug header added by apache

帅比萌擦擦* 提交于 2019-12-18 13:52:41
问题 I see this header appended to the response from apache. Does it have any significance in new age browsers; or it's merely there to circumvent a bug in older versions of Netscape. Seems weird. EDIT I was doing a performance testing on our app, when I saw that in Jmeter response text, there was this weird header that comes back. It said: X-pad: avoid browser bug Thats it! So I tried some googling, and it seemed like a header added for Netscape browsers' bug. Anyway, I am still curious, that

How do I restrict Apache/SVN access to specific users (LDAP/file-based authentication)?

痴心易碎 提交于 2019-12-18 11:37:33
问题 I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and a flat-file. It's working great except that any LDAP user can access everything. I'd like to be able to limit SVN repositories by user or group. Ideally, I'd get to something like this: <Location /svn/repo1> # Restricted to ldap-user1, file-user1, or members of ldap-group1, # all others denied </Location> <Location /svn/repo2> # Restricted to ldap-user2, file-user2, or members of ldap-group2, #

Allowing only single active session per user in Django app

a 夏天 提交于 2019-12-18 10:52:30
问题 I want to restrict logged-in users to only have one active session, i.e. if the user logs in with a new sessionid, the old session should be terminated. I found a lot of help on SO already: here and here I implemented the middleware solution, with a bit of extra checking... class OnlyOneUserMiddleware(object): """ Middleware to ensure that a logged-in user only has one session active. Will kick out any previous session. """ def process_request(self, request): if request.user.is_authenticated(

Apache restart causes DocumentRoot must be a directory, even though it is a directory and there seem to be no privilege issues

让人想犯罪 __ 提交于 2019-12-18 10:50:54
问题 I have what is almost certainly a newbie question. I expected to find the issue while writing this question, but I am still stuck. I want to change the DocumentRoot for apache, but I keep getting the error message "DocumentRoot must be a directory". Situation: The code is running in a virtual VMWare machine 4.0.4 build-744019 The version of linux is Scientific Linux release 6.4 (Carbon) The version of apache is Apache/2.2.15 (Unix) (this is a yum install with nothing special) In the httpd

Apache 2.4.x manual build and install on RHEL 6.4

心不动则不痛 提交于 2019-12-18 10:44:18
问题 OS: Red Hat Enterprise Linux Server release 6.4 (Santiago) The current yum installation of apache on this OS is 2.2.15. I require the latest 2.4.x branch so have gone about installing it manually. I have noted the complete procedure I undertook, including unpacking apr and apr-util sources into the apache sources beforehand, but I guess the following is the most important part of the procedure: GATHER LATEST APACHE AND APR $ cd ~ $ mkdir apache-src $ cd apache-src $ wget http://apache.insync

What is the difference between sites-enabled and sites-available directory?

折月煮酒 提交于 2019-12-18 09:57:02
问题 What is use of these two directories in apache2 and how can we do it? 回答1: The difference is that virtual sites listed in the sites-enabled directory are served by apache. In the sites-available directory there are the virtual sites that exist on your server but people can't access them because they are not enabled yet. sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate

phpmyadmin issuing a fatal error for PMA_DBI_num_rows()

房东的猫 提交于 2019-12-18 08:57:46
问题 Doing a simple phpmyadmin install on a new server and I get the white screen. Going into the apache logs I see: [Wed Jun 19 23:20:57 2013] [error] [client 67.154.118.163] PHP Fatal error: Call to undefined function PMA_DBI_num_rows() in /var/www/phpmyadmin/libraries/navigation/Nodes/Node.class.php on line 408 All I have done on the server is install apache, php, mysql, and the php-mysql module... No idea whats going on :( 回答1: check your php5-mysql php module if it is installed correctly