nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

"permission denied" - Installing Lighttpd on RHEL 4

This is a discussion on "permission denied" - Installing Lighttpd on RHEL 4 within the Web servers forums, part of the Mastering Servers category; I'm trying to install Lighttpd but I get an error when I run configure. "bad interpreter: permission denied" ./configure --program-prefix= ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-29-2007, 03:38 PM
b3n b3n is offline
Junior Member
User
 
Join Date: Aug 2007
My distro: RHEL ES4
Posts: 4
Rep Power: 0
b3n is on a distinguished road
Question "permission denied" - Installing Lighttpd on RHEL 4

I'm trying to install Lighttpd but I get an error when I run configure.

"bad interpreter: permission denied"

./configure --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-openssl

How do I install it? Do I need to use sh instead of bash?

Last edited by b3n; 08-29-2007 at 03:42 PM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-29-2007, 04:34 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Welcome to forum!

Do you have exec permission on partition? Following command will give the answer:
Code:
mount
df
For example my /tmp is as follows (look for noexec):
/dev/sda3 on /tmp type ext3 (rw,noexec,nosuid,nodev)

Also make sure you have complete gcc and development environment installed
__________________
May the force with you!
Reply With Quote
  #3 (permalink)  
Old 08-29-2007, 04:46 PM
b3n b3n is offline
Junior Member
User
 
Join Date: Aug 2007
My distro: RHEL ES4
Posts: 4
Rep Power: 0
b3n is on a distinguished road
Default

Thanks,

Ahh I'm a linux newbie so I don't really know the answers to your questions!

This is a live production server so I don't want to break it.

Here's the output from those commands:
Code:
/dev/hda5 on / type ext3 (rw,usrquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
/dev/hda2 on /tmp type ext3 (rw,noexec,nosuid,nodev)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/proc on /var/named/run-root/proc type none (rw,bind)
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda5             73718652  16621944  53351960  24% /
/dev/hda1               101086      8722     87145  10% /boot
none                    517768         0    517768   0% /dev/shm
/dev/hda2              2063536     44936   1913776   3% /tmp

Last edited by b3n; 08-29-2007 at 04:49 PM.
Reply With Quote
  #4 (permalink)  
Old 08-29-2007, 07:45 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

move lighttpd directory / folder to /root or /opt and compile. /tmp is secured location and it won't allow you to compile code.
__________________
May the force with you!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Redhat: Up2date " permission denied" while root guarrand Getting started tutorials 2 07-03-2008 11:50 AM
How does "route add ..." fetch the interface automatically Madhu Linux software 2 04-24-2008 05:28 PM
Does Redhat have "what" utility which can be used to display identification Info? DCAO Linux software 2 10-30-2007 07:23 PM
[Commercial] SafeSquid "SPEED-BOOSTER" 4.2.0 Released httpproxy Networking, Firewalls and Security 1 09-26-2007 08:05 PM
Oracle "show databases" list raj Databases servers 1 05-18-2007 01:21 AM


All times are GMT +5.5. The time now is 04:46 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36