logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Execute Permission for user defined
Author
pascalganesh



Joined: 25 Jul 2008
Posts: 3

PostPosted: Fri 25 Jul '08 10:10    Post subject: Execute Permission for user defined Reply with quote

Hi all,

New to Apache.

Installed Apache successfully on Win XP Pro

Home Directory is C:\Program Files\Apache Group\Apache\htdocs

I have created a directory C:\Program Files\Apache Group\Apache\htdocs\scripts

I need to give "Scripts and executable" permission for this new folder I have created. How do I do that?

Thanks in advance.

Ganesh
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 25 Jul '08 19:15    Post subject: Reply with quote

In windows there are no file permissions per se, however, in Apache config, add ExecCGI to the options for the directory in question
Back to top
pascalganesh



Joined: 25 Jul 2008
Posts: 3

PostPosted: Sat 26 Jul '08 7:03    Post subject: Post subject: Execute Permission for user defined Reply with quote

Thank you for your reply.

Should I add that this as a line in the following config file
c:\Program Files\Apache Group\Apache\conf\httpd.conf
?

or should I mention the directory name and then add it?

Thanks

Ganesh
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Sat 26 Jul '08 10:24    Post subject: Reply with quote

Well, seeing that your path to Apache include the words Apache Group, you have a ASF release.

How an ASF release comes after install, it will basically execute anything in
c:\\Program Files\\Apache Group\\Apache\\cgi-bin provided

yes, in httpd.conf, Stock Apache frpm ASF

ScriptAlias /cgi-bin/ "c:/Program Files/Apache Group/Apache/cgi-bin/"
<Directory "c:/Program Files/Apache Group/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>


further down in httpd.conf

AddHandler cgi-script .cgi .pl .whatever

that handles Perl. PHP is a different beast
PHP can be executed anywhere in the document directory without much trouble.

Install PHP
Configure properly
Load correct module in Apache
add

AddType application/x-httpd-php .php

to httpd.conf .. most also add

PHPIniDir c:/php (off top of head, probably not exactly right)

if you put the php.ini file in the windows directory, you don't even have to do that.

Even tho this is not unix, you seem to have a unix mindset (working with paid hosting servers), so don't get un-used to using the forward slash /

Perl, php and Apache require it or a double \\ ... unlike your examples in your last post.


Also, don't be afraid to read

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias
http://httpd.apache.org/docs/2.2/mod/core.html#options
http://httpd.apache.org/docs/2.2/howto/cgi.html

http://httpd.apache.org/docs/2.2/server-wide.html
http://httpd.apache.org/docs/2.2/howto/ssi.html
http://httpd.apache.org/docs/2.2/howto/public_html.html

Gregg
Back to top
pascalganesh



Joined: 25 Jul 2008
Posts: 3

PostPosted: Sun 27 Jul '08 12:23    Post subject: Reply with quote

Thank you so much for your time.


How can I make Apache look for an isapi dll in my folder?

Thanks

Ganesh
Back to top


Reply to topic   Topic: Execute Permission for user defined View previous topic :: View next topic
Post new topic   Forum Index -> Apache