473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with Apache setup

28 New Member
Trying to solve the issue, I found one thing which is not there in my Apache version and that might be affecting the result

LoadModule perl_module modules/mod_perl.so in httpd.conf file

But for that, I need mod_perl.so file which I don't have. For generating it, I had downlloaded mod_perl module from Apache site and try to run Makefile.pl but for that it needs apxs executable but that also I don't have
Jan 5 '09 #1
22 3105
parashar123
28 New Member
Could anybody please help?
Jan 6 '09 #2
parashar123
28 New Member
Anybody to render a kind help?
Jan 8 '09 #3
KevinADC
4,059 Recognized Expert Specialist
If you are having problems setting up Apache, ask in the Apache forum.
Jan 8 '09 #4
numberwhun
3,509 Recognized Expert Moderator Specialist
The posts have been separated from the other thread in order to create this new thread here in the apache forum.

Regards,

Jeff
Jan 8 '09 #5
parashar123
28 New Member
Hi Jeff

That does not seem to be a very active forum. It has been a long time solving this problem. Can anybody on bytes help me out with that?
Jan 9 '09 #6
parashar123
28 New Member
There is no reply on Apache Forum. Can anybody on Bytes please help out?
Jan 12 '09 #7
numberwhun
3,509 Recognized Expert Moderator Specialist
@parashar123
parashar123,

I moved your posting over here as your new question is specifically related to apache. Regardless of the traffic over here in the apache forum, this is the correct place for that question.

If you look at the post I moved over here, it is a little vague as to exactly what your question actually is and might actually be the cause of nobody providing an answer. If you could, please provide a detailed explanation of what the issue with apache is so the experts in this forum have a better idea.

Regards,

Jeff
Jan 12 '09 #8
parashar123
28 New Member
Let me elaborate in a better way

What I actually need is I want to runa perl script on Apache server. I installed Apache server on my windows machine. The default perl script is there at C:\Program Files\Apache Group\Apache2\cgi-bin

I edited the httpd.conf file in order to run the perl script on Apache server.

Then I started the Apache server. Now in order to run the perl script, I opened my internet explorer browser and typed in [COLOR=#105cb6]http://localhost/cgi-bin/printenv.pl[/COLOR] to run the script. Now, as all the setup is done for perl execution, on entering the above URL, it should run the script and directly display the result on the screen. Instead of that, it gives a dialog to save/run the script.

I suspect one thing to be the reason fr that is, I don't have perl_module.so file and hence I don't have below mentioned statement in my httpd.conf file

LoadModule perl_module modules/mod_perl.so

But for that, I need mod_perl.so file which I don't have. For generating it, I had downlloaded mod_perl module from Apache site and try to run Makefile.pl but for that it needs apxs executable but that also I don't have

The perl script is attached hereby. I am hereby pasting my httpd.conf file

#
#
Expand|Select|Wrap|Line Numbers
  1.  
  2. Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file. It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://httpd.apache.org/docs/2.0/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned. 
  12. #
  13. # The configuration directives are grouped into three basic sections:
  14. # 1. Directives that control the operation of the Apache server process as a
  15. # whole (the 'global environment').
  16. # 2. Directives that define the parameters of the 'main' or 'default' server,
  17. # which responds to requests that aren't handled by a virtual host.
  18. # These directives also provide default values for the settings
  19. # of all virtual hosts.
  20. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  21. # different IP addresses or hostnames and have them handled by the
  22. # same Apache server process.
  23. #
  24. # Configuration and logfile names: If the filenames you specify for many
  25. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  26. # server will use that explicit path. If the filenames do *not* begin
  27. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  28. # with ServerRoot set to "C:/Program Files/Apache Group/Apache2" will be interpreted by the
  29. # server as "C:/Program Files/Apache Group/Apache2/logs/foo.log".
  30. #
  31. # NOTE: Where filenames are specified, you must use forward slashes
  32. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  33. # If a drive letter is omitted, the drive on which Apache.exe is located
  34. # will be used by default. It is recommended that you always supply
  35. # an explicit drive letter in absolute paths, however, to avoid
  36. # confusion.
  37. #
  38. ### Section 1: Global Environment
  39. #
  40. # The directives in this section affect the overall operation of Apache,
  41. # such as the number of concurrent requests it can handle or where it
  42. # can find its configuration files.
  43. #
  44. #
  45. # ServerRoot: The top of the directory tree under which the server's
  46. # configuration, error, and log files are kept.
  47. #
  48. # NOTE! If you intend to place this on an NFS (or otherwise network)
  49. # mounted filesystem then please read the LockFile documentation (available
  50. # at <URL:http://httpd.apache.org/docs/2.0/mod/mpm_common.html#lockfile>);
  51. # you will save yourself a lot of trouble.
  52. #
  53. # Do NOT add a slash at the end of the directory path.
  54. #
  55. ServerRoot "C:/Program Files/Apache Group/Apache2"
  56. #
  57. # ScoreBoardFile: File used to store internal server process information.
  58. # If unspecified (the default), the scoreboard will be stored in an
  59. # anonymous shared memory segment, and will be unavailable to third-party
  60. # applications.
  61. # If specified, ensure that no two invocations of Apache share the same
  62. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  63. #
  64. #ScoreBoardFile logs/apache_runtime_status
  65. #
  66. # PidFile: The file in which the server should record its process
  67. # identification number when it starts.
  68. #
  69. PidFile logs/httpd.pid
  70. #
  71. # Timeout: The number of seconds before receives and sends time out.
  72. #
  73. Timeout 300
  74. #
  75. # KeepAlive: Whether or not to allow persistent connections (more than
  76. # one request per connection). Set to "Off" to deactivate.
  77. #
  78. KeepAlive On
  79. #
  80. # MaxKeepAliveRequests: The maximum number of requests to allow
  81. # during a persistent connection. Set to 0 to allow an unlimited amount.
  82. # We recommend you leave this number high, for maximum performance.
  83. #
  84. MaxKeepAliveRequests 100
  85. #
  86. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  87. # same client on the same connection.
  88. #
  89. KeepAliveTimeout 15
  90. ##
  91. ## Server-Pool Size Regulation (MPM specific)
  92. ## 
  93. # WinNT MPM
  94. # ThreadsPerChild: constant number of worker threads in the server process
  95. # MaxRequestsPerChild: maximum number of requests a server process serves
  96. <IfModule mpm_winnt.c>
  97. ThreadsPerChild 250
  98. MaxRequestsPerChild 0
  99. </IfModule>
  100. #
  101. # Listen: Allows you to bind Apache to specific IP addresses and/or
  102. # ports, instead of the default. See also the <VirtualHost>
  103. # directive.
  104. #
  105. # Change this to Listen on specific IP addresses as shown below to 
  106. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  107. #
  108. #Listen 12.34.56.78:80
  109. Listen 80
  110. #
  111. # Dynamic Shared Object (DSO) Support
  112. #
  113. # To be able to use the functionality of a module which was built as a DSO you
  114. # have to place corresponding `LoadModule' lines at this location so the
  115. # directives contained in it are actually available _before_ they are used.
  116. # Statically compiled modules (those listed by `httpd -l') do not need
  117. # to be loaded here.
  118. #
  119. # Example:
  120. # LoadModule foo_module modules/mod_foo.so
  121. #
  122. LoadModule access_module modules/mod_access.so
  123. LoadModule actions_module modules/mod_actions.so
  124. LoadModule alias_module modules/mod_alias.so
  125. LoadModule asis_module modules/mod_asis.so
  126. LoadModule auth_module modules/mod_auth.so
  127. #LoadModule auth_anon_module modules/mod_auth_anon.so
  128. #LoadModule auth_dbm_module modules/mod_auth_dbm.so
  129. #LoadModule auth_digest_module modules/mod_auth_digest.so
  130. LoadModule autoindex_module modules/mod_autoindex.so
  131. #LoadModule cern_meta_module modules/mod_cern_meta.so
  132. LoadModule cgi_module modules/mod_cgi.so
  133. #LoadModule dav_module modules/mod_dav.so
  134. #LoadModule dav_fs_module modules/mod_dav_fs.so
  135. LoadModule dir_module modules/mod_dir.so
  136. LoadModule env_module modules/mod_env.so
  137. #LoadModule expires_module modules/mod_expires.so
  138. #LoadModule file_cache_module modules/mod_file_cache.so
  139. #LoadModule headers_module modules/mod_headers.so
  140. LoadModule imap_module modules/mod_imap.so
  141. LoadModule include_module modules/mod_include.so
  142. #LoadModule info_module modules/mod_info.so
  143. LoadModule isapi_module modules/mod_isapi.so
  144. LoadModule log_config_module modules/mod_log_config.so
  145. LoadModule mime_module modules/mod_mime.so
  146. #LoadModule mime_magic_module modules/mod_mime_magic.so
  147. #LoadModule proxy_module modules/mod_proxy.so
  148. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  149. #LoadModule proxy_http_module modules/mod_proxy_http.so
  150. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  151. LoadModule negotiation_module modules/mod_negotiation.so
  152. #LoadModule rewrite_module modules/mod_rewrite.so
  153. LoadModule setenvif_module modules/mod_setenvif.so
  154. #LoadModule speling_module modules/mod_speling.so
  155. #LoadModule status_module modules/mod_status.so
  156. #LoadModule unique_id_module modules/mod_unique_id.so
  157. LoadModule userdir_module modules/mod_userdir.so
  158. #LoadModule usertrack_module modules/mod_usertrack.so
  159. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  160. #LoadModule ssl_module modules/mod_ssl.so
  161. #LoadModule perl_module modules/mod_perl.so
  162. <IfModule mime_module>
  163. AddHandler cgi-script .cgi .pl
  164. AddType text/html .shtml
  165. AddOutputFilter INCLUDES .shtml
  166. </IfModule>
  167. #
  168. # ExtendedStatus controls whether Apache will generate "full" status
  169. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  170. # Off) when the "server-status" handler is called. The default is Off.
  171. #
  172. #ExtendedStatus On
  173. ### Section 2: 'Main' server configuration
  174. #
  175. # The directives in this section set up the values used by the 'main'
  176. # server, which responds to any requests that aren't handled by a
  177. # <VirtualHost> definition. These values also provide defaults for
  178. # any <VirtualHost> containers you may define later in the file.
  179. #
  180. # All of these directives may appear inside <VirtualHost> containers,
  181. # in which case these default settings will be overridden for the
  182. # virtual host being defined.
  183. #
  184. #
  185. # ServerAdmin: Your address, where problems with the server should be
  186. # e-mailed. This address appears on some server-generated pages, such
  187. # as error documents. e.g. admin@your-domain.com
  188. #
  189. ServerAdmin admin@sisodomain.com
  190. #
  191. # ServerName gives the name and port that the server uses to identify itself.
  192. # This can often be determined automatically, but we recommend you specify
  193. # it explicitly to prevent problems during startup.
  194. #
  195. # If this is not set to valid DNS name for your host, server-generated
  196. # redirections will not work. See also the UseCanonicalName directive.
  197. #
  198. # If your host doesn't have a registered DNS name, enter its IP address here.
  199. # You will have to access it by its address anyway, and this will make 
  200. # redirections work in a sensible way.
  201. #
  202. ServerName parashard.sisodomain.com:80
  203. #
  204. # UseCanonicalName: Determines how Apache constructs self-referencing 
  205. # URLs and the SERVER_NAME and SERVER_PORT variables.
  206. # When set "Off", Apache will use the Hostname and Port supplied
  207. # by the client. When set "On", Apache will use the value of the
  208. # ServerName directive.
  209. #
  210. UseCanonicalName Off
  211. #
  212. # DocumentRoot: The directory out of which you will serve your
  213. # documents. By default, all requests are taken from this directory, but
  214. # symbolic links and aliases may be used to point to other locations.
  215. #
  216. DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
  217. #
  218. # Each directory to which Apache has access can be configured with respect
  219. # to which services and features are allowed and/or disabled in that
  220. # directory (and its subdirectories). 
  221. #
  222. # First, we configure the "default" to be a very restrictive set of 
  223. # features. 
  224. #
  225. <Directory />
  226. Options FollowSymLinks +ExecCGI 
  227. AllowOverride None
  228. </Directory>
  229. #
  230. # Note that from this point forward you must specifically allow
  231. # particular features to be enabled - so if something's not working as
  232. # you might expect, make sure that you have specifically enabled it
  233. # below.
  234. #
  235. #
  236. # This should be changed to whatever you set DocumentRoot to.
  237. #
  238. <Directory "C:/Program Files/Apache Group/Apache2/htdocs">
  239. #
  240. # Possible values for the Options directive are "None", "All",
  241. # or any combination of:
  242. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  243. #
  244. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  245. # doesn't give it to you.
  246. #
  247. # The Options directive is both complicated and important. Please see
  248. core - Apache HTTP Server
  249. # for more information.
  250. #
  251. Options Indexes FollowSymLinks
  252. #
  253. # AllowOverride controls what directives may be placed in .htaccess files.
  254. # It can be "All", "None", or any combination of the keywords:
  255. # Options FileInfo AuthConfig Limit
  256. #
  257. AllowOverride None
  258. #
  259. # Controls who can get stuff from this server.
  260. #
  261. Order allow,deny
  262. Allow from all
  263. </Directory>
  264. #
  265. # UserDir: The name of the directory that is appended onto a user's home
  266. # directory if a ~user request is received. Be especially careful to use
  267. # proper, forward slashes here. On Windows NT, "Personal/My Website"
  268. # is a more appropriate choice.
  269. #
  270. UserDir "My Documents/My Website"
  271. #
  272. # Control access to UserDir directories. The following is an example
  273. # for a site where these directories are restricted to read-only.
  274. #
  275. # You must correct the path for the root to match your system's configured
  276. # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
  277. # or whichever, as appropriate.
  278. #
  279. #<Directory "C:/Documents and Settings/*/My Documents/My Website">
  280. # AllowOverride FileInfo AuthConfig Limit
  281. # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  282. # <Limit GET POST OPTIONS PROPFIND>
  283. # Order allow,deny
  284. # Allow from all
  285. # </Limit>
  286. # <LimitExcept GET POST OPTIONS PROPFIND>
  287. # Order deny,allow
  288. # Deny from all
  289. # </LimitExcept>
  290. #</Directory>
  291. #
  292. # DirectoryIndex: sets the file that Apache will serve if a directory
  293. # is requested.
  294. #
  295. # The index.html.var file (a type-map) is used to deliver content-
  296. # negotiated documents. The MultiViews Option can be used for the 
  297. # same purpose, but it is much slower.
  298. #
  299. DirectoryIndex index.cgi index.html index.html.var
  300. #
  301. # AccessFileName: The name of the file to look for in each directory
  302. # for additional configuration directives. See also the AllowOverride 
  303. # directive.
  304. #
  305. AccessFileName .htaccess
  306. #
  307. # The following lines prevent .htaccess and .htpasswd files from being 
  308. # viewed by Web clients. 
  309. #
  310. <FilesMatch "^\.ht">
  311. Order allow,deny
  312. Deny from all
  313. </FilesMatch>
  314. #
  315. # TypesConfig describes where the mime.types file (or equivalent) is
  316. # to be found.
  317. #
  318. TypesConfig conf/mime.types
  319. #
  320. # DefaultType is the default MIME type the server will use for a document
  321. # if it cannot otherwise determine one, such as from filename extensions.
  322. # If your server contains mostly text or HTML documents, "text/plain" is
  323. # a good value. If most of your content is binary, such as applications
  324. # or images, you may want to use "application/octet-stream" instead to
  325. # keep browsers from trying to display binary files as though they are
  326. # text.
  327. #
  328. DefaultType text/plain
  329. #
  330. # The mod_mime_magic module allows the server to use various hints from the
  331. # contents of the file itself to determine its type. The MIMEMagicFile
  332. # directive tells the module where the hint definitions are located.
  333. #
  334. <IfModule mod_mime_magic.c>
  335. MIMEMagicFile conf/magic
  336. </IfModule>
  337. #
  338. # HostnameLookups: Log the names of clients or just their IP addresses
  339. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  340. # The default is off because it'd be overall better for the net if people
  341. # had to knowingly turn this feature on, since enabling it means that
  342. # each client request will result in AT LEAST one lookup request to the
  343. # nameserver.
  344. #
  345. HostnameLookups Off
  346. #
  347. # EnableMMAP: Control whether memory-mapping is used to deliver
  348. # files (assuming that the underlying OS supports it).
  349. # The default is on; turn this off if you serve from NFS-mounted 
  350. # filesystems. On some systems, turning it off (regardless of
  351. # filesystem) can improve performance; for details, please see
  352. core - Apache HTTP Server
  353. #
  354. #EnableMMAP off
  355. #
  356. # EnableSendfile: Control whether the sendfile kernel support is 
  357. # used to deliver files (assuming that the OS supports it).
  358. # The default is on; turn this off if you serve from NFS-mounted 
  359. # filesystems. Please see
  360. core - Apache HTTP Server
  361. #
  362. #EnableSendfile off
  363. #
  364. # ErrorLog: The location of the error log file.
  365. # If you do not specify an ErrorLog directive within a <VirtualHost>
  366. # container, error messages relating to that virtual host will be
  367. # logged here. If you *do* define an error logfile for a <VirtualHost>
  368. # container, that host's errors will be logged there and not here.
  369. #
  370. ErrorLog logs/error.log
  371. #
  372. # LogLevel: Control the number of messages logged to the error.log.
  373. # Possible values include: debug, info, notice, warn, error, crit,
  374. # alert, emerg.
  375. #
  376. LogLevel warn
  377. #
  378. # The following directives define some format nicknames for use with
  379. # a CustomLog directive (see below).
  380. #
  381. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  382. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  383. LogFormat "%{Referer}i -> %U" referer
  384. LogFormat "%{User-agent}i" agent
  385. # You need to enable mod_logio.c to use %I and %O
  386. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  387. #
  388. # The location and format of the access logfile (Common Logfile Format).
  389. # If you do not define any access logfiles within a <VirtualHost>
  390. # container, they will be logged here. Contrariwise, if you *do*
  391. # define per-<VirtualHost> access logfiles, transactions will be
  392. # logged therein and *not* in this file.
  393. #
  394. CustomLog logs/access.log common
  395. #
  396. # If you would like to have agent and referer logfiles, uncomment the
  397. # following directives.
  398. #
  399. #CustomLog logs/referer.log referer
  400. #CustomLog logs/agent.log agent
  401. #
  402. # If you prefer a single logfile with access, agent, and referer information
  403. # (Combined Logfile Format) you can use the following directive.
  404. #
  405. #CustomLog logs/access.log combined
  406. #
  407. # ServerTokens
  408. # This directive configures what you return as the Server HTTP response
  409. # Header. The default is 'Full' which sends information about the OS-Type
  410. # and compiled in modules.
  411. # Set to one of: Full | OS | Minor | Minimal | Major | Prod
  412. # where Full conveys the most information, and Prod the least.
  413. #
  414. ServerTokens Full
  415. #
  416. # Optionally add a line containing the server version and virtual host
  417. # name to server-generated pages (internal error documents, FTP directory 
  418. # listings, mod_status and mod_info output etc., but not CGI generated 
  419. # documents or custom error documents).
  420. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  421. # Set to one of: On | Off | EMail
  422. #
  423. ServerSignature On
  424. #
  425. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  426. # Alias fakename realname
  427. #
  428. # Note that if you include a trailing / on fakename then the server will
  429. # require it to be present in the URL. So "/icons" isn't aliased in this
  430. # example, only "/icons/". If the fakename is slash-terminated, then the 
  431. # realname must also be slash terminated, and if the fakename omits the 
  432. # trailing slash, the realname must also omit it.
  433. #
  434. # We include the /icons/ alias for FancyIndexed directory listings. If you
  435. # do not use FancyIndexing, you may comment this out.
  436. #
  437. Alias /icons/ "C:/Program Files/Apache Group/Apache2/icons/"
  438. <Directory "C:/Program Files/Apache Group/Apache2/icons">
  439. Options Indexes MultiViews
  440. AllowOverride None
  441. Order allow,deny
  442. Allow from all
  443. </Directory>
  444. #
  445. # This should be changed to the ServerRoot/manual/. The alias provides
  446. # the manual, even if you choose to move your DocumentRoot. You may comment
  447. # this out if you do not care for the documentation.
  448. #
  449. AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "C:/Program Files/Apache Group/Apache2/manual$1"
  450. <Directory "C:/Program Files/Apache Group/Apache2/manual">
  451. Options Indexes
  452. AllowOverride None
  453. Order allow,deny
  454. Allow from all
  455. <Files *.html>
  456. SetHandler type-map
  457. </Files>
  458. SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
  459. RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
  460. </Directory>
  461. #
  462. # ScriptAlias: This controls which directories contain server scripts.
  463. # ScriptAliases are essentially the same as Aliases, except that
  464. # documents in the realname directory are treated as applications and
  465. # run by the server when requested rather than as documents sent to the client.
  466. # The same rules about trailing "/" apply to ScriptAlias directives as to
  467. # Alias.
  468. #
  469. ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
  470. #
  471. # "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
  472. # CGI directory exists, if you have that configured.
  473. #
  474. <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
  475. AllowOverride None
  476. Options None
  477. Order allow,deny
  478. Allow from all
  479. </Directory>
  480. #
  481. # Redirect allows you to tell clients about documents which used to exist in
  482. # your server's namespace, but do not anymore. This allows you to tell the
  483. # clients where to look for the relocated document.
  484. # Example:
  485. # Redirect permanent /foo http://www.example.com/bar
  486. #
  487. # Directives controlling the display of server-generated directory listings.
  488. #
  489. #
  490. # IndexOptions: Controls the appearance of server-generated directory
  491. # listings.
  492. #
  493. IndexOptions FancyIndexing VersionSort
  494. #
  495. # AddIcon* directives tell the server which icon to show for different
  496. # files or filename extensions. These are only displayed for
  497. # FancyIndexed directories.
  498. #
  499. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  500. AddIconByType (TXT,/icons/text.gif) text/*
  501. AddIconByType (IMG,/icons/image2.gif) image/*
  502. AddIconByType (SND,/icons/sound2.gif) audio/*
  503. AddIconByType (VID,/icons/movie.gif) video/*
  504. AddIcon /icons/binary.gif .bin .exe
  505. AddIcon /icons/binhex.gif .hqx
  506. AddIcon /icons/tar.gif .tar
  507. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  508. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  509. AddIcon /icons/a.gif .ps .ai .eps
  510. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  511. AddIcon /icons/text.gif .txt
  512. AddIcon /icons/c.gif .c
  513. AddIcon /icons/p.gif .pl .py
  514. AddIcon /icons/f.gif .for
  515. AddIcon /icons/dvi.gif .dvi
  516. AddIcon /icons/uuencoded.gif .uu
  517. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  518. AddIcon /icons/tex.gif .tex
  519. AddIcon /icons/bomb.gif core
  520. AddIcon /icons/back.gif ..
  521. AddIcon /icons/hand.right.gif README
  522. AddIcon /icons/folder.gif ^^DIRECTORY^^
  523. AddIcon /icons/blank.gif ^^BLANKICON^^
  524. #
  525. # DefaultIcon is which icon to show for files which do not have an icon
  526. # explicitly set.
  527. #
  528. DefaultIcon /icons/unknown.gif
  529. #
  530. # AddDescription allows you to place a short description after a file in
  531. # server-generated indexes. These are only displayed for FancyIndexed
  532. # directories.
  533. # Format: AddDescription "description" filename
  534. #
  535. #AddDescription "GZIP compressed document" .gz
  536. #AddDescription "tar archive" .tar
  537. #AddDescription "GZIP compressed tar archive" .tgz
  538. #
  539. # ReadmeName is the name of the README file the server will look for by
  540. # default, and append to directory listings.
  541. #
  542. # HeaderName is the name of a file which should be prepended to
  543. # directory indexes. 
  544. ReadmeName README.html
  545. HeaderName HEADER.html
  546. #
  547. # IndexIgnore is a set of filenames which directory indexing should ignore
  548. # and not include in the listing. Shell-style wildcarding is permitted.
  549. #
  550. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  551. #
  552. # DefaultLanguage and AddLanguage allows you to specify the language of 
  553. # a document. You can then use content negotiation to give a browser a 
  554. # file in a language the user can understand.
  555. #
  556. # Specify a default language. This means that all data
  557. # going out without a specific language tag (see below) will 
  558. # be marked with this one. You probably do NOT want to set
  559. # this unless you are sure it is correct for all cases.
  560. #
  561. # * It is generally better to not mark a page as 
  562. # * being a certain language than marking it with the wrong
  563. # * language!
  564. #
  565. # DefaultLanguage nl
  566. #
  567. # Note 1: The suffix does not have to be the same as the language
  568. # keyword --- those with documents in Polish (whose net-standard
  569. # language code is pl) may wish to use "AddLanguage pl .po" to
  570. # avoid the ambiguity with the common suffix for perl scripts.
  571. #
  572. # Note 2: The example entries below illustrate that in some cases 
  573. # the two character 'Language' abbreviation is not identical to 
  574. # the two character 'Country' code for its country,
  575. # E.g. 'Danmark/dk' versus 'Danish/da'.
  576. #
  577. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  578. # specifier. There is 'work in progress' to fix this and get
  579. # the reference data for rfc1766 cleaned up.
  580. #
  581. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  582. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  583. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  584. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  585. # Norwegian (no) - Polish (pl) - Portugese (pt)
  586. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  587. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  588. #
  589. AddLanguage ca .ca
  590. AddLanguage cs .cz .cs
  591. AddLanguage da .dk
  592. AddLanguage de .de
  593. AddLanguage el .el
  594. AddLanguage en .en
  595. AddLanguage eo .eo
  596. AddLanguage es .es
  597. AddLanguage et .et
  598. AddLanguage fr .fr
  599. AddLanguage he .he
  600. AddLanguage hr .hr
  601. AddLanguage it .it
  602. AddLanguage ja .ja
  603. AddLanguage ko .ko
  604. AddLanguage ltz .ltz
  605. AddLanguage nl .nl
  606. AddLanguage nn .nn
  607. AddLanguage no .no
  608. AddLanguage pl .po
  609. AddLanguage pt .pt
  610. AddLanguage pt-BR .pt-br
  611. AddLanguage ru .ru
  612. AddLanguage sv .sv
  613. AddLanguage zh-CN .zh-cn
  614. AddLanguage zh-TW .zh-tw
  615. #
  616. # LanguagePriority allows you to give precedence to some languages
  617. # in case of a tie during content negotiation.
  618. #
  619. # Just list the languages in decreasing order of preference. We have
  620. # more or less alphabetized them here. You probably want to change this.
  621. #
  622. LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
  623. #
  624. # ForceLanguagePriority allows you to serve a result page rather than
  625. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  626. # [in case no accepted languages matched the available variants]
  627. #
  628. ForceLanguagePriority Prefer Fallback
  629. #
  630. # Commonly used filename extensions to character sets. You probably
  631. # want to avoid clashes with the language extensions, unless you
  632. # are good at carefully testing your setup after each change.
  633. # See http://www.iana.org/assignments/character-sets for the
  634. # official list of charset names and their respective RFCs.
  635. #
  636. AddCharset ISO-8859-1 .iso8859-1 .latin1
  637. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  638. AddCharset ISO-8859-3 .iso8859-3 .latin3
  639. AddCharset ISO-8859-4 .iso8859-4 .latin4
  640. AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
  641. AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
  642. AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
  643. AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
  644. AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
  645. AddCharset ISO-2022-JP .iso2022-jp .jis
  646. AddCharset ISO-2022-KR .iso2022-kr .kis
  647. AddCharset ISO-2022-CN .iso2022-cn .cis
  648. AddCharset Big5 .Big5 .big5
  649. # For russian, more than one charset is used (depends on client, mostly):
  650. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  651. AddCharset CP866 .cp866
  652. AddCharset KOI8-r .koi8-r .koi8-ru
  653. AddCharset KOI8-ru .koi8-uk .ua
  654. AddCharset ISO-10646-UCS-2 .ucs2
  655. AddCharset ISO-10646-UCS-4 .ucs4
  656. AddCharset UTF-8 .utf8
  657. # The set below does not map to a specific (iso) standard
  658. # but works on a fairly wide range of browsers. Note that
  659. # capitalization actually matters (it should not, but it
  660. # does for some browsers).
  661. #
  662. # See http://www.iana.org/assignments/character-sets
  663. # for a list of sorts. But browsers support few.
  664. #
  665. AddCharset GB2312 .gb2312 .gb 
  666. AddCharset utf-7 .utf7
  667. AddCharset utf-8 .utf8
  668. AddCharset big5 .big5 .b5
  669. AddCharset EUC-TW .euc-tw
  670. AddCharset EUC-JP .euc-jp
  671. AddCharset EUC-KR .euc-kr
  672. AddCharset shift_jis .sjis
  673. #
  674. # AddType allows you to add to or override the MIME configuration
  675. # file mime.types for specific file types.
  676. #
  677. #AddType application/x-tar .tgz
  678. #
  679. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  680. # information on the fly. Note: Not all browsers support this.
  681. # Despite the name similarity, the following Add* directives have nothing
  682. # to do with the FancyIndexing customization directives above.
  683. #
  684. #AddEncoding x-compress .Z
  685. #AddEncoding x-gzip .gz .tgz
  686. #
  687. # If the AddEncoding directives above are commented-out, then you
  688. # probably should define those extensions to indicate media types:
  689. #
  690. AddType application/x-compress .Z
  691. AddType application/x-gzip .gz .tgz
  692. #
  693. # AddHandler allows you to map certain file extensions to "handlers":
  694. # actions unrelated to filetype. These can be either built into the server
  695. # or added with the Action directive (see below)
  696. #
  697. # To use CGI scripts outside of ScriptAliased directories:
  698. # (You will also need to add "ExecCGI" to the "Options" directive.)
  699. #
  700. #AddHandler cgi-script .cgi
  701. #
  702. # For files that include their own HTTP headers:
  703. #
  704. #AddHandler send-as-is asis
  705. #
  706. # For server-parsed imagemap files:
  707. #
  708. #AddHandler imap-file map
  709. #
  710. # For type maps (negotiated resources):
  711. # (This is enabled by default to allow the Apache "It Worked" page
  712. # to be distributed in multiple languages.)
  713. #
  714. AddHandler type-map var
  715. #
  716. # Filters allow you to process content before it is sent to the client.
  717. #
  718. # To parse .shtml files for server-side includes (SSI):
  719. # (You will also need to add "Includes" to the "Options" directive.)
  720. #
  721. #AddType text/html .shtml
  722. #AddOutputFilter INCLUDES .shtml
  723. #
  724. # Action lets you define media types that will execute a script whenever
  725. # a matching file is called. This eliminates the need for repeated URL
  726. # pathnames for oft-used CGI file processors.
  727. # Format: Action media/type /cgi-script/location
  728. # Format: Action handler-name /cgi-script/location
  729. #
  730. #
  731. # Customizable error responses come in three flavors:
  732. # 1) plain text 2) local redirects 3) external redirects
  733. #
  734. # Some examples:
  735. #ErrorDocument 500 "The server made a boo boo."
  736. #ErrorDocument 404 /missing.html
  737. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  738. #ErrorDocument 402 http://www.example.com/subscription_info.html
  739. #
  740. #
  741. # Putting this all together, we can internationalize error responses.
  742. #
  743. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  744. # our collection of by-error message multi-language collections. We use 
  745. # includes to substitute the appropriate text.
  746. #
  747. # You can modify the messages' appearance without changing any of the
  748. # default HTTP_<error>.html.var files by adding the line:
  749. #
  750. # Alias /error/include/ "/your/include/path/"
  751. #
  752. # which allows you to create your own set of files by starting with the
  753. # @exp_errordir@/include/ files and copying them to /your/include/path/, 
  754. # even on a per-VirtualHost basis. The default include files will display
  755. # your Apache version number and your ServerAdmin email address regardless
  756. # of the setting of ServerSignature.
  757. #
  758. # The internationalized error documents require mod_alias, mod_include
  759. # and mod_negotiation. To activate them, uncomment the following 30 lines.
  760. # Alias /error/ "@exp_errordir@/"
  761. #
  762. # <Directory "@exp_errordir@">
  763. # AllowOverride None
  764. # Options IncludesNoExec
  765. # AddOutputFilter Includes html
  766. # AddHandler type-map var
  767. # Order allow,deny
  768. # Allow from all
  769. # LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
  770. # ForceLanguagePriority Prefer Fallback
  771. # </Directory>
  772. #
  773. # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  774. # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  775. # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  776. # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  777. # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  778. # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  779. # ErrorDocument 410 /error/HTTP_GONE.html.var
  780. # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  781. # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  782. # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  783. # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  784. # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  785. # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  786. # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  787. # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  788. # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  789. # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  790.  
  791. #
  792. # The following directives modify normal HTTP response behavior to
  793. # handle known problems with browser implementations.
  794. #
  795. BrowserMatch "Mozilla/2" nokeepalive
  796. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  797. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  798. BrowserMatch "Java/1\.0" force-response-1.0
  799. BrowserMatch "JDK/1\.0" force-response-1.0
  800. #
  801. # The following directive disables redirects on non-GET requests for
  802. # a directory that does not include the trailing slash. This fixes a 
  803. # problem with Microsoft WebFolders which does not appropriately handle 
  804. # redirects for folders with DAV methods.
  805. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  806. #
  807. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  808. BrowserMatch "MS FrontPage" redirect-carefully
  809. BrowserMatch "^WebDrive" redirect-carefully
  810. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  811. BrowserMatch "^gnome-vfs" redirect-carefully
  812. BrowserMatch "^XML Spy" redirect-carefully
  813. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  814. #
  815. # Allow server status reports generated by mod_status,
  816. # with the URL of http://servername/server-status
  817. # Change the ".sisodomain.com" to match your domain to enable.
  818. #
  819. #<Location /server-status>
  820. # SetHandler server-status
  821. # Order deny,allow
  822. # Deny from all
  823. # Allow from .sisodomain.com
  824. #</Location>
  825. #
  826. # Allow remote server configuration reports, with the URL of
  827. http://servername/server-info (requires that mod_info.c be loaded).
  828. # Change the ".sisodomain.com" to match your domain to enable.
  829. #
  830. #<Location /server-info>
  831. # SetHandler server-info
  832. # Order deny,allow
  833. # Deny from all
  834. # Allow from .sisodomain.com
  835. #</Location>
  836.  
  837. #
  838. # Bring in additional module-specific configurations
  839. #
  840. <IfModule mod_ssl.c>
  841. Include conf/ssl.conf
  842. </IfModule>
  843.  
  844. ### Section 3: Virtual Hosts
  845. #
  846. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  847. # machine you can setup VirtualHost containers for them. Most configurations
  848. # use only name-based virtual hosts so the server doesn't need to worry about
  849. # IP addresses. This is indicated by the asterisks in the directives below.
  850. #
  851. # Please see the documentation at 
  852. # <URL:http://httpd.apache.org/docs/2.0/vhosts/>
  853. # for further details before you try to setup virtual hosts.
  854. #
  855. # You may use the command line option '-S' to verify your virtual host
  856. # configuration.
  857. #
  858. # Use name-based virtual hosting.
  859. #
  860. #NameVirtualHost *:80
  861. #
  862. # VirtualHost example:
  863. # Almost any Apache directive may go into a VirtualHost container.
  864. # The first VirtualHost section is used for requests without a known
  865. # server name.
  866. #
  867. #<VirtualHost *:80>
  868. # ServerAdmin webmaster@dummy-host.example.com
  869. # DocumentRoot /www/docs/dummy-host.example.com
  870. # ServerName dummy-host.example.com
  871. # ErrorLog logs/dummy-host.example.com-error_log
  872. # CustomLog logs/dummy-host.example.com-access_log common
  873. #</VirtualHost>
  874.  
Attached Files
File Type: zip printenv.zip (362 Bytes, 97 views)
Jan 13 '09 #9
Icecrack
174 Recognized Expert New Member
find this:
Expand|Select|Wrap|Line Numbers
  1. <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
  2. AllowOverride None
  3. Options None
  4. Order allow,deny
  5. Allow from all
  6. </Directory>
and change it to:

Expand|Select|Wrap|Line Numbers
  1. <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
  2. AllowOverride None
  3. Options FollowSymLinks +ExecCGI 
  4. Order allow,deny
  5. Allow from all
  6. </Directory>
  7.  
Jan 14 '09 #10
parashar123
28 New Member
Hi

Thanks for your help, but it still didn't work and by the way, I have already incorporated the same in my httpd.conf file at

Expand|Select|Wrap|Line Numbers
  1.  
  2. <Directory />
  3. Options FollowSymLinks +ExecCGI 
  4. AllowOverride None
  5. </Directory>
  6.  
Is it that as I dont have mod_perl.so, the script is not running and just popping up the dialog to save/run?
Jan 15 '09 #11
Icecrack
174 Recognized Expert New Member
Yes its just thinking its a file and not executing it but wanting to download it,

have you installed some form of Perl/CGI
Jan 15 '09 #12
parashar123
28 New Member
I have perl installed on my machine and I do run scripts through command prompt. Do I need any specific Perl exe?
Jan 15 '09 #13
Icecrack
174 Recognized Expert New Member
do you have activestate perl installed or are you just running perl.exe from the command prompt?
Jan 15 '09 #14
parashar123
28 New Member
I have activestate perl installed on my machine. Can you please tell me one thing, is this working on your machine, if Yes then I can install the perl which you have
Jan 15 '09 #15
Icecrack
174 Recognized Expert New Member
I have activestate perl installed and i installed apache first and then activestate perl.
Jan 15 '09 #16
parashar123
28 New Member
Are you able to run that CGI script successfully or facing the same problem like me?
Jan 15 '09 #17
Icecrack
174 Recognized Expert New Member
i am able to run the cgi script, could you post your httpd.conf in the code tags please.
Jan 15 '09 #18
parashar123
28 New Member
Sorry, I didn't get what is code tages. Could you please elaborate? And you don't have mod_perl.so file?
Jan 15 '09 #19
parashar123
28 New Member
Hi, Are there any updates for me??
Jan 16 '09 #20
parashar123
28 New Member
Anybody there who can spare some time for this?
Jan 20 '09 #21
parashar123
28 New Member
Any help would be highly appreciated:-( ????
Jan 23 '09 #22
numberwhun
3,509 Recognized Expert Moderator Specialist
If your CGI script is not able to execute, then make sure:

1. You have it configured properly ( http://httpd.apache.org/docs/1.3/howto/cgi.html )
2. You are putting the script in the cgi-bin directory (unless you specified otherwise in your configuration).

You will also probably need to make sure in your script, that you are using one of the Perl CGI modules and have coded correctly. Even on a Windows machine, this configuration should not be too terribly difficult.

Regards,

Jeff
Jan 28 '09 #23

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2794
by: DrWizard | last post by:
Hi I been first times setup. So Who have experience the Win98 + Apache + php (not run PWS or IIS) I begin download and installed the Apache. I test the run is working on browser...
1
6900
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
2
2077
by: Noah | last post by:
I'm currently writing install/setup scripts in bash and Python for installing our product on UNIX servers. Our products depends on several packages that need to be configured, compiled, and...
3
1599
by: Terry Jones | last post by:
I am trying to setup an Apache web server to accept XML document and use a CGI to process the content of the XML file. My questions are: * When a client performs a POST to the server; assume that...
1
3086
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
0
1791
by: alexsink | last post by:
I am trying to get apache content negotiation to redirect only zh-CN(mainland China, where Simplified Chinese translations are available) language types to Chinese web pages, and have all other...
2
9648
by: MikeDub | last post by:
When I run a php file in my browser using an IP address, it renders just fine. But when I run the php file using 'localhost', it renders the source code. It's as if it does not recognize it as php....
1
3049
rohswell
by: rohswell | last post by:
When my Apache installation tries to serve an executable file (web page) it gives an internal server error. I have installed and setup Apache under Cygwin under Windows XP. I am writing web pages...
8
1709
by: Mike Silva | last post by:
Hello all, I'm a longtime programmer (embedded with a smattering of desktop stuff as well) who knows very little about web programming. Right now I am developing the prototype of a multi-user...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.