Re: [users@httpd] Script CGI with shell
Try this: http://www.yolinux.com/TUTORIALS/BashShellCgi.html Tell us if those examples work for you. Em 04-09-2018 16:04, Rodrigo Cunha escreveu: Hello, i have a question, i try start a shell(bash) script in my apache2 and not work, i seting bellow diretive in my vhost but not work: Options +ExecCGI AddHandler cgi-script .cgi .pl root@HTTPS:dir #ls -l /opt/dev/www/www.tmp.oduvaldocozzi.intranet/public_html/dir/ total 12 -rwxr-xr-x 1 webmaster dev 31 Set 4 15:48 x.sh But the bash script notwork, only display the file content: #!/bin/bash echo "Hello world" -- Atenciosamente, Rodrigo da Silva Cunha São Gonçalo, RJ - Brasil - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Translate that for us (was Re: [users@httpd] Register now for ApacheCon and save $250)
Em 21-07-2018 02:43, Erik Dobák escreveu: DODOSO SISOWPBA WWIAQUSOPS SAUOPM XTSAU What does that mean? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] download
There are several projects in apache.org. You are looking for this project: http://httpd.apache.org/ What will interest you most today, in the above page, is the download link for the 2.4 version: http://httpd.apache.org/download.cgi#apache24 And the binaries section, which is here: http://www-eu.apache.org/dist//httpd/binaries/ The basic things you probably know about server settings should still work. You may check them here for safeness and eventual problems, of course. The community is very helpful. PHP should be downloaded from its page, and that should be easy to do. I do not know how to comment the SQL thing you said. A bundle install for "everything people commonly use in a web server" you may find around the web. For that, you should search for bundle projects. WampServer is something that comes to my mind (read a bit about it here: http://www.wampserver.com/en/). Please be aware that WAMP is a broader and older acronym: https://pt.wikipedia.org/wiki/WAMP , and this word is possibly used to describe other projects too). I only use linux since years ago (my last Win was XP, which I still use in eventual Win needs, which I will do in virtual machines), so other people may give you other pointers with the same idea. Regards Em 11-07-2018 19:10, georg.chamb...@telia.com escreveu: Hi, tnx, well I have done both a fedora and a MS W-XP installation before, but now im (unfortunately) on a W10, which is the target. Its only a bread-n-butter variant, will run some PHP with an ODBC coupling to a MIMER-SQL engine. (actually lifting development of my web to newer machine & sw) ¨But when looking at the apache.org I got the impression that there were a myrriad of variants to choose from. I just really want one single self-installing image (possibly with some checking like pgp) Ursprungligt meddelande Från : lists-apa...@listmail.innovate.net Datum : 2018-07-11 - 23:43 (V) Till : users@httpd.apache.org Ämne : Re: [users@httpd] download Date: Wednesday, July 11, 2018 23:33:32 +0200 From: georg.chamb...@telia.com Hi Im an oldie, who once installed an Apache server, now I was on to make a new installation BUT O, things have become so complexity, so inflated, I can make no sense of what to download, or from where That, of course, depends on the operating system in question. If you are using a *nix type system I would suggest you start by using its package management application to download and install things. That will/should resolve dependencies and the like and make everything much easier. As the versions available from the repos aren't always the most bleeding edge, if you find that you need capabilities that are only found in newer releases you can then proceed on and get the binaries/source directly - but you're more on your own in terms of making all the parts work. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] (rewritten) In directory pages, how to show file dates in a specific timezone?
Em 14-06-2018 14:25, Yann Ylavic escreveu: On Thu, Jun 14, 2018 at 12:08 AM, Dedeco Balaco wrote: Em 13-06-2018 17:29, Yann Ylavic escreveu: The date format used by mod_autoindex is hardcoded, and does not include the timezone (%z or %Z in strftime format). I think a patch is needed to eventually configure it (e.g. another IndexOptions keyword). Being hardcoded is bad. Not so until someone notices ;) Should I consider this as a bug and report it? I'd call it an improvement request, bugzilla can be used for that yes. The thread in LinuxQuestions.org I pointed has a basic code that I can use to make some PHP code to list what I need. If that is not the better solution, at least for something temporary, please point. Possibly the easiest/fastest solution, because (see below)... Taking the code from Apache's mod_autoindex, fixing and running the new code for my user is something easy to do? Will it need to be installed by root? Making it available for other users in the server is not needed, not necessary. This needs mod_autoindex to be recompiled and installed in the httpd directory (with whatever rights that may require). If you can't do this, the PHP solution might be what you need for now. I will check that now. I imagined if a "to my user only" solution was possible. Compiling should not be a problem, or hard at all; installing it in my user folder is natural; to test it should be a matter of Apache config of any directory I create for that, possibly with a different (possibly uncommon) setting. The last part is exactly where I would need some help. Thank you for all details you commented, Yann. Each of them have added information for me. Thanks to others who also replied. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] (rewritten) In directory pages, how to show file dates in a specific timezone?
Em 13-06-2018 17:29, Yann Ylavic escreveu: On Wed, Jun 13, 2018 at 9:26 PM, Dedeco Balaco wrote: Is my question outside the scope of this list? Not really, though after a quick look at the code it seems that there is no "configurable" solution, maybe that's an explanation (not an excuse) :/ That is an explanation indeed, Yann. But what was said before was not this. So I was assuming there was a way to fix it, and waited for answers from the list. I can give more information about the hardware and OS. But before I said everything I thought could be needed: normal user, Debian 9, Apache 2.4, environment accessed by SSH shows every date in the correct timezone, set with TZ variable. I could not find a way to show file listing pages (generated by Apache) with times in the correct timezone. The timezone is defined in the environment, but Apache refuses to take it into account (assuming that what I set it what should be set). The date format used by mod_autoindex is hardcoded, and does not include the timezone (%z or %Z in strftime format). I think a patch is needed to eventually configure it (e.g. another IndexOptions keyword). Being hardcoded is bad. Should I consider this as a bug and report it? The thread in LinuxQuestions.org I pointed has a basic code that I can use to make some PHP code to list what I need. If that is not the better solution, at least for something temporary, please point. Taking the code from Apache's mod_autoindex, fixing and running the new code for my user is something easy to do? Will it need to be installed by root? Making it available for other users in the server is not needed, not necessary. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] (rewritten) In directory pages, how to show file dates in a specific timezone?
Is my question outside the scope of this list? Does my question needs to explain more details about my problem? It has been waiting some help for almost 30 days, which seem to be unusual in this list. In this time, I have seen several questions being immediately or very quickly answered, which make me wonder what is wrong with mine. Em 17-05-2018 16:46, Dedeco Balaco escreveu: Hello, I could not find a way to show file listing pages (generated by Apache) with times in the correct timezone. The timezone is defined in the environment, but Apache refuses to take it into account (assuming that what I set it what should be set). To detail the situation a bit more: a Debian 9 server with Apache 2.4; a normal user account; a working ~/public_html folder for public web content. Dates and times are correctly shown in SSH accesses to the server, made by me. Although the server is in a different timezone, the command ls (and others) use the TZ variable where timezone is needed, showing times as if here. This is not related to Apache, but seem important (to compare). If the server uses Bios times or anything, it does not matter (my guess), since we can choose our timezone as needed, with the TZ environment variable. For the system I shortly defined, imagine these steps: 1. Access the server with SSH 2. Create a new folder in ~/public_html with the command: mkdir ~/public_html/nf 3. Create one file in that folder with the command echo "arquivo" > ~/public_html/nf/arquivo.txt 4. Show that folder content (one file) to someone, with the public URL: http://user.server.fi/nf This page will be created by Apache 2.4. But it shows time in server's clock (or timezone, I am not sure, and it should not matter, I think, as long as it consider the timezone I want, somehow). My user environment has the variable TZ set to my timezone, as said. We can confirm that exists in the web environment for each user, using phpinfo() function in any served PHP script. Since Apache does not seem to consider the TZ variable to choose the timezone to show file metadata, how should I do it? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] (rewritten) In directory pages, how to show file dates in a specific timezone?
Hello, I could not find a way to show file listing pages (generated by Apache) with times in the correct timezone. The timezone is defined in the environment, but Apache refuses to take it into account (assuming that what I set it what should be set). To detail the situation a bit more: a Debian 9 server with Apache 2.4; a normal user account; a working ~/public_html folder for public web content. Dates and times are correctly shown in SSH accesses to the server, made by me. Although the server is in a different timezone, the command ls (and others) use the TZ variable where timezone is needed, showing times as if here. This is not related to Apache, but seem important (to compare). If the server uses Bios times or anything, it does not matter (my guess), since we can choose our timezone as needed, with the TZ environment variable. For the system I shortly defined, imagine these steps: 1. Access the server with SSH 2. Create a new folder in ~/public_html with the command: mkdir ~/public_html/nf 3. Create one file in that folder with the command echo "arquivo" > ~/public_html/nf/arquivo.txt 4. Show that folder content (one file) to someone, with the public URL: http://user.server.fi/nf This page will be created by Apache 2.4. But it shows time in server's clock (or timezone, I am not sure, and it should not matter, I think, as long as it consider the timezone I want, somehow). My user environment has the variable TZ set to my timezone, as said. We can confirm that exists in the web environment for each user, using phpinfo() function in any served PHP script. Since Apache does not seem to consider the TZ variable to choose the timezone to show file metadata, how should I do it? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] In directory pages, how to show file dates in a specific timezone?
Em 17-05-2018 15:55, Stormy escreveu: On 2018-05-17 12:30 PM, Dedeco Balaco wrote: [snip] How to make Apache file listing pages be shown in the correct timezone, or a specific one (possibly using a "SetEnv TZ" line in .htaccess ? p.s.: There is a small error in the users list page ( https://httpd.apache.org/userslist.html ). The verb in the note sentence is wrong. s/ send|sent ??? I've just looked at your reference, the page is perfect. I might suggest that if you want help, don't insult the volunteers who *can* help. It should be send, and sent was written there - or I would have no reason to point it. With *everything* I have said, I did not mean to insult anyone! If you thought that, I might have chosen the wrong words. We should interpret my words with good and calm tones, and always having constructive things. As to your question, "timezones" is rather vague. Depending upon your hardware and your o/s, you may have BIOS time, o/s time and various pieces of coding that consciously (or not) use one, the other or a possibly incorrect interpretation of either one. I chose to write it short, since I pointed to a discussion about the same problem, where more details are shown - although I imagined they should not be needed. I will rewrite my first message now. Thank you for your reply - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] In directory pages, how to show file dates in a specific timezone?
Em 16-05-2018 11:57, Dedeco Balaco escreveu: Hello, I could not find a way to show file listing pages (of Apache) with times in correct the timezone. The timezone is defined in the enrironment, but Apache refuses to take it into account. The discussion made in https://www.linuxquestions.org/questions/showthread.php?p=5855435 shows that situation clearly. The main point is that: - dates and times are correctly shown in SSH accesses, they take the TZ (for timezone) variable value - PHP also takes that variable into account, something that is even shown by phpinfo PHP function How to make Apache file listing pages be shown in the correct timezone, or a specific one (possibly using a "SetEnv TZ" line in .htaccess ? p.s.: There is a small error in the users list page ( https://httpd.apache.org/userslist.html ). There is written Before you go further, please read Eric S. Raymond and Rick Moen's explanation of "How To Ask Questions The Smart Way". If you follow their advice, you will discover that these forums have dozens of helpers ready to provide you with guidance on using the Apache HTTP Server! Note: Do not SENT your Apache questions to Eric or Rick! where should be Before you go further, please read Eric S. Raymond and Rick Moen's explanation of "How To Ask Questions The Smart Way". If you follow their advice, you will discover that these forums have dozens of helpers ready to provide you with guidance on using the Apache HTTP Server! Note: Do not SEND your Apache questions to Eric or Rick! The verb in the note sentence is wrong. In the last few days, I have seen several answers, discussions, but to other questions. They are aparently more complicated than my problem. If this is this a wrong list to choose for my problem, please say that to me. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] In directory pages, how to show file dates in a specific timezone?
Hello, I could not find a way to show file listing pages (of Apache) with times in correct the timezone. The timezone is defined in the enrironment, but Apache refuses to take it into account. The discussion made in https://www.linuxquestions.org/questions/showthread.php?p=5855435 shows that situation clearly. The main point is that: - dates and times are correctly shown in SSH accesses, they take the TZ (for timezone) variable value - PHP also takes that variable into account, something that is even shown by phpinfo PHP function How to make Apache file listing pages be shown in the correct timezone, or a specific one (possibly using a "SetEnv TZ" line in .htaccess ? p.s.: There is a small error in the users list page ( https://httpd.apache.org/userslist.html ). There is written Before you go further, please read Eric S. Raymond and Rick Moen's explanation of "How To Ask Questions The Smart Way". If you follow their advice, you will discover that these forums have dozens of helpers ready to provide you with guidance on using the Apache HTTP Server! Note: Do not SENT your Apache questions to Eric or Rick! where should be > Before you go further, please read Eric S. Raymond and Rick Moen's > explanation of "How To Ask Questions The Smart Way". If you follow > their advice, you will discover that these forums have dozens of > helpers ready to provide you with guidance on using the Apache HTTP > Server! Note: Do not SEND your Apache questions to Eric or Rick! The verb in the note sentence is wrong. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org