Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cgi-bin missing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dtjohnst
Apprentice
Apprentice


Joined: 23 Apr 2006
Posts: 178

PostPosted: Fri Jan 22, 2010 10:56 pm    Post subject: cgi-bin missing Reply with quote

Either I did something silly (most likely scenario) or it's not used anymore and I'm just losing my mind, but my /var/www/localhost/htdocs/cgi-bin folder is missing. I'm pretty sure Apache used to install a few other folders in there as well, though I can't remember them off hand. I tried re-emerging apache but that created /var/www/local/htdocs/index.html and nothing else. No cgi-bin folders, no nothing. I checked /usr/lib/cgi-bin since Apache puts it there on some other distros, but no joy. So I tried searching for cgi-bin with find, but nothing came up.

So...how can I get it back? My webserver is empty, so I have no problems re-emerging things as needed.
Back to top
View user's profile Send private message
oldnavy23
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2007
Posts: 86
Location: USA

PostPosted: Sat Jan 23, 2010 4:34 am    Post subject: Reply with quote

Yep its there on my newest install. Did you install with php USE Flag ?
Back to top
View user's profile Send private message
dtjohnst
Apprentice
Apprentice


Joined: 23 Apr 2006
Posts: 178

PostPosted: Sat Jan 23, 2010 4:38 am    Post subject: Reply with quote

Yes. Also tried reinstalling PHP as well.
Back to top
View user's profile Send private message
oldnavy23
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2007
Posts: 86
Location: USA

PostPosted: Sat Jan 23, 2010 4:49 am    Post subject: Reply with quote

What about un-emerging Apache Removing the folder /var/www and then do re-emerge ?
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jan 23, 2010 4:54 am    Post subject: Re: cgi-bin missing Reply with quote

dtjohnst wrote:
Either I did something silly (most likely scenario) or it's not used anymore and I'm just losing my mind, but my /var/www/localhost/htdocs/cgi-bin folder is missing. I'm pretty sure Apache used to install a few other folders in there as well, though I can't remember them off hand.


For me cgi-bin is not in the document root, but rather

Code:

gentoob0x cgi-bin # pwd
/var/www/localhost/cgi-bin


And aliased with

Code:

ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"


within default_vhost.include (/etc/apache2/vhosts.d/default_vhost.include)

SO, the million dollar question, do you have a /var/www/localhost/cgi-bin ?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
dtjohnst
Apprentice
Apprentice


Joined: 23 Apr 2006
Posts: 178

PostPosted: Sat Jan 23, 2010 7:53 am    Post subject: Re: cgi-bin missing Reply with quote

cach0rr0 wrote:
dtjohnst wrote:
Either I did something silly (most likely scenario) or it's not used anymore and I'm just losing my mind, but my /var/www/localhost/htdocs/cgi-bin folder is missing. I'm pretty sure Apache used to install a few other folders in there as well, though I can't remember them off hand.


For me cgi-bin is not in the document root, but rather

Code:

gentoob0x cgi-bin # pwd
/var/www/localhost/cgi-bin


And aliased with

Code:

ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"


within default_vhost.include (/etc/apache2/vhosts.d/default_vhost.include)

SO, the million dollar question, do you have a /var/www/localhost/cgi-bin ?


No sir.
dtjohnst wrote:
So I tried searching for cgi-bin with find, but nothing came up.


I should have specified I began my find with /. So I do not have a cgi-bin directory anywhere on my system. I couldn't remember where it was. I was just browsing through my tree today and went, "Hey wait a second, wasn't there a cgi-bin, error and icons folder somehwere here before?" So I went looking for it, and found it nowhere.

I didn't remove www because it's a partition mountpoint. But, I did reformat that partition and remount it before a re-emerge, still didn't create my cgi-bin, error and icons folders. :-( I suppose I could unmount the partition, delete /var/www, re-emerge, see if the folders get created, then copy the folders over and remount.... I might try that tomorrow if no one else comes up with anything, but right now, it's bed time. :)

Grr. Decided to try it before bed. Unmounted /var/www then deleted /var/www. Unmerged apache AND php. Re-emerged them. Same result. I have /var/www/, /var/www/localhost, /var/www/localhost/htdocs, and /var/www/localhost/htdocs/index.html

What's left? Reformat my entire machine and start over? ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum