View Full Version : How Do I Install a CGI Script to A Remote Webserver?
svoltmer
09-02-2006, 01:53 AM
I know nothing about CGI and server side scripting. I need to install a detailed web statistics cgi script on my remote webserver, but I have no clue how to go about doing that. All instructions for every cgi script intallation assume that you have the server locally or at least are the admin. Help Please?
FTP can be used, svoltmer. You'll need username and password for FTP access.
When uploading with FTP, upload your script files as ASCII/plain text.
NiteOwl
09-02-2006, 04:27 AM
after you do what 4um suggested,
you will probally need to chmod your folders to 755 or 777
and the same for your .cgi files
I would try 755 first, some servers don't like 777
;)
svoltmer
09-02-2006, 08:56 PM
Thanks, But my real problem is after I upload them to the cgi-bin folder. I cant get the script to run. What do I do? I know nothing.
NiteOwl
09-02-2006, 09:16 PM
All you have said so far is that it dont work.
More info is needed to help you.
What kind of script?
Where are you uploading it? Http:Where?
What errors are you getting?
This kind of info will help.
svoltmer
09-02-2006, 09:29 PM
It's a web statistics pearl script called "AWstats". I am uploading it to the "cgi-bin" folder in my domains root directory (http://www.crosst.org/cgi-bin/awstats.pl), which is up one level from my "html" directory if that helps.
And the error is "The requested URL /cgi-bin/awstats.pl) was not found on this server."
svoltmer
09-02-2006, 10:03 PM
From this address - http://www.crosst.org/cgi-bin/awstats/wwwroot/cgi-bin/awstats.pl
I got the script to start, but it gave me this error:
"Error: Couldn't open config file "awstats.www.crosst.org.conf" nor "awstats.conf" after searching in path ".,/etc/awstats,/usr/local/etc/awstats,/etc,/etc/opt/awstats": No such file or directory
- Did you use the correct URL ?
Example: http://localhost/awstats/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file 'awstats.www.crosst.org.conf' ?
If not, you can run "./../../tools/awstats_configure.pl" from command line, or create it manually.
Check config file, permissions and AWStats documentation (in 'docs' directory)."
NiteOwl
09-02-2006, 10:26 PM
check this first.
You need the '.conf' on the end of your config file, it is probably 'awstats.versus.f2o.org' or
'awstats.www.crosst.org' at the moment.
if that don't do it.
i would check the location of your config file.
it is looking for awstats.www.crosst.org.conf
also, if it is there check what permissions it has.
good luck.
svoltmer
09-14-2006, 04:16 PM
Thanks, changing the name of the .config file got me a little further. I am now getting the error:
"Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('./awstats.www.crosst.org.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory)."
I have the permissions set to "777", but I don't understand what "SiteDomain parameter" needs defined in the config/domain file? any suggestions? Thanks for being patient with me!
svoltmer
09-14-2006, 06:11 PM
It is running the script, but I can't update the data from the log file because I can't get the correct path to the "logs" directory. I thought I could just use the relative path "../logs/access_log" , but it can't find the file.
The "logs" directory is at the home directory of my website /logs, but the .pl is several directories into the /cgi-bin.
Any suggestions. I believe it is running Apache
NiteOwl
09-16-2006, 08:21 PM
Look in your .cofg and see what you have for:
LogFile=
"C:/Program Files/Abyss Web Server/log/access.log"
make sure you have your full path to this file. Something like this
/var/log/apache/access.log
change permissions of log file to 644
Also, check and see if LogFormat=1
I think the default is 4
If you could post your log file, i may be able to help.
what does your /awstats-icon/ in the Aliases section look like?
svoltmer
09-17-2006, 02:49 PM
Nite Owl,
I've attached my log file for you to look at. I really appreciate your help!
I am trying to configure this on a remote Apache server and I know nothing about their directory structure. I just know that the at the highest level of my domain that they have given me access to it lists these folders:
cgi-bin
crosst.org
docs
html
logs
mail
mivadata
se
stats
tools
Thanks Again!!
NiteOwl
09-21-2006, 10:24 PM
can you show me your .conf file
svoltmer
09-24-2006, 02:36 PM
Here you go. Thanks!
NiteOwl
09-30-2006, 09:16 PM
you have your logfile as:
LogFile="../logs/access_log"
ck your logfile name is the "_" a typo?
should this be
LogFile="../logs/access.log"
or
LogFile="../logs/access_log.log"
osx-vip
10-01-2006, 12:46 PM
This much simply!
Place the files in folder /cgi-bin. Then put 755 rights of the access
_ (http://osx-vip.info)_ (http://acnezine.osx-vip.info)_ (http://attractmate.osx-vip.info)_ (http://bowtrol.osx-vip.info)_ (http://herbal.osx-vip.info)_ (http://breastgainplus.osx-vip.info)_ (http://cellulitesolution.osx-vip.info)_ (http://deerantlerplus.osx-vip.info)_ (http://dietrinecarbblocker.osx-vip.info)_ (http://dietrinepatch.osx-vip.info)_ (http://doctorsherbalgroup.osx-vip.info)_ (http://eazol.osx-vip.info)_ (http://enlast.osx-vip.info)_ (http://hairremovalplus.osx-vip.info)_ (http://herbalphentermine.osx-vip.info)_ (http://hghenergizer.osx-vip.info)_ (http://hoodiagordoniiplus.osx-vip.info)_ (http://melatrol.osx-vip.info)_ (http://menozac.osx-vip.info)_ (http://nicocure.osx-vip.info)_ (http://provillus.osx-vip.info)_ (http://relagen.osx-vip.info)_ (http://revitol.osx-vip.info)_ (http://stretchmarkprevention.osx-vip.info)_ (http://thyromine.osx-vip.info)_ (http://ultraherbal.osx-vip.info)_ (http://venapro.osx-vip.info)_ (http://virilityexoil.osx-vip.info)_ (http://virilityexpatch.osx-vip.info)_ (http://virilityexpills.osx-vip.info)_ (http://weightlosspatchpro.osx-vip.info)_ (http://drugstore4men.osx-vip.info)_ (http://drugstore4women.osx-vip.info)_ (http://finalherbal.osx-vip.info)_ (http://freecumpills.osx-vip.info)_ (http://pharma.osx-vip.info)_ (http://freepepills.osx-vip.info)_ (http://freespermpills.osx-vip.info)_ (http://herbalzilla.osx-vip.info)_ (http://lysexl.osx-vip.info)_ (http://maxformula.osx-vip.info)_ (http://maxpassion.osx-vip.info)_ (http://maxtender.osx-vip.info)_ (http://maxwillypills.osx-vip.info)_ (http://newmp3.osx-vip.info)_ (http://pearlclimaxer.osx-vip.info)_ (http://penistips.osx-vip.info)_ (http://studmax.osx-vip.info)_ (http://sureerect.osx-vip.info)_ (http://voilamore.osx-vip.info)_ (http://xtracum.osx-vip.info)_ (http://fingerator.osx-vip.info)_ (http://acnope.osx-vip.info)_ (http://hangoff.osx-vip.info)_ (http://lenile.osx-vip.info)_ (http://maxodent.osx-vip.info)_ (http://mxman.osx-vip.info)_ (http://scibody.osx-vip.info)_ (http://wowpills.osx-vip.info)_ (http://zeronico.osx-vip.info)_ (http://vip-herbal.blogspot.com)
svoltmer
10-01-2006, 03:24 PM
That is the actual name of the log file, "access_log", it doesn't have the ".log" extention on it either. Should I put ".log" on the log file name on the server?
svoltmer
10-03-2006, 10:59 PM
It is an Apache webserver so the default log file name is "access_log"
"/logs/access_log" says that it doesn't exist, but I can see it! Very frustrating.
The chmod ="664" so I can read and write to that directory (logs)
What else should I check. I appreciate your help!
rwedge
10-04-2006, 01:24 AM
Have you confirmed the full path to "/logs/access_log". Is it a sub of your server path / root?
svoltmer
10-04-2006, 06:56 PM
That's the ticket. After digging around a bit I found the actual path from "home" and using that it process the log file.
Now if I can just figure out how to process compressed log files. (.gz)
Thanks for all your help!!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.