LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2009, 10:52 AM   #1
chilali
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Question Need Python or Perl script to create a default web page on hosting site


Hi everyone,

I really need help. I have been trying to create CGI scripts for a default directory to my website. Basically, I have a Linux based web hosting site, created a domain name and my page reads 'directory has no index file.' The hosting site doesn't provide that type of support. I have tried the basic files cgi, pl, and py and the best that I have accomplished is displaying the output online, but not creating the default file. I am missing something but I don't know what.

I am a newbie to server side programming, as in three days newbie. I have tried every softwhere-side trick I can think of to do this, including using a remote ftp to try create a shell scripts. That did not work. I can't figure out how to chmod on the SSL layer in linux.

I don't understand how this works. Can someone please provide some help with the code I would need to use to make this work?

There are a full list of modules available on the server. I just don't know how to use them. Everything I have been finding on the internet are the files to download Perl which I can't use. I just need to code to write to my /cgi-bin/ to make my site work.

Please help!

Thanks.
Mia
 
Old 08-02-2009, 09:06 PM   #2
jerrydr
LQ Newbie
 
Registered: Nov 2006
Location: Pahrump, NV
Distribution: SuSE, Slackware
Posts: 16

Rep: Reputation: 0
CGI scripts will not run in the default directory (unless configured that way...UNSAFE). Generally the server looks for index.html in the default directory. You can call the CGI from your index.html. CGI scripts also need to be enabled in the apache config file.
 
Old 08-03-2009, 05:41 AM   #3
chilali
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up Thanks Jerry

Jerry,

I figured that out the hard way. When no one was answering the question, I was frustrated and realized I was thinking about it incorrectly. I went in and looked at my error logs and found what I did wrong. It took a lot of testing but I found it after pages of errors.

I am hosting from fatcow and the information they provided was a bit confusing.

Mia
 
  


Reply

Tags
file, index, script, webpage



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SELinux - Highly Secured Web Hosting for Python-based Web Applications LXer Syndicated Linux News 0 05-28-2008 07:30 AM
Web Page Hosting IvanLow Linux - Newbie 2 05-13-2007 08:51 AM
Apache Virtual Name-Based Hosting and Default Site Poetics Linux - Server 4 03-31-2007 11:28 PM
Web site hosting Xonoss Linux - Newbie 5 02-08-2005 09:55 PM
multiple web page hosting bytebrowser Linux - Networking 4 06-15-2003 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration