GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using cygwin to write my code, and I have done so with the
#!/usr/bin/perl -w
tag at the beginning. For some reason when I load the script from the browser I get my code, it's not running it correctly. My code is locally on my machine, in my C:\cygwin\home\MyKoL\ folder, along with my html code linking to the cgi script. My script runs fine when I use the shell to load it with the perl command out front, so I'm thinking it compiles correctly, I just doesn't link correctly.
For a start, more info about the problem your having would be appreciated. Like the apache error log as well as the apache config file. It sounds as though it might be a permission problem. Make sure that apache has permission to execute your script and and check the config file that the permissions are set correctly for viewing that page
I added the apache package to the cygwin program, not sure what permissions I have to add and to what file. I'm not sure where to find the apache error log or the config file for it.
I added the apache package to the cygwin program, not sure what permissions I have to add and to what file. I'm not sure where to find the apache error log or the config file for it.
Code:
cd /etc
ls apach*
Check apache/apache2 dir (don't know which one you installed) for
httpd.conf and check/edit the logfile setting.
I like to use nano myself. I meant more like, what should I edit in that file to correct this issue.
As for the Apache, I'm not sure how it's running there seems to be a httpd.config.default in the apache folder, so I'm guess that this might be the default program to be used? When I installed the package in cygwin I typed in the name and then from the selected tree I choose to install all.
Dang, well I'm rather confused on how to go about this. I went to a website that I googled online and I set the setups are differently when I loaded it using the cygwin setup program to do so and tried understanding that but what it bothering me is that I used the cygwin setup program to add the apache package to it.
Do you know anything about this, or where I could find some information to help me with this?
I followed the instructions until the Apache2 error came up, hopefully you can follow what I did from below.
Code:
MyKoL@MyKoL-HP ~
$ /bin/cygserver-config
Overwrite existing /etc/cygserver.conf file? (yes/no) yes
Generating /etc/cygserver.conf file
Warning: The following function requires administrator privileges!
Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes
The service has been installed under LocalSystem account.
To start it, call `net start cygserver' or `cygrunsrv -S cygserver'.
Further configuration options are available by editing the configuration
file /etc/cygserver.conf. Please read the inline information in that
file carefully. The best option for the start is to just leave it alone.
Basic Cygserver configuration finished. Have fun!
MyKoL@MyKoL-HP ~
$ net start cygserver
The CYGWIN cygserver service is starting.
The CYGWIN cygserver service was started successfully.
MyKoL@MyKoL-HP ~
$ net start cygserver
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
MyKoL@MyKoL-HP ~
$ /usr/sbin/apachetl2 start
bash: /usr/sbin/apachetl2: No such file or directory
MyKoL@MyKoL-HP ~
$ /usr/sbin/apachectl2 start
(112)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
MyKoL@MyKoL-HP ~
$
I followed the instructions until the Apache2 error came up, hopefully you can follow what I did from below.
Code:
MyKoL@MyKoL-HP ~
$ /usr/sbin/apachectl2 start
(112)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
MyKoL@MyKoL-HP ~
$
I can only guess that a) some instance of apache (maybe the older
apache rather than apache2) is running ... or maybe b) IHS? I really
don't know much about windows, or cygwin, for that matter.
To find out whether it's a process from within cygwin use the old
ps -ef from above again. If that's not it, find out whether your
windows has a webserver going.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.