Re: [users@httpd] Renaming default page example.com to Data Portal

2018-08-09 Thread Yehuda Katz
The server doesn't set the title, the application does by sending the html
 tag. Check with your application developer.

- Y

On Thu, Aug 9, 2018 at 3:46 PM Collins O. Adoyo 
wrote:

> Dear Users,
>
> I have a web portal with the title of page showing a default name
> example.com. I wish to rename it to Data Portal. Kindly how do I go about
> it. I know there is a file I should edit and insert Data Portal where the
> word www.example.com .
>
> Kindly in which directory is this file and whats the same. The server is
> Apache web server. See the image below to help clarify the same.
>
> [image: Inline image]
>
>
> Kind regards.
> Collins
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org


[users@httpd] Renaming default page example.com to Data Portal

2018-08-09 Thread Collins O. Adoyo
Dear Users,
I have a web portal with the title of page showing a default name example.com. 
I wish to rename it to Data Portal. Kindly how do I go about it. I know there 
is a file I should edit and insert Data Portal where the word www.example.com .
Kindly in which directory is this file and whats the same. The server is Apache 
web server. See the image below to help clarify the same. 




Kind regards.Collins





-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] How to start perl script using FCGID module

2018-08-09 Thread Yehuda Katz
WSGI doesn't work with FastCGI by itself. You can use mod_wsgi, a
wsgi->fastcgi wrapper like flup, or change your program to use fcgiapp or
python-fastcgi.
I think the Flask documentation has some good details and examples:
http://flask.pocoo.org/docs/1.0/deploying/

- Y

On Thu, Aug 9, 2018 at 12:51 PM Ananya Dey  wrote:

> Thanks for the response Yehuda Katz :)
> Also, to run python scripts we need to use the WSGI module. So how do we
> implement that with mod_fcgid?
>
> Regards
> Ananya
>
> On Thu, Aug 9, 2018 at 6:50 PM, Yehuda Katz  wrote:
>
>> The difference between FastCGI and regular CGI is that regular CGI runs
>> the program directly and FastCGI is expected to run continuously and handle
>> requests. If you want to use FastCGI in Perl, you might want to start with
>> a library like PSGI or a framework like Catalyst.
>>
>> - Y
>>
>> Sent from a device with a very small keyboard and hyperactive autocorrect.
>>
>> On Thu, Aug 9, 2018, 8:10 AM Ananya Dey  wrote:
>>
>>> Hi,
>>>
>>> I am trying to run a perl script using fcgid module.
>>> I have loaded mod_fcgid module.
>>>
>>> I have created a directory in apache called fcgi-bin and added the below
>>> snippet to my httpd.conf file.
>>> 
>>> AddHandler fcgid-script .pl
>>> AllowOverride All
>>> Options +Indexes +FollowSymLinks +ExecCGI
>>> Require all granted
>>> 
>>>
>>> And have also added -
>>> ScriptAlias /fcgi-bin/
>>> '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'
>>>
>>> My perl program is a simple hello world programme as follows-
>>>
>>> #!/usr/bin/perl
>>> print("Content-Type: text/plain\n\n");
>>> print "Hello world";
>>>
>>> But the problem that I am facing is that the 'Hello World' output is
>>> getting printed in my Apache error logs and not in the browser as a perl
>>> script. Can someone please help me out with this?
>>>
>>> Thanks
>>> Ananya
>>>
>>
>> On Aug 9, 2018 8:10 AM, "Ananya Dey"  wrote:
>>
>> Hi,
>>
>> I am trying to run a perl script using fcgid module.
>> I have loaded mod_fcgid module.
>>
>> I have created a directory in apache called fcgi-bin and added the below
>> snippet to my httpd.conf file.
>> 
>> AddHandler fcgid-script .pl
>> AllowOverride All
>> Options +Indexes +FollowSymLinks +ExecCGI
>> Require all granted
>> 
>>
>> And have also added -
>> ScriptAlias /fcgi-bin/
>> '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'
>>
>> My perl program is a simple hello world programme as follows-
>>
>> #!/usr/bin/perl
>> print("Content-Type: text/plain\n\n");
>> print "Hello world";
>>
>> But the problem that I am facing is that the 'Hello World' output is
>> getting printed in my Apache error logs and not in the browser as a perl
>> script. Can someone please help me out with this?
>>
>> Thanks
>> Ananya
>>
>>
>>
>


Re: [users@httpd] How to start perl script using FCGID module

2018-08-09 Thread Stormy

On 2018-08-09 12:51 PM, Ananya Dey wrote:

Thanks for the response Yehuda Katz :)
Also, to run python scripts we need to use the WSGI module. So how do we 
implement that with mod_fcgid?


You don't need any *cgi* -- just a2enmod wsgi.conf, works like a dream :=}

Paul




Regards
Ananya

On Thu, Aug 9, 2018 at 6:50 PM, Yehuda Katz > wrote:


The difference between FastCGI and regular CGI is that regular CGI
runs the program directly and FastCGI is expected to run
continuously and handle requests. If you want to use FastCGI in
Perl, you might want to start with a library like PSGI or a
framework like Catalyst.

- Y

Sent from a device with a very small keyboard and hyperactive
autocorrect.

On Thu, Aug 9, 2018, 8:10 AM Ananya Dey mailto:ananyadey...@gmail.com>> wrote:

Hi,

I am trying to run a perl script using fcgid module.
I have loaded mod_fcgid module.

I have created a directory in apache called fcgi-bin and added
the below snippet to my httpd.conf file.

AddHandler fcgid-script .pl
AllowOverride All
Options +Indexes +FollowSymLinks +ExecCGI
Require all granted


And have also added -
ScriptAlias /fcgi-bin/
'/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'

My perl program is a simple hello world programme as follows-

#!/usr/bin/perl
print("Content-Type: text/plain\n\n");
print "Hello world";

But the problem that I am facing is that the 'Hello World'
output is getting printed in my Apache error logs and not in the
browser as a perl script. Can someone please help me out with this?

Thanks
Ananya


On Aug 9, 2018 8:10 AM, "Ananya Dey" mailto:ananyadey...@gmail.com>> wrote:

Hi,

I am trying to run a perl script using fcgid module.
I have loaded mod_fcgid module.

I have created a directory in apache called fcgi-bin and added
the below snippet to my httpd.conf file.

AddHandler fcgid-script .pl
AllowOverride All
Options +Indexes +FollowSymLinks +ExecCGI
Require all granted


And have also added -
ScriptAlias /fcgi-bin/
'/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'

My perl program is a simple hello world programme as follows-

#!/usr/bin/perl
print("Content-Type: text/plain\n\n");
print "Hello world";

But the problem that I am facing is that the 'Hello World'
output is getting printed in my Apache error logs and not in the
browser as a perl script. Can someone please help me out with this?

Thanks
Ananya






-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How to start perl script using FCGID module

2018-08-09 Thread Ananya Dey
Thanks for the response Yehuda Katz :)
Also, to run python scripts we need to use the WSGI module. So how do we
implement that with mod_fcgid?

Regards
Ananya

On Thu, Aug 9, 2018 at 6:50 PM, Yehuda Katz  wrote:

> The difference between FastCGI and regular CGI is that regular CGI runs
> the program directly and FastCGI is expected to run continuously and handle
> requests. If you want to use FastCGI in Perl, you might want to start with
> a library like PSGI or a framework like Catalyst.
>
> - Y
>
> Sent from a device with a very small keyboard and hyperactive autocorrect.
>
> On Thu, Aug 9, 2018, 8:10 AM Ananya Dey  wrote:
>
>> Hi,
>>
>> I am trying to run a perl script using fcgid module.
>> I have loaded mod_fcgid module.
>>
>> I have created a directory in apache called fcgi-bin and added the below
>> snippet to my httpd.conf file.
>> 
>> AddHandler fcgid-script .pl
>> AllowOverride All
>> Options +Indexes +FollowSymLinks +ExecCGI
>> Require all granted
>> 
>>
>> And have also added -
>> ScriptAlias /fcgi-bin/ '/home/ananya/apache-http-
>> connector/apache-2.4.29/fcgi-bin/'
>>
>> My perl program is a simple hello world programme as follows-
>>
>> #!/usr/bin/perl
>> print("Content-Type: text/plain\n\n");
>> print "Hello world";
>>
>> But the problem that I am facing is that the 'Hello World' output is
>> getting printed in my Apache error logs and not in the browser as a perl
>> script. Can someone please help me out with this?
>>
>> Thanks
>> Ananya
>>
>
> On Aug 9, 2018 8:10 AM, "Ananya Dey"  wrote:
>
> Hi,
>
> I am trying to run a perl script using fcgid module.
> I have loaded mod_fcgid module.
>
> I have created a directory in apache called fcgi-bin and added the below
> snippet to my httpd.conf file.
> 
> AddHandler fcgid-script .pl
> AllowOverride All
> Options +Indexes +FollowSymLinks +ExecCGI
> Require all granted
> 
>
> And have also added -
> ScriptAlias /fcgi-bin/ '/home/ananya/apache-http-
> connector/apache-2.4.29/fcgi-bin/'
>
> My perl program is a simple hello world programme as follows-
>
> #!/usr/bin/perl
> print("Content-Type: text/plain\n\n");
> print "Hello world";
>
> But the problem that I am facing is that the 'Hello World' output is
> getting printed in my Apache error logs and not in the browser as a perl
> script. Can someone please help me out with this?
>
> Thanks
> Ananya
>
>
>


Re: [users@httpd] How to start perl script using FCGID module

2018-08-09 Thread Yehuda Katz
The difference between FastCGI and regular CGI is that regular CGI runs the
program directly and FastCGI is expected to run continuously and handle
requests. If you want to use FastCGI in Perl, you might want to start with
a library like PSGI or a framework like Catalyst.

- Y

Sent from a device with a very small keyboard and hyperactive autocorrect.

On Thu, Aug 9, 2018, 8:10 AM Ananya Dey  wrote:

> Hi,
>
> I am trying to run a perl script using fcgid module.
> I have loaded mod_fcgid module.
>
> I have created a directory in apache called fcgi-bin and added the below
> snippet to my httpd.conf file.
> 
> AddHandler fcgid-script .pl
> AllowOverride All
> Options +Indexes +FollowSymLinks +ExecCGI
> Require all granted
> 
>
> And have also added -
> ScriptAlias /fcgi-bin/
> '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'
>
> My perl program is a simple hello world programme as follows-
>
> #!/usr/bin/perl
> print("Content-Type: text/plain\n\n");
> print "Hello world";
>
> But the problem that I am facing is that the 'Hello World' output is
> getting printed in my Apache error logs and not in the browser as a perl
> script. Can someone please help me out with this?
>
> Thanks
> Ananya
>

On Aug 9, 2018 8:10 AM, "Ananya Dey"  wrote:

Hi,

I am trying to run a perl script using fcgid module.
I have loaded mod_fcgid module.

I have created a directory in apache called fcgi-bin and added the below
snippet to my httpd.conf file.

AddHandler fcgid-script .pl
AllowOverride All
Options +Indexes +FollowSymLinks +ExecCGI
Require all granted


And have also added -
ScriptAlias /fcgi-bin/
'/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'

My perl program is a simple hello world programme as follows-

#!/usr/bin/perl
print("Content-Type: text/plain\n\n");
print "Hello world";

But the problem that I am facing is that the 'Hello World' output is
getting printed in my Apache error logs and not in the browser as a perl
script. Can someone please help me out with this?

Thanks
Ananya


Re: [users@httpd] How to use fcgistarter in apache

2018-08-09 Thread Eric Covener
On Thu, Aug 9, 2018 at 8:46 AM Hemant Chaudhary
 wrote:
>
> Okay then how should I start any program using fastcgi starter.


Any fastcgi program?  Exactly the way the manual says.  We use it in
tests to start a small C-based fcgi program and it works fine.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How to use fcgistarter in apache

2018-08-09 Thread Hemant Chaudhary
Okay then how should I start any program using fastcgi starter.

Anybody using it ?

On Aug 9, 2018 6:08 PM, "Eric Covener"  wrote:

> On Thu, Aug 9, 2018 at 8:07 AM Hemant Chaudhary
>  wrote:
> >
> > Hi All,
> >
> > I tried to run my perl on port 8070 and proxy my request to port using
> mod_proxy_fcgi.
> >
> > I am using the following command
> > ./fcgistarter -c /usr/bin/perl -p 8070
> >
> > But none of the process gets started on port 8070.
> >
> > Please help how to use fcgistarter, so that I can start python or perl
> on some port and proxy request to it.
>
> I think you have to pass it something that will actually use the FCGI
> protocol.  perl with no arguments won't do anything relate to fastcgi.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] How to use fcgistarter in apache

2018-08-09 Thread Eric Covener
On Thu, Aug 9, 2018 at 8:07 AM Hemant Chaudhary
 wrote:
>
> Hi All,
>
> I tried to run my perl on port 8070 and proxy my request to port using 
> mod_proxy_fcgi.
>
> I am using the following command
> ./fcgistarter -c /usr/bin/perl -p 8070
>
> But none of the process gets started on port 8070.
>
> Please help how to use fcgistarter, so that I can start python or perl on 
> some port and proxy request to it.

I think you have to pass it something that will actually use the FCGI
protocol.  perl with no arguments won't do anything relate to fastcgi.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] How to start perl script using FCGID module

2018-08-09 Thread Ananya Dey
Hi,

I am trying to run a perl script using fcgid module.
I have loaded mod_fcgid module.

I have created a directory in apache called fcgi-bin and added the below
snippet to my httpd.conf file.

AddHandler fcgid-script .pl
AllowOverride All
Options +Indexes +FollowSymLinks +ExecCGI
Require all granted


And have also added -
ScriptAlias /fcgi-bin/
'/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'

My perl program is a simple hello world programme as follows-

#!/usr/bin/perl
print("Content-Type: text/plain\n\n");
print "Hello world";

But the problem that I am facing is that the 'Hello World' output is
getting printed in my Apache error logs and not in the browser as a perl
script. Can someone please help me out with this?

Thanks
Ananya


[users@httpd] How to use fcgistarter in apache

2018-08-09 Thread Hemant Chaudhary
Hi All,

I tried to run my perl on port 8070 and proxy my request to port using
mod_proxy_fcgi.

I am using the following command
./fcgistarter -c /usr/bin/perl -p 8070

But none of the process gets started on port 8070.

Please help how to use fcgistarter, so that I can start python or perl on
some port and proxy request to it.

Thanks
Hemant