Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Scripts
zeitgeist
post Sep 17 2003, 06:29 AM
Post #1


Grub-er
**

Group: Members
Posts: 37
Joined: 14-August 03
Member No.: 1,259



Where do i keep php and perl scripts in apache2? i am on madrake 9.1
is cgi-cin only for .cgi scripts? because i got a sample perl script with apache 2 which works in cgi-bin!
Also i noticeed that php wont work in cgi-bin, just in documentroot.
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 17 2003, 10:19 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



scripts (.pl, .cgi, etc) can run in any directory ... if the directory permissions allow it. The directory permissions are setup in the httpd.conf file (normally /etc/httpd/conf/httpd.conf). Normally, it is not safe to execute scripts in all directories ... and you want to limit scripts to running in one directory (that you can control permissions on a little more tightly) .... and /cgi-bin is a standard place to do it. Perl scripts are a type of CGI files.

Directories where .php files can be run are controlled in a similar manner, but normally in a file called /etc/php.ini.

If you are putting files on an ISP server, you probably don't need to worry about those files, you will only be able to run .pl and .cgi files in /cgi-bin and you will normally be able to use .php files in all directories except /cgi-bin .... BUT if you are setting up your own server then configuration of the httpd.conf and php.ini files are VERY important for server security!


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 02:45 AM