Background
We have developed a WordPress website on a staging server with a custom theme and a custom search.php to display the results. This worked like a charm with no errors or warnings in the log.
When the website was put on a different environment (Windows VM), the search results would give a 500 error.
What have we've tried
Since the search works on the staging and not on the live server, we have compared the server specs and PHP installs. These are results from a site check on the live server
Server architecture: Windows NT 10.0 AMD64
Web server: Microsoft-IIS/10.0
PHP version: 7.2.18 (Supports 64bit values)
PHP SAPI: cgi-fcgi
PHP max input variables: 1000
PHP time limit: 300
PHP memory limit: 256M
Max input time: 60
Upload max filesize: 20M
PHP post max size: 8M
cURL version: 7.64.0 OpenSSL/1.1.1b
Is SUHOSIN installed?: No
Is the Imagick library available?: No
This is the staging server:
Server architecture: Linux 4.19.8-x86_64-linode120 x86_64
Web server: nginx/1.13.6
PHP version: 7.3.2 (Supports 64bit values)
PHP SAPI: fpm-fcgi
PHP max input variables: 3000
PHP time limit: 120
PHP memory limit: 256M
Max input time: 60
Upload max filesize: 64M
PHP post max size: 64M
cURL version: 7.60.0 OpenSSL/1.0.1e
Is SUHOSIN installed?: No
Is the Imagick library available?: Yes
.htaccess rules Custom rules have been added to your .htaccess file.
The PHP version is recently set to 7.3 on the staging server for testing purposes. I have also checked if all required PHP components are installed on the live server, and that's the case.
Question
What do you suggest I try next? PHP version 7.2 or 7.3 doesn't seem to be the issue, the big difference I see is that maybe it's not working because it's on a Windows server, but the rest of the website works fine.
The error is found. I've used short PHP opening '' at one point and that wasn't configured on the new server in the php.ini.
Related
Sorry if this is a newbie question. I have been searching and can't seem to figure this out.
I am trying to move a PHP webapp from Plesk, to RunCloud. Both are hosted on a Digital Ocean server.
I exported the database from Plesk, and imported it into RunCloud. After updating the config, it only partially works. Some of the tasks read data, a few seem to write, but a majority just break it.
The strange thing is, if I point the config file to the Plesk server, the app works great using it as a remote database.
Here is from the PHPMyAdmin. The only thing that looks fishy is UNIX, vs TCP. But I cannot find a way to change RunCloud to UNIX.
I would copy the errors, but they are across the board. Any ideas? Thank you so much!
PHPMyAdmin Plesk Server:
Server: Localhost via UNIX socket
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.1.48-MariaDB-0ubuntu0.18.04.1 - Ubuntu 18.04
Protocol version: 10
User: prod#localhost
Server charset: UTF-8 Unicode (utf8mb4)
From RunCloud Server:
Server: 127.0.0.1 via TCP/IP
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.4.21-MariaDB-1:10.4.21+maria~focal-log - mariadb.org binary distribution
Protocol version: 10
User: prod#localhost
Server charset: UTF-8 Unicode (utf8)
As a newbie, I learned that 10.1 and 10.4 were rather different. I then went through each error to see if I could find the change on the MariaDB update guide (which is great). Somehow, I came across this post: error code 1292 incorrect date value mysql. It was the zero date. I just added the line in my.cnf that it suggested. Fixed!!!
I have just setup my Raspberry Pi (RPI) with OSMC (debian 9 stretch), nginx, PHP 7, Mysql and phpmyadmin
All seems to be working except the mysql windows functions. For example the following query produces a syntax error:
SELECT sum(propertyId) over() FROM `properties`;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '() FROM `properties` LIMIT 0, 25' at line 1
However, the exact same query and database tables works fine on my production server.
Here are the setups (from the respective phpmyadmins) for the two servers:
RASPBERRY PI (not working)
Database server
Server: Localhost via UNIX socket
Server type: MariaDB
Server version: 10.1.26-MariaDB-0+deb9u1 - Debian 9.1
Protocol version: 10
User: phpmyadmin#localhost
Server charset: UTF-8 Unicode (utf8)
Web server
nginx/1.10.3
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
PHP extension: mysqliDocumentation mbstringDocumentation
PHP version: 7.0.30-0+deb9u1
PRODUCTION SERVER (WORKING FINE)
Database server
Server: Localhost via UNIX socket
Server type: MariaDB
Server version: 10.2.12-MariaDB-log - MariaDB Server
Protocol version: 10
User: montegoventures#localhost
Server charset: UTF-8 Unicode (utf8)
Web server
cpsrvd 11.70.0.53
Database client version: libmysql - 5.1.73
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 5.6.30
I have tried countless times to upgrade the mariadb on the RPI to version 10.2 but no matter what I do, it still installs version 10.1.26
So, any suggestions on how I can get my simple query to work on my RPI server? Yes, I know it is a trivial query, but if I can't get that simple one to work on the RPI, how can I get my complex queries to work?
thanks
My vhost configuration: http://pastebin.com/ZyXUmQtx (only one domain on this installation)
I've been racking my head and Google for a solution the last two days and can't quite seem to come up with a solution that works.
My setup (from the above configuration):
IP.Board 3.4 installation in %root_domain%/forums/
IP.Content 2.3 installation in %root_domain/forums/ (with external access index.php on the top-level)
Redmine 2.2.2 install at /usr/share/redmine (this is working because Thin is running and there are no errors in either log file)
Stale phpMyAdmin configuration at /usr/share/phpmyadmin/ that also kinda doesn't load html/css properly.
Symlink to /usr/share/redmine/public to /srv/www/tiberian-genesis.net/public_html/redmine
I'm trying to get redmine setup to run under %root_domain%/redmine/, but I keep getting a 404 page from my IP.Content installation.
Accessing it takes me to the url: /redmine/login?back_url=http://redmine_thin_servers/redmine/ (which now that notice it, it seems to not like my upstream...)
In case someone requests the Thin configuration file:
---
pid: /var/run/thin/redmine.pid
group: tgmod
prefix: /redmine
timeout: 30
log: /var/log/thin/redmine.log
max_conns: 1024
require: []
max_persistent_conns: 512
environment: production
user: tgmod
servers: 1
daemonize: true
chdir: /usr/share/redmine
socket: /var/run/thin/redmine.sock
I'm out of ideas here.
Thanks in advance!
I just ended up setting it up on a sub-domain. I wanted to try to proxy it on a sub-directory, but my main website kept interfering with the rules.
I am currently unable to post very large files using the Drupal FileField Source (remote url option) on a custom file field in drupal 7 (7.15). The file is uploading to the tmp directory successfully but failing when it attempts to post. The file size is 870Mb (A 510mb file has posted successfully.).
I receive the following error in access_log:
83.000.15.200 - - [02/Oct/2012:12:30:14 +0000] "POST /file/ajax/field_video_source/und/0/form-i6gTPc5LlZsQxKpgO43eaLGjh7dgWqHjQ6TPZD9SRmY HTTP/1.1" 500 413
I assume I am interpreting this error correctly as a 413 Request Entity Too Large
I have configured php.ini with the following settings:
post_max_size = 1800M
max_execution_time = 3600 (i know that's overkill)
memory_limit = 1750M
max_input_time = -1 (unlimited)
In addition I have attempted to set the LimitRequestBody value to 0 in php.conf using the following:
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 0
</Files>
This didn't appear to help.
The server is running Centos 6.3, Apache/2.2.15, PHP 5.3.3 with 2GB Ram and 40GB disk.
I can't believe it should be struggling with that size file (~800mb) and those server settings?
Do you have access to the http.conf if so you could try this.
This has been the issue for me sometimes to upload with over 500mb. Although I strongly suggest you should try and get it working with
the setting SecRequestBodyAccess "On".
I had to edit the Apache config file (http.conf) and change
SecRequestBodyAccess On
to
SecRequestBodyAccess Off
EDIT:
IF i remember correctly you could try the following.
SET
SecRequestBodyNoFilesLimit , the maximum value is 1073741824 (1Gb)
I am using parallel plesk 11 , and there is service of nginx as reverse proxy server and i am using that , Whenever i try to upload the file size greater than 15MB it gives internal server error. I am not able to find out the problem that is causing this issue.
I am providing the php.ini settings. After checking do tell me any solution, its very urgent to know it is affecting my server services.
I am running php as fastcgi and
settings are
post_max_size 200M
upload_max_filesize 450M
memeory_limit 32M
safe_mode on
The error happened due to httpmaxrequest length error . Which was due to mod_fcgid of apache,
so i changed the fcgid.conf present in /etc/apache2/mods-available/fcgid.conf
Also this file has to be changed for proper working of uploading in parallel plesk.
MaxRequestLen in /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
And After that reconfigure the domain Reconfigure domains: /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Restart Both nginx and apache
service nginx restart
service apache2 restart
Than everything will work fine , Uploading this way can be done. And this is major problem which happens in ubuntu 10.10 running parallel plesk 11.