Tagged Questions
0
votes
2answers
34 views
How can I separate my custom config files from default config files provided?
In a server with several packages installed (nginx, php, etc) and configured with .conf files how can I avoid problems with updates that introduce new config parameters? Currently whenever I update, ...
0
votes
0answers
20 views
PHP error_log configuration to relative file path
If I set up error_log = errors.log, php logs its error to file in current directory. It means for each directory one error.log file. I can set it up absolutely, but when I deploy application (by git), ...
0
votes
2answers
80 views
PHP - can't use function chroot
I've installed Debian 6.0.6 x86 on a VPC with the least possible software packages and when the installation completes I take a backup of the VPC and put it aside for later use.
I have installed PHP ...
0
votes
1answer
52 views
Can't compile PHP with Sybase
Trying to compile Sybase with PHP 5.4.13 in Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
# apt-get install freetds-dev
...
0
votes
3answers
271 views
How to configure a real domain name for sender address
I tried to sending out an email using php mail() function but it failed somehow, complaining that a real domain name is required. The following is observed in the maillog:
sendmail 4984 r25984: ...
0
votes
1answer
46 views
PHP: how to specify directory names with PATH_SEPARATOR in open_basedir?
On non-Windows systems PHP's PATH_SEPARATOR constant is a colon... unfortunately I have to deal with a running system which has lots of existing virtualhosts and directories with colons in their name ...
0
votes
1answer
150 views
php5-fpm spike, wrong configuration?
Recently I've uploaded some changes to my server that increases the amount of AJAX calls made to the server.
The application "fastness" has decreased a lot. The web server is nginx with php5-fpm ...
-3
votes
2answers
71 views
Shall we run the php script on .net server? [closed]
I just want to know that ,shall we run the php script on .net server or to run a php script on a .net server what configuration we required?
Suppose i have a website developed in php environment and ...
1
vote
1answer
284 views
Lighttpd and PHP generates error “No input file specified” after server.document-root is moved
I would like to use Lighttpd and PHP to provide a lightweight standalone web server on Windows. I downloaded all the latest builds yesterday and after an hour everything was working fine.
Today, I ...
0
votes
1answer
156 views
PHP not interpreted using PHP5.4 + Apache2.2
Does anyone here know why my PHP code is not being interpreted? Apache is running smoothly with localhost, but when I try to execute localhost/info.php containing
(<?php
phpinfo();
?>) ...
...
3
votes
2answers
495 views
How to restrict access to dynamically generated location in nginx?
My developers want to allow download some files only to users in lan. I said ok it's quite simple and I wrote changes to nginx config like this :
location /restricteddir/download/file { ...
2
votes
2answers
593 views
Configuring Nginx & php5-fpm to work with Codeigniter
As I'm trying to make my switch from Apache 2 to Nginx, I faced dozens of problems, and still fixing them. anyway, I'm trying to make them work, but no-luck yet. So I'm asking here looking for ...
0
votes
1answer
270 views
FastCGI SCRIPT_FILENAME causing 500 HTTP error, is this a bug?
As I'm struggling for 8 hours to make Nginx works, I (finally) tracked the problem and eventually found it. I was getting HTTP 500 ERROR (Internal Server Error). I manipulated the configurations for ...
1
vote
0answers
74 views
How to fix this error 'cvs [checkout aborted]: no such tag r20120711' on php eclipse helios?
I am using php eclipse helios for debugging php code and using CVS as repositiry.
Under CVS repository there are 3 -
head
branch
version
and head conatins the repository of server.
Under head ...
0
votes
1answer
540 views
Setting php values in php-fpm confs instead of php.ini
I'd like to set values in php-fpm conf files what are normally set in php.ini. I'm using nginx.
I've created the following setting, but I'm not sure if this would work.
php_value[memory_limit] = 96M
...
0
votes
2answers
493 views
nginx probably deliering wrong filetype for .css file with php tags
And again - NGINX is giving me many Questions today :)
Like always, I already tried around for a while, but cant seem to fix this issue:
I just configured NGINX to handle my .css files equal to my ...
0
votes
1answer
1k views
PHP 5.4.3 configuration with Apache 2.2
Recently I downloaded php 5.4.3 , Apache 2.2 and mysql 5.5.24.
How I will configure these things manually in my windows7. I found some tutorials.
In that they are telling need to add these line in ...
1
vote
1answer
132 views
PHP's include/require functions fails for paths with “../” or “./”
I logged into my development server today to find that PHP was failing to include some files with this E_WARNING message:
Warning: include_once(../file2.php) [function.include-once]: failed to open ...
0
votes
2answers
135 views
How to reverse this Nginx rewrite rule?
I've been having trouble getting Nginx rewrites to work.
On Apache I had the following rewrite, which directed all requests that did not request a PHP file to index.php:
Options +FollowSymLinks
...
1
vote
1answer
216 views
Configuring CakePHP on Hostgator
I have absolutely no idea what I am doing wrong here. I have followed just about every guide there is with installing cakephp on shared hosting and I am still having problems. I have also started over ...
5
votes
4answers
3k views
PHP date.timezone warning
I keep getting this error:
Message: date() [function.date]: It is not safe to rely on the
system's timezone settings. You are required to use the
date.timezone setting or the ...
0
votes
0answers
84 views
changing mod-php config in newer versions of apache2
my goal is to change the file type php parses, from .php,.phtml,etc to .html. with previous versions of apache2 i'd just edit mod-php5.conf and set:
<FilesMatch "\.html$">
SetHandler ...
0
votes
1answer
29 views
Question about php and dreamweaver? [closed]
I have apache, mysql, php installed manually on windows xp.
How can I make my dreamweaver configurable for php (so it can run php)..
I add this line:
<?php print "hello world"; ?>
But ...
4
votes
3answers
148 views
Can't get PHP to stop showing errors
Contrary to most people's problem I cannot get PHP to stop showing errors, I have in my php.ini display_errors set to off but it still shows them, I have also tried .htaccess, and inline ini_set and ...
1
vote
2answers
70 views
Configure apache virtualhost to not accept php requests
I'm setting up a virtual host in apache just for static files.
Therefore I'd not add a php handler, which is fine.
However, is it possible to configure the virtualhost to accept only jpg, gif and png ...
1
vote
1answer
536 views
How to give PHP permissions to write to files without globally opening up permissions to the directory
I'm running Centos 5.5. I need to create / write some files with a PHP script. The script only works if I have the permissions of the directory in which the files are to be created / written set to ...
1
vote
2answers
181 views
Performance on httpd.conf and/or php.ini files: Generic Comments?
Can anyone verify that there are performance reasons to exclude the "generic" comments from either httpd.conf or php.ini? Personally I find the admonitions and associated clutter to be more ...
0
votes
1answer
35 views
help in configuration of mysql 5.5
i am trying to install mysql 5.5 in my windows 7 32bit
i have antivirus quickheal with a firewall
my problem is i am not able to configure the mysql properly
this all error which i am facing
...
0
votes
2answers
151 views
How to configure php5 on apache2.2?
I want to configure PHP5 on apache2.2 server.
I added
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php.php
# configure the path to php.ini
#PHPIniDir "c:/php"
...
1
vote
0answers
214 views
How to optimally configure php-fpm?
I am using php-fpm along with nginx to server a busy drupal sites. I have not tweaked php5-fpm.conf yet. The stability is fantastic, however, I am wondering how to optimally set the parameters to ...
0
votes
1answer
262 views
How to configure Postfix mail to act as a SMTP server for my Windows PHP to send mail?
I am trying to send mail from PHP on Windows. I want to configure my Ubuntu to accept requests from Windows PHP mail(). How can I do it?
2
votes
3answers
142 views
OSX not serving PHP
Okay so I have a confession first off … I've been messing … and I've broken the way that my local machine is behaving.
With that out of the way, here is some basics.
I'm running OS X 10.6.7
I ...
0
votes
1answer
117 views
How do you share php.ini for a webfarm?
we have a IIS 7.5 webfarm (3 servers ATM) running php. Using web deploy we keep the servers in sync, but this only applies to the files used by the sites and the configuration of the IIS.
Is there a ...
0
votes
0answers
431 views
step by step guide to configure sendmail to avoid “dsn=5.1.1, stat=User unknown” error towords some server
i know this question has been asked before, but i really need a step by step guide to configure sendmail. The problem is that mail sent from a server (let's call it comarp.nicola.it) is not received ...
0
votes
1answer
2k views
Installing PHP with iconv on Mac OSX 10.6 gives error: “Undefined symbols for architecture x86_64”
I am setting up PHP on my local web server with iconv, which should be there by default, but I am getting the following error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
...
0
votes
1answer
929 views
How to correctly use the NginX location directive?
I am attempting to use the phpmyadmin package installed via apt on Ubuntu 10.10 with NginX and although I eventually got it to work, I don't think I'm doing it correctly:
server {
listen 80; ## ...
0
votes
1answer
361 views
proper way of adding new php application to iis7
I have working IIS7 with PHP on my computer - localhost.
I have a couple of applications that are working fine. But now I want to add a new one and for some reason I always get a 404 error on the php ...
0
votes
1answer
59 views
Deploying Rails and PHP apps on a server of unknown configuration
Given root access to a server that someone else had set up (and they either have no knowledge of how it's configured or won't tell you), what would be the fastest way to determine:
1) What webserver ...
4
votes
2answers
4k views
Php.ini disable “Scan this dir for additional .ini files”?
I want to lock my php configuration and disable loading other php configurations rather than the default (which in my case is located at /usr/local/php/lib/php.ini)
I want to disable the "Scan this ...
2
votes
2answers
187 views
How to find .conf files used by apache
I wonder, is there any possibility to find which .conf files apache is using at runtime? Some environment variable maybe, as it should work both windows and linux. Or php function?
0
votes
2answers
1k views
Configuring PHP 5.3.5 In Apache
I just reformatted my computer, installed PHP 5.3.5 & Apache the problem was that when installing I didn't get an option to integrate with Apache.
My PHP dir looks like
Missing the ...
4
votes
2answers
110 views
Upgrade PHP v5.3.3 to v5.3.4
I currently have PHP v5.3.3 installed and configured. Everything is working perfectly, but I would like to keep PHP up to date and upgrade to v5.3.4. Can someone please describe the usual upgrade ...
3
votes
5answers
20k views
Find (or enable?!) php.ini on Ubuntu 10.10
Hiho!
Today I leave my comfort zone and want to edit my php.ini file and... guest what? It doesn't exist!
$ php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: ...
0
votes
1answer
721 views
PHP - PATH_INFO issues
This might belong on the stackoverflow.com website, but I don't think so, because this has to do with Apache configuration.
I'm getting the an error:
Notice: Undefined index: PATH_INFO
This is a ...
0
votes
1answer
30 views
Change instruction for apache config for linux into config for windows
I was given a tutorial on setting up apache2 and php to work with a java CMS called liferay. the problem is that the instructions were written for linux. Can someone help me change these to work with ...
0
votes
1answer
349 views
How come my attempts to enable SOAP for PHP on my mac are not working?
I'm running a PHP site on my local MacBook Pro, which requires Soap. I went to /usr/local/src/php-5.2.11/ext/soap, and ran "make install". It completed successfully. I went to the ...
0
votes
3answers
4k views
PHP cPanel: Is there a way to change my upload_max_filesize in cPanel (without access to php.ini)?
i would like to be able to upload files larger than 64M. locally, i could set my php.ini file, but it looks like cPanel does not allow that, and rightfully so. i read that ini_set does not work for ...
0
votes
1answer
468 views
sqlite and php enabling
I have a fresh install of fedora 12 and am trying to get php and sqlite working I installed php through: yum install php php-devel php-pdo and restarted apache. Php pages are working just fine but ...
0
votes
2answers
108 views
How do you keep existing server configuration when migrating from different dedicated server hosts?
I am trying to migrate from my old server (Server 1) from provider 1 to a new server (Server B) at provider 2, keeping the process as seamless as possible.
One of the first things I noticed in the ...
2
votes
1answer
44 views
reconfiguring php? or do I have to reinstall?
Alright, so I need the soap extension enabled in php. When I run phpinfo(), it's not there, so I'm guessing I have to recompile?
I can follow tutorials online to recompile the most recent php version ...