[CWB] CQPweb: php error
Hardie, Andrew
a.hardie at lancaster.ac.uk
Wed Feb 17 12:23:30 CET 2021
OK, but note this is because your Apache must not have been configured to work with the other version of PHP, but is configured to work with 7.4. So, nothing to do with CQPweb's requirements. - Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Simon Meier-Vieracker
Sent: 17 February 2021 10:56
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: Re: [CWB] CQPweb: php error
Hi,
we decided to go back to php7.4 and now it works. Thanks for your help!
Best, Simon
Am 16.02.2021 um 06:55 schrieb Hardie, Andrew <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>>:
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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.php.net%2Fsupported-versions.php&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414453756%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UieC8ILE7MLbnX%2FCV5s7Uc1GCr3KRzj4tUEvsk%2ByYoU%3D&reserved=0>. I won't use any of the PHP 7.4 new features<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstitcher.io%2Fblog%2Fnew-in-php-74&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414463716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3f3y02zLxI6BQz%2FC5s5OT%2BRI2dMd5CuXH39eh3WW4Oc%3D&reserved=0> until PHP 8<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstitcher.io%2Fblog%2Fnew-in-php-8&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414463716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=F9TzR94zF6FZ%2BkaIoZ%2FvFQrcPgfgggyuaXwyKoBJuSo%3D&reserved=0> 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<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 12:25
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
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&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rE%2FqcvUB59QzuZQ6oG1JCPZ2ckrcpWSI%2FKIlfvcJV4g%3D&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%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414473672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k4DM8yVHiN8e%2FISkU0BC%2FGEie1WsxO8GDAxk8BOwzoQ%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&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ANxbnpA%2BJbvubdeRUbLMhMxlSSRkicEYpWDCbfTQU1A%3D&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%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414473672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NeMZcl9AG2NKvpe46tL1p7xWT0icl4T8PvFYG5zxXak%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&data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ICBmNvRtV4z26cKxZR%2FuvtFMimnqLPlZZSC3xQA9IK4%3D&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%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414473672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=VScWfWD%2F5n0vXmuoExeYq6WdrQQ6iYvkwDszW5d6yTU%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%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414483625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Qp0xxhYZBN1MlTtqjKXqbg90rGpECxWwzpqq5qP5Q3E%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%7C90660c8eb002404dda3008d8d332caa0%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637491562414483625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Qp0xxhYZBN1MlTtqjKXqbg90rGpECxWwzpqq5qP5Q3E%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210217/cc6f954c/attachment-0001.html>
More information about the CWB
mailing list