apache2

browser downloads php file from apache web server

亡梦爱人 提交于 2019-12-19 17:40:16
问题 I have an apache web server. Let's say this server's domain is example.com . When I access example.com , then the index.php file is correctly displayed in the browser. However, when I access e.g. example.com/~user , then the index.php file of /home/user/public_html/index.php file is downloaded rather than displayed. How do I fix this problem? I changed "expose_php = Off" in php.ini , but nothing has changed. 回答1: If you are on Debian/Ubuntu take a look at this file /etc/apache2/mods-available

Message: ini_set(): A session is active. You cannot change the session module's ini settings at this time

邮差的信 提交于 2019-12-19 14:57:47
问题 I created a login page with codeigniter,but i get the php message. Message: ini_set(): A session is active. You cannot change the session module's ini settings at this time how to fix this? view (login.php) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Admin Login</title> <link rel="stylesheet" href="../css/normalize.css"> <link rel="stylesheet" href="../css/admin-style.css"> </head> <body> <?php echo form_open('Verify_login', ['id'=>'loginForm', 'name'=>'loginForm',

VB Script Documents.Open throwing 424 error

陌路散爱 提交于 2019-12-19 10:19:50
问题 So I have a vbs script: Function test2open( sSourceFile, sPDFFile ) Dim wApp ' As Word.Application Dim wDoc ' As Word.Document logStream.writeline "inside test2open" on error resume next Set wApp = CreateObject("Word.Application") logStream.writeline Err.Number Err.Clear Set wDoc = wApp.Documents.Open("c:\Windows\Temp\test.DOC") logStream.writeline Err.Number logStream.writeline Err.Description logStream.writeline Err.Source wApp.Quit WdDoNotSaveChanges Set wApp = Nothing End Function I'm

Apache2 sends two HTTP headers with a mapped “nph-” CGI

假装没事ソ 提交于 2019-12-19 08:58:25
问题 Summary I'm trying to map some file extensions to be executed by a nph (Non Parsed Header) CGI executable. Let's say I want to access a URL http://server/file.ext and map the "ext" file extension to "trigger" the execution of my nph CGI (/var/www/cgi-bin/nph-test.sh). Apache configuration To do that I'm using mod_actions and mod_cgid, this is my relevant configuration information: <VirtualHost *:80> DocumentRoot /var/www/htdocs ScriptAlias /cgi-bin /var/www/cgi-bin Action cgi-wrapper /cgi-bin

Session mix up - apache httpd with mod_jk, tomcat, spring security - serving data of other user

守給你的承諾、 提交于 2019-12-19 07:46:09
问题 Recently we have faced a serious problem, that one user was served data of another user. This problem is almost impossible to reproduce. We are using standard logged-users-management provided by Spring-security, and we are sure that the problem isn't in storing user in instance variable or similar concurrency stuff in our app. We really doubt that the problem is in SpringSecurity or Tomcat itself. Our front-server is apache httpd, connected to tomcat via ajp connector (mod_jk). We are not

Apache/Rails/Passenger Displaying Site Index?

爱⌒轻易说出口 提交于 2019-12-19 07:04:11
问题 I have a Rails app that I have successfully tested with Mongrel and Webkit. Now I want to test deployment. I set up a VMWare Image using Ubuntu 8.04. I have installed Rails following this method https://help.ubuntu.com/community/RubyOnRails with the exception of using Gems 1.3 instead of 1.2. I have configured and installed Passenger. However, when I visit my sites index (http://some.ip.that.i'm.testing/) I simply get the directory index of my rails site. I should note that since I'm testing

different version php on command line and in apache

落爺英雄遲暮 提交于 2019-12-19 05:42:25
问题 I am using mac 10.8 and I have installed php 5.5. At command line php -v show version 5.5. but when I starts mac's apache server with phpinfo(), it show version 5.4. Can anyone please help me how to make apache to use version 5.5 Thanks 回答1: find out the conf/httpd.conf and conf.d/*.conf find the tag like this: LoadModule php5_module modules/libphp5.so make the change to correct php installation folder like this: LoadModule php5_module /usr/local/Cellar/php54/5.4.8/libexec/apache2/libphp5.so

Can't import database through phpmyadmin

一曲冷凌霜 提交于 2019-12-19 04:07:33
问题 When I try upload database (794 kb) I have error: No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16. I have read many answer for this error but I can not find and decision and answers that works for me. My server: Ubuntu 12.10 Server Apache/2.2.22 ( apache2-mpm-itk) ; MySQL client version: 5.5.27 ; phpmyadmin 3.4.11.1deb1 ; nginx/1.2.1 ; PHP 5.4.6 ; Configuration phpmyadmin in /etc

Apache server — multiple directories, different error logs

烂漫一生 提交于 2019-12-19 03:12:52
问题 I have two directories in /var/www (say, /var/www/app1 and /var/www/app2) whose error logs I want sent to different files. Both are under the same domain, so I think that I can't put them under different virtual hosts. So, for example, I would access them as: http://localhost/app1 http://localhost/app2 I came across this page: Generate access logs for different subdirectories in Apache whose solution works perfectly for the access logs. However, the "env" argument doesn't seem to work with

mod_xsendfile for Win x64?

房东的猫 提交于 2019-12-19 03:12:26
问题 I'm trying to install the mod_xsendfile Apache Module on Windows (7) x64 (using Apache 2.2) -- yes I'm doomed from the get-go, I know :-). Apparently there is : a) No Win x64 binary for mod_xsendfile, just a Win32 binary from the module's website b) No Win x64 binary for apxs from ApacheLounge I've tried the usual LoadModule xsendfile_module modules/mod_xsendfile.so but the semi-obvious error ( httpd: Syntax error on line 127 of C:/Apache/conf/httpd.conf: Cannot load C:/Apache/modules/mod