Say what is a good way to organize CGI applications that have CGI components and regular files Right now the cgi

AuthCookie caught it and displayed an error, as expected.
All of the other clients work — I can log in with her userID and password fine.

my webhost support both php4 (.php files) and php 5 (.php5 files), i can also use .htaccess with allooverride all, is there a way for me to make .php files processed by the php5 handler instead of php 4 with the help of an .htaccess ?

Just her workstation. The only thing that changed was an upgrade to Java. She’s using Firefox 2.0.0.6, same version that I have.
I don’t know why a Java upgrade would affect anything.

talexb, i bet she typed her password in wrong and saved it
and now she never gets prompted for a password, and gets a 403 instead

Nope — the login uses a GET, and I copied and pasted the userID and password and correctly logged on. But good idea.

have you sat down at her computer and tried it?
it sounds like user error to me

lepidosteus, Maybe the filename endings specify 4 or 5?
Shadowhand, Unfortunately the client’s at a remote site.

/etc/apache2/httpd.conf on FreeBSD 6.2 ?

StarWars, ask in #freebsd?
that’s a distro specific question

you could also use your favourite $EDITOR…

jMCg show me the command to add pls

are you serious?

anyone else getting rename errors with disk-cache?

StarWars, do you know what that command line does?

no

please consider getting some Unix 101 before considering to run servers.

It’s probably better to edit the httpd.conf file, rather than blindly concatenate stuff at the end.
And Apache 101.
And FreeBSD 101.

RewriteCond %{REQUEST_URI} wikkaInstall$|setup/install.php$
jMCg, hey hey
foo, i didn’t realize that the rewrite would cause a “recheck” of the rewrite rules

hey ho

foo, after the rewrite to “setup/install.php”, it was obviously skipping the first rule (didn’t match), and using the next 2 rules (caused f’ed up routing)
thanks for your help foo and fajita

4 2007] [warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept
what is rong ?
wich file i need or directory ? or what

httpready
httpready?

wish i knew

I see.

haha
)))))

jMCg, THis really looks like a FreeBSD problem — check on that channel.

nobody here is using disk-cache?

does ProxyPass only pass for files that aren’t around statically?

no, it doesn’t even check if they are around, wasteful to read disk in that case

hrm…I’ve got this /cpanel that used to work, and since using my proxypass it doesn’t work. There is no cpanel dir in the public_html, so meh
I’ve got a ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
but it never gets hit apparently

you can’t use a file as a scriptalias
it has to be a directory.

meh, I didn’t even set that part up…but it used to work I thought.

it’s not proper
scriptalias

scriptalias is http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias or Don’t forget to load mod_cgi

yeah, it’s a VPS running CentOS
oops

oops is right…

wrong chan

anyone using disk-cache?

so in httpd.conf i have libphp5.so being loaded
but it doesn’t work

doesn’t work

Look buddy, doesn’t work is a strong statement. Does it sit on the couch all day? Does it want more money? Is it on IRC all the time? Be specific! Examples of what doesn’t work (or the URL) tend to help too, or pastebin the config if that’s the problem

:P how did i know that was coming
it’s displaying the php hosting source

mod_php

mod_php is see php

php

is a scripting ‘language’ that is enabled by loading mod_php and by adding ‘AddHandler application/x-httpd-php .php’ or you can look at http://wiki.apache.org/httpd/PHPDownload

Then either mod_php isn’t actually being loded, or you don’t have the necessary AddHandler for .php files.

got AddHander?

I have AddType

addtype

addtype is http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addtype or should NOT be used for things like PHP and CGI – that’s a _very_ old and grotty hack, and anyone advocating it this century needs a clue or see
http://www.devside.net/articles/php

ah ok

I have my windows setup reasonably easy to forward in-db.dev to a localvirtual host, but having problems setting on the same on linux
http://pastebin.com/m2c630eff
http://pastebin.com/m1c2bb408 appended the error apache2 gives when I restart
Could not reliably determine the server’s fully qualified domain name,

fqdn

fqdn is http://wiki.apache.org/httpd/CouldNotDetermineServerName

^^

hmm ok now i have another problem :-
mainly that my phpinfo page is loading but the rest of my php stuff is not. i suppose that might be more suited to ##php though

i think it might be more browser cache
sample url

Could you please give us a URL at which the behavior is demonstrated. This would help us troubleshoot the problem.

or crappy php coding…

yeah moment mal

*shrugs*

it’s being used elsewhere

that fixed that problem, thanks

hey tastes vary. :P
coo

http://sousuke.servebeer.com/test.php works
http://sousuke.servebeer.com does not

i take it the second one is using index.php?

yes

and what does this index.php file do?

Whatever it does, it takes its time about it.

exactly. :-\

make any db calls?

What does “works” mean in this context?
So it’s the fact that it’s slow that you’re complaining about?

it should be redirecting to /install/ so i can install the script
No, I’m complaining that it doesn’t load. At all.

oh um…

Withoug seeing the code, it’s rather hard to speculate as to why it’s taking a long time.

or not even loading

It’s gray.
A soooothing gray.

Let me look at the files real quick. I suppose it’s possible that it wants some php module that I don’t have installed

What, exactly, does the error log say?

but for that, i’d imagine php would throw an immediate error.

Don’t believe it says anything, but let me check again

and yeah, answer DrBacchus’s question

Then turn your error_reporting up to E_ALL

it is. DisplayErrors is on too
and apache-error.log doesn’t say anything

ok
I would recommend increasing the memory limit and the timeout.
I would recommend increasing the memory limit and the timeout.
That way, if it’s one of those, you’ll at least get an error message.
Look at me, doing PHP support. Has the world gone mad?

lol

hehe

ok well now it gives me a white page
display_errors is on and error_reporting is at E_ALL
..

Hello all. If I purchase a load balancer with ssl host offloading, I won’t need Apache to do SSL, right?

wsod

wsod is White Screen Of Death, one of PHP’s specialties. It is produced when an error has occurred in a PHP script and the error reporting goes either to the error log or to nowhere. To solve it, look for the error reporting settings in php.ini (or use ini_set()). Also check the error log
(see step one). Further questions MUST GO TO ##PHP.

lol

That depends entirely on what product you purchase.

could you elaborate?

You’re asking what features an unknown, unspecified product has.
We can’t possibly know that without seeing the product.
If I buy a car, will it have dual airbags?
Well, sure, if you buy a car with dual airbags.

I said “
If I purchase a load balancer _WITH_ SSL offloading, I won’t need Apache to do SSL, right?

And I said …
But you were there for that bit.

does ssl offloading eliminate the need for apache to do ssl?

Shall I rephrase my answer, now that you’ve rephrased your question?
Ok, I’ll try.

right, fixed everything bar one small prob
http://pastebin.com/m756eca0c

Some SSL offloaders do SSL themselves, others rely on hardware. Others rely on ponies and fairy dust. Others link into Apache’s libraries. Some are hardware based, and others are software based.

I only want in-db.dev to have DocumentRoot /www/in-db.dev

So mostly I’d think you’d want to ask the salesman, rather than folks who think that doing loadbalancing in Apache itself makes more sense. :-)

and the rest to be server by DocumentRoot /var/www/ which is default

And speaking of loadbalancing, I need to take a load off and go home.

but right now http://localhost and 127.0.0.1 are both going to in-dbs root

thank you for re-phrasing it

why do I get this
Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

Wow.. that one’s new…

what percentage of questions in #apache are php issues?

no idea, vertex_

figure it out with your spare cycles

huh?

100,000,000%

a rough estimate.. 42%

you need to go back to stats class

bleh
sing a song

Rainy days and Mondays always get me down …

ooh… carpenters…

works for me

nice…

sed -n 53p /usr/local/apache2/conf/httpd.conf

42% is the percentage of questions in #apache which are really php issues

OK, vertex_.

42%

42% is the percentage of questions in #apache which are really php hosting issues

recorded forever!

I’m not sure she can do reverse lookups (:
what is the percentage of questions in #Apache which are really php issues?

wish i knew, jmcg

yeah but you and I know and can use that 10x per day

see.

I have an apache question
http://pastebin.com/m33cb43c is sending all local requests to in-db.dev docroot

jMCg, LoadModule php5_module modules/libphp5.so

the other half can be answered with faq1 and then there are the rewrite issues….

I only want in-db.dev to have the in-db docroot, all the other requests to go /var/www as per default

the rest of #apache is idle chatter

did you compile php yourself, if so how, if not blame $distro
shhht

yes, i did jMCg
hole on, i keep a log of everything with script

bleh

?
script cmd

vhost examples

Look at these for examples http://wiki.apache.org/httpd/ExampleVhosts : http://httpd.apache.org/docs/2.2/vhosts/examples.html

^ read.
how did you compile hosting PHP and what’s this thing about cannot restore segment prt after reloc.. WTF is that?

/configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql/

thanks

jMCg, do u mean segment _prot_

Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

i don’t know what it means

verbatim

Verbatim means “word for word” “copy and paste”. It means we want the exact error message from the error log. That also means use a pastebin for 3 lines. Ask me about ‘apc’ for which pastebin to use.

./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql/
does that look OK?
nothing special there

that was handy, fixed, thanks

php5.so is owned by root
but i’m starting apache as root too
so, it could be that my SELinux is too restrictive

Is there a way to log httpd proccesses being spawned and what ip caused the spawning?

you would have to code a module for that unless you are using mod_perl

HELP! My computer is running apache as a local web server, and it thinks html files are application/x-httpd-php, so the html files won’t open in firefox! how do i fix this?

remove htmll from addhandler

this sounds more like an AddType issue…

yes
just remove it

vertex_, coding a module sounds tricky. How about the other debug levels one can run apache at?

they won’t give you the level of detail you want

i don’t have any addtypes… i removed them ,restarted, but i have the smae problem

an static ip hosting doesn’t cause anything to spawn

vertex_, you are totally ruining my day -=]

are you on a windows server? or do all the files have the +x bit on?
you should see what I did to the other guy

i think when i first installed apache and php (yesterday :P ), i accidentally changed something incorrectly. (btw- win 2K)
any suggestions?

remove, reinstall

fix it. Remove the bogus AddType for html

you think the problem is apache, not windows, correct?

I’ve built PHP many, many, many, many, many, many time.. More often than considered as health-threatening by the WHO, and I’ve never seen THAT issue.

it has to do with SELinux permissions
I can either set SELinux to disabled or permissive

Ah. That of course explains it… because I always avoided SELinux where possible.

or change the security context type of libphp5.so
the later being the better solution

i have no extra addtypes for html, except a text/html addtype that isn’t doing anything

now, i tried changing the security conext to no avail
jMCg, yeah there are two _independent_ layers of security invloved

if i go to 222.222.2.102/index.html, it works fine, but 222.222.2.102 is still returning the wrong datatype

namely Unix File Perms and SELinux file lables
0 am over

the only problem is going to the computers home directory, and it is only a problem in internet exoplorer

and i’m dead tired
i’ll continue tomorrow

no wait, in firefox too

thanks jMCg

servertokens 222.222.2.102

Couldn’t get a useful value for http://222.222.2.102

so how do i tell apache that the home directory should be text/html ?
it is a provate, local network (i hope :P )

…but it is reply…

directoryindex

directoryindex is http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex or http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

why does it still think the home directory is application/x-httpd-php ??

look more carefully

at?

at is there any way to limit these other services?

what does “(%-encoded)” mean?
the home directory mimetype does not match the mimetype of the index file :/
how do i fix that?

directoryindex

directoryindex is http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex or http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

but that does not change the mime type returned by the home direcory
the direcory index is simply “index.html”
why would …/ and …/index.html return different mimetypes for the same content?

m.com/storage/XXXXXX if m.com/foo.php?file=XXXXXX&id=ID return true ?

something like that

Hello

i wish someone could help me :|

httpd: Syntax error on line 53 of /usr/local/lib/apache2/conf/httpd.conf: Cannot load /usr/local/lib/apache2/modules/libphp5.so into server: /usr/local/lib/apache2/modules/libphp5.so: undefined symbol: __pure_virtual
Usually when I compile something if I add -lmygcc to the link line it fixes it, but I cannot figure out which makefile in apache controls the lib parms
uUsually when I compile something if I add -lmygcc to the link line it fixes it, but I cannot figure out which makefile in apache controls the lib parms/u

Braden`: i think that’s php whose behaviour you need to alter
are you using some sort of cross-compiler setup?

hi
i want to make some changes into an app, but a lot of people are using the webserver and the app
how can i disable access to the directory for everyone but me?

allow

allow is http://httpd.apache.org/docs-2.0/mod/mod_access.html#allow or http://httpd.apache.org/docs/mod/mod_access.html#allow http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html

Not that I know of. Just gcc

i’ve never heard of having to add -lmygcc to a compile.
anyway
you’re having problems loading the php module, so that’s where the undefined symbol is referenced
byou’re having problems loading the php module, so that’s where the undefined symbol is referenced/b

I will try messing with php then

people can awser a question please ? i create .htaccess file where i allow access to 82.82.82.82 after that, 82.82.82.82 start download from that directory, while 82.82.82.82 is downloading i change the htaccess to allow only to 83.83.83.83, user 82.82.82.82 ill stop the download ?

NO
you will have to kill the connection to stop the download

no. Access rights are determined per request. Once the request has been accepted, so be it.

yes
thats i want
i want to php allow connectio to user 82.82.82.82
to that user start download

that’s not a user. That’s an IP address.

while that user is downloading user 83.83.83.83 want download too, then php ill write again .htaccess and first user continue downloading
yes
you right

ummm
what an odd request

hello.

oh hello.

I am using apache 2.0.58 with mod_ssl and php

ok.

the doc root is /mnt/data/htdocs, the cgi-bin root is /mnt/data/cgi-bin
all are owned by nobody and chmod 755

you have yet to ask your question.

I always get a 403 when I access anything served by it

what does the error log say, exactly?

hold on

also, the web content should NEVER be owned by the user apache runs as.
NEVER.

never is a long time

what should it be owned by?
0 2007] [error] [client 85.190.0.3] (13)Permission denied: access to /

(13)

(13) indicates a file permissions problem. Make sure that Apache can read the file(s) and directories being accessed. See also http://wiki.apache.org/httpd//13PermissionDenied

and error_level is debug

root, your user

group root, too?

anything but www-user or nobody
yes, group user/root

but it should be 755.
right ?

yes.
theorically, 711
anyhow

hi, how can I give index.html a higher priority than index.php?

directoryindex index.html index.php
^^

but it is already like that, can there be a .htaccess directive or something that I do not see?

there could be, yes

aha!

perhaps you should look for one

drwxrwx— mnt

that will need fixing.

I chmod’d it to 775

ah yes, drupal has placed an .htaccess file. thanks.

Or should it be 771 ?

755 is sufficient.

ok

ah.

thanks a lot.
bye

take care, hon

drupal– #using htaccess files excessively

i just added extension=mysql.so in addition to pdo_mysql.so in php.ini and i’m getting “Your PHP installation appears to be missing the MySQL which is required for WordPress.” any ideas how to fix this?
i know this isn’t an apache problem… just hoping someone here knows this

try ##php
what makes you think a php issue should be discussed in #apache?

sorry… the wordgress guys directed me here… i’ll go to #php

what

everything

I’m running apache2 compiled with synaptic, how to make it understand mod_rewrite at .htaccess file?

rewriterule override

RewriteRule may be used in .htaccess files if AllowOverride is set to FileInfo

^^

ok
where should I put it?
AllowOverride All?

AllowOverride All is a really bad idea, because it implies AllowOverride Options, which lets people do stuff like Options FollowSymlinks and Options ExecCGI, even though they are explicitly disabled in the main config.

fajita its because I have to set an rule because of Zend Framework

what?

RewriteEngine on | RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
and I should put it into .access file

do you have access to the main config file?

yes

then don’t use htaccess.
place your rules in your vhost, instead.

how?
I’m newbie with it

by editing the file where your vhost is defined.

httpd.conf? or apache.conf?
my apache is using that sites-enable function

default layout

Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.

^^

?
I think it will be very difficult

no it won’t

cant I just use Override/
?

fine

right
I ll try

block

Default VHost Config

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.