Re: [EMAIL PROTECTED] How to restart Apache

2008-08-27 Thread Bradley Giesbrecht
Others will answer this better I'm sure and I haven't used Debian in a while but I would do: $sudo ps ax | grep httpd $sudo kill "lowest httpd process id goes here" $sudo /etc/init.d/apache2 start Or, since it looks like /var/run/httpd.pid contains only the pid of the first (lowest number

Re: [EMAIL PROTECTED] Setting up a subdomain?

2008-08-30 Thread Bradley Giesbrecht
At Godaddy in Total DNS Control create A or CNAME records for the sub domains you want to host. In your apache vhosts conf file[s] you can do something like this: VirtualHost *:80> ServerName example.com ServerAlias example.com www.example.com subdomain.example.com login.exa

Re: [EMAIL PROTECTED] apache configuration for php and mysql

2008-08-30 Thread Bradley Giesbrecht
If you make changes to apache, mysql or php conf files you need to bounce apache and/or mysql for them to be used. Restarting the machine should not be necessary. //brad On Aug 30, 2008, at 8:10 AM, Adil Drissi wrote: Hi, Sorry now it works. Maybe i had to restart the machine. Sorry agai

Re: [EMAIL PROTECTED] Using Oracle and mod_authn_dbd

2008-09-03 Thread Bradley Giesbrecht
Hi, I will appreciate any help on building Apache (2.2.8) to be able to use an Oracle database using basic authentication through the module mod_authn_dbd Do I need to build my own APR and APR-util? Can I use the included APR in Apache? If so, how do I tell that I require support for Oracle?

Re: [EMAIL PROTECTED] Re: Prevent img smoothing?

2008-09-04 Thread Bradley Giesbrecht
Give a link to an example. On Sep 4, 2008, at 11:15 AM, Mike -- EMAIL IGNORED wrote: On Thu, 04 Sep 2008 13:07:58 -0500, William A. Rowe, Jr. wrote: Mike -- EMAIL IGNORED wrote: On my website I have a BMP picture that is 13x20 pixels. I want it displayed as a matrix of little squares. Displ

Re: [EMAIL PROTECTED] Re: Prevent img smoothing?

2008-09-04 Thread Bradley Giesbrecht
http://pixilla.com/temp/index.html /brad On Sep 4, 2008, at 11:53 AM, Mike -- EMAIL IGNORED wrote: On Thu, 04 Sep 2008 11:40:09 -0700, Bradley Giesbrecht wrote: Give a link to an example. [...] http://www.rosemike.net/photo/photo.html and look on the picture on the left.

Re: [EMAIL PROTECTED] blank pages

2008-09-12 Thread Bradley Giesbrecht
php.net is your friend Just type "http://php.net/"; followed by something like a function name or env var. http://php.net/error_reporting Turn on error_reporting in php.ini and your page will not be blank. You might be using an old script with php5 or newer that use global variables. I

Re: [EMAIL PROTECTED] find out group-membership with php

2008-09-15 Thread Bradley Giesbrecht
I don't know the answer to your question but have you considered using php for authentication and access control? Your probably better off using $_SERVER then getenv(). Put this at the top of a php page to see what is available. die ( "" . print_r ( $_SERVER , true ) ) . "" ) ; Brad On Sep

Re: [EMAIL PROTECTED] find out group-membership with php

2008-09-15 Thread Bradley Giesbrecht
Looks like you could add something like this to your .htaccess: SetEnv dir_group "group_name" then you should have $_SERVER[ 'dir_group' ] available to you in php. I'm no security expert and I had to change AllowOverride to "All" or probably "SetEnv" in my directory block and this may be a se

Re: [EMAIL PROTECTED] find out group-membership with php

2008-09-15 Thread Bradley Giesbrecht
//Brad On Sep 15, 2008, at 11:18 AM, André Warnier wrote: Bradley Giesbrecht wrote: Looks like you could add something like this to your .htaccess: SetEnv dir_group "group_name" That would work, but only if "group_name" is the only group that could have access to that di

Re: [EMAIL PROTECTED] find out group-membership with php

2008-09-15 Thread Bradley Giesbrecht
On Mon, Sep 15, 2008 at 2:36 PM, Bradley Giesbrecht <[EMAIL PROTECTED]> wrote: You need to get a little inventive here. .htaccess: SetEnv dir_groups "system|managers|sales" # pipe delimited Not so useful as it doesn't tell you which one your user is a member of. Autho

Re: [EMAIL PROTECTED] Not Sure If This Is An Appache Problem Or a PHP problem

2008-09-25 Thread Bradley Giesbrecht
Having copies of php.ini laying around that are not being used is not your problem. Not sure what produced the output in your first email. Create a phpinfo.php file and put it somewhere apache has access to it. Make the contents of phpinfo.php the following: Load the phpinfo.php served by

Re: [EMAIL PROTECTED] Not Sure If This Is An Appache Problem Or a PHP problem

2008-09-25 Thread Bradley Giesbrecht
On Sep 25, 2008, at 7:52 PM, Xpert Advice wrote: Ok I think we've stumbled onto the problem. I think you may be right it may be a file permission problem because I have moved this php.ini file everywhere. I moved it to the apache2.2/bin folder restarted the computer restarted apache didn

Re: [EMAIL PROTECTED] Not Sure If This Is An Appache Problem Or a PHP problem

2008-09-26 Thread Bradley Giesbrecht
On Sep 25, 2008, at 9:57 PM, Xpert Advice wrote: g Ok that didnt work either. Moved it again to the windows directory and restarted everything and still nothing. This must be a bad trick that my computer is playing on me. Does it have anything to do with windows vista? And yes

Re: [EMAIL PROTECTED] Not Sure If This Is An Appache Problem Or a PHP problem

2008-09-26 Thread Bradley Giesbrecht
On Sep 25, 2008, at 9:57 PM, Xpert Advice wrote: g Ok that didnt work either. Moved it again to the windows directory and restarted everything and still nothing. This must be a bad trick that my computer is playing on me. Does it have anything to do with windows vista? And yes

Re: [EMAIL PROTECTED] Not Sure If This Is An Appache Problem Or a PHP problem

2008-09-26 Thread Bradley Giesbrecht
;; for($i = 0; $i < mysqli_num_rows($result); $i++) { echo ""; $row_array = mysqli_fetch_row($result); for($j = 0;$j < mysqli_num_fields($result);$j++) { echo "".$row_array[$j]."\n"; } } echo "";

Re: [EMAIL PROTECTED] Not Sure If This Is An Appache Problem Or a PHP problem

2008-09-26 Thread Bradley Giesbrecht
Value"; for($i = 0; $i < mysqli_num_rows($result); $i++) { echo ""; $row_array = mysqli_fetch_row($result); for($j = 0;$j < mysqli_num_fields($result);$j++) { echo "".$row_array[$j]."\n"; } } ec

Re: [EMAIL PROTECTED] Vista install/start winsock bind error 10013

2008-09-27 Thread Bradley Giesbrecht
On Sep 27, 2008, at 11:12 AM, B.A.S. wrote: I get an error when installing Apache 2.2 on Windows Vista Ultimate from file: apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi I get the same error below when attempting to start Apache from Windows Start Menu or with ./httpd.exe -k start: (OS 10013

[EMAIL PROTECTED] Second Directory Common to All

2008-07-04 Thread Bradley Giesbrecht
w, a light bulb just went off. This is probably similar to the way people do cgi scripts but I have rarely used them so I don't know. I'll have a look at how cgi dirs are handled by others. Still any feedback would be very much appreciated. Thank

Re: [EMAIL PROTECTED] Apache crashes when using WHILE loop to traverse SQL query results

2008-07-06 Thread Bradley Giesbrecht
With php when you include vars in double quotes don't you want to put curly braces around them like so? $query = "SELECT * FROM Pet WHERE petType='{$pettype}'"; That's how I do it but I've been doing it so long I don't remember why. Anyway, I would guess this is a php issue and not an apache

Re: [EMAIL PROTECTED] Using rewrite to forward the request

2008-07-09 Thread Bradley Giesbrecht
Actually this is a good use of Chrome. Chrome has stock images. Well at least one. //brad On Jul 9, 2008, at 8:51 AM, Mohit Anchlia wrote: We have a web server that redirects traffic to app server using mod_jk load balancer. Now I need to do the following: 1. If request comes from URL /AB

Re: [EMAIL PROTECTED] Using rewrite to forward the request

2008-07-09 Thread Bradley Giesbrecht
Holy cow. Did I do that. I did! I hit reply with the wrong email select. How embarassing. //Brad On Jul 9, 2008, at 9:22 AM, Bradley Giesbrecht wrote: Actually this is a good use of Chrome. Chrome has stock images. Well at least one. //brad On Jul 9, 2008, at 8:51 AM, Mohit Anchlia wrote

Re: [EMAIL PROTECTED] apache cache or other issues?

2008-07-12 Thread Bradley Giesbrecht
Add a blank live or two before 1352 and if the error is still at 1352 then it's a cache or the wrong file. BTW, I know nothing about drupal so keep that in mind. I'd be interested in knowing what $code equals. Add something like this at the top of the drupal_eval function to see what the