[CWB] CQPweb: php error

Hardie, Andrew a.hardie at lancaster.ac.uk
Tue Feb 16 06:55:07 CET 2021


The present required PHP version is 7.3. It will be bumped to 8.0 as soon as I can justify doing so, probably shortly after the time that PHP 7 reaches end of active support<https://www.php.net/supported-versions.php>. I won't use any of the PHP 7.4 new features<https://stitcher.io/blog/new-in-php-74> until PHP 8<https://stitcher.io/blog/new-in-php-8> is required (even though I am already in pain from the need to avoid some PHP8 features e.g. union types for function returns!). And the 3.2 branch will probably never use any >7.3 features.

Further to Peter's point on a2enmod, in some systems the apache config file (or one such file) will set a "handler"  for .php files, such a directive being misconfigured or ignored might be your problem...

best

Andrew.


From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Simon Meier-Vieracker
Sent: 15 February 2021 12:25
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: Re: [CWB] CQPweb: php error

Hi Andrew,

thanks!

How can I check which CQPweb version I have installed in order to know the required PHP version? I think I do not need 8.0 but I want to be sure.

Even if my problem is outside of the responsibilities of this mailing list: If there is anyone familiar with problems concerning PHP in Apache, any help would be appreciated...

Best, Simon


Am 15.02.2021 um 12:24 schrieb Hardie, Andrew <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>>:

Hi Simon,

It sounds like your web server is not processing the PHP scripts are PHP but is instead serving them up as plain text. This is a web server configuration problem not a CQPweb problem I'm afraid.

If you're on Apache, the issue may be that mod_php is not enabled. On other webservers, there will be similar things.

best

Andrew

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>> On Behalf Of Simon Meier-Vieracker
Sent: 15 February 2021 07:33
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>
Subject: Re: [CWB] CQPweb: php error


Some more information:

PHP 8.0.2
Server version: Apache/2.4.25 (Debian)

I checked the required extensions in the Admin Manual and found that "Extension 'intl' not present."

But I guess that the problem is more basic, since it does not execute the very simple command "<?php require('lib/mainhome.php');"

Best, Simon



Am 14.02.2021 um 10:18 schrieb Simon Meier-Vieracker <simon.meier-vieracker at tu-dresden.de<mailto:simon.meier-vieracker at tu-dresden.de>>:

Hi,

since today, I get the following error when I try to call CQPweb on my server https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2F&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=rE%2FqcvUB59QzuZQ6oG1JCPZ2ckrcpWSI%2FKIlfvcJV4g%3D&amp;reserved=0<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2F&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C7bbfbe51586244347f0608d8d1acbaae%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489887128786054%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ZDtv4vrYTrtkuk0n8tyzs8MKImChFkwXjEDwkxLupHY%3D&reserved=0>


<?php require('lib/mainhome.php');

Same thing on other pages:


<?php require ('../lib/adminhome.php');

The server is running, I can call pages outside of CQPweb (e.g. https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2Ftutorial.html&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ANxbnpA%2BJbvubdeRUbLMhMxlSSRkicEYpWDCbfTQU1A%3D&amp;reserved=0<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2Ftutorial.html&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C7bbfbe51586244347f0608d8d1acbaae%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489887128796010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JeW7yKjnoEY84%2BRcAOQS0wIOcGyY1vEkJhYOjZI86UE%3D&reserved=0>)

And within the lib folder, everything seems to be okay (see attached file) and mainhome.php looks good, too.

Any suggestions what I can check in order to fix this?

Best, Simon

<lib.txt>

_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ICBmNvRtV4z26cKxZR%2FuvtFMimnqLPlZZSC3xQA9IK4%3D&amp;reserved=0<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C7bbfbe51586244347f0608d8d1acbaae%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489887128796010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bhBYhU6HsS1GuRZa4Kpv3DgKE%2FnrFpKGseHN25lCADI%3D&reserved=0>


_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>
http://liste.sslmit.unibo.it/mailman/listinfo/cwb<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C7bbfbe51586244347f0608d8d1acbaae%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489887128805963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Xlt90rHKydDn1Ti6HXd9gUcjQyskLCId3ePXEQ%2Bogxc%3D&reserved=0>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210216/ca415cc3/attachment.html>


More information about the CWB mailing list