Jump to content

Processwire admin interface is not working properly in my server


saboor
 Share

Recommended Posts

I have installed processwire in my XAMPP/localhost, it is pretty nice and working fast. After some changes to the template, I have uploaded the everything including database to the server. There is no issue in front end of the project but when I want to login to the backend using my user name and password, it is very slow and not working properly. Sometimes I can login but when I click to edit a page the processwire stop working. Usually I can't login to the backend of this nice CMS. 

1. Do I need to edit the wire/config.php or not ? if yes then what is the database path ?

2. I know the procash module is good but I have tried that? Can we run processwire without procash or not?

Anyone to answer my questions? and help to fine the solution way for this headache. 

Link to comment
Share on other sites

Welcome to the forum saboor,

You might be interested in a few tips you can find in the forum, like this one:
https://processwire.com/talk/topic/12431-moving-site-to-another-server

Or the docs:
http://processwire.com/docs/security/migration/
http://processwire.com/docs/security/file-permissions/

You might want to do a google search like this one: site:processwire.com/talk moving

Anyway, what sort of error messages (PHP, Apache, etc..) do you get? You might want to use $config->debug = true; in config.php.

By "procash", do you mean ProCache? ProCache is not required at all. As the name implies, it is for those who need some serious caching for the otherwise fast ProcessWire.

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

Thanks from both of you, (szabesz and Christophe). The resone which I didn't answered to your responses is because I was trying to fine a better solution way from what you have suggested. I changed my wire folder with a new one with no changes in wire/config.php. I have also removed all files from cache folder. I have changed the 'assets' folder and file premission to 777 which is the worst one. It is now working pretty good but sometimes it is not working while I am updating the content. The size of the 'site/assets' folder is about 110 MB and there are about 800 pictures and a few PDF files also my internet speed is not very good too. Can you please tell me that, is it necessary to reduce the pictures size or not?  

  • Like 1
Link to comment
Share on other sites

Hi saboor,

Your current issue reminds mi of this one:
https://processwire.com/talk/topic/12375-urgent-will-pay-help-debugging-image-fields/
Personally I have never run into this suhosin issue, but it sound very similar to me.

If it will not help, you might want to share more info regarding server environment, PHP version, ProcessWire version, possible 3rd party modules, etc.

Link to comment
Share on other sites

Hello szabesz,

Regarding 3rd party modules, I am using "blue-vr" Mr. G. Virajith's  template. The installed modules which I have now are: AllInOneMinify (it is not active), FieldtypeMapMarker, FieldtypeSelect, FormTemplateProcessor, InputfieldCKEditor and TextformatterVideoEmbed. My PW version is 3.0.10 but the template is compatible with PW 2.5. 
 

I read the above link and tried to find "suhosin" but I couldn't. Also my php.ini file was empty, I copied the content from "C:\xampp\php\php.ini-production" and pasted it to "Root: /cgi-bin/php.ini" file and then run the "<?php phpinfo(); ?>" from my domain, below is the short description from my server:

PHP Version: 7.0.2-pl0-gentoo
System: Linux atl4vux104 3.18.9-hardened #1 SMP Wed Feb 24 17:14:00 UTC 2016 x86_64
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/cgi-php7.0
Loaded Configuration File /data/25/2/13/30/2665682/user/2926517/cgi-bin/.php/php.coalesced.ini
Scan this dir for additional .ini files /etc/php/cgi-php7.0/ext-active
Additional .ini files parsed /etc/php/cgi-php7.0/ext-active/imagick.ini, /etc/php/cgi-php7.0/ext-active/opcache.ini
PHP API 20151012
PHP Extension 20151012
Zend Extension 320151012
Zend Extension Build API320151012,NTS
PHP Extension Build API20151012,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled

Thanks for helping me,

Link to comment
Share on other sites

Hi,

Since you wrote: "my internet speed is not very good" I thought we are talking about an online server, not your localhost. Xampp is running on your machine, so why should internet speed matter too much? Anyway, suhosin cannot be an issue in the case of running on Xampp.

"but sometimes it is not working while I am updating the content"
Can you please explain it in a bit more detail? Referring to images made me think you cannot upload them, but I'm not so sure. Can you please clarify?

  • Like 2
Link to comment
Share on other sites

Hello,

Actually my processwire project has no problem in localhost. The problem is with online server, even I used high speed internet but when I logged in I am not able to see the page tree content, if sometimes it successfully render the page tree content then after clicking on edit all the page become freezing and none of the links in admin home page is working.

As I said my processwire ver. is 3.0.10 but the "blue-vr" template is designed for PW 2.5. If try this template with PW 2.5 then how I can find processwire 2.5 ?

Thanks,

Link to comment
Share on other sites

Actually my processwire project has no problem in localhost. The problem is with online server, even I used high speed internet but when I logged in I am not able to see the page tree content, if sometimes it successfully render the page tree content then after clicking on edit all the page become freezing and none of the links in admin home page is working.

As I said my processwire ver. is 3.0.10 but the "blue-vr" template is designed for PW 2.5. If try this template with PW 2.5 then how I can find processwire 2.5 ?

You can download old releases from GitHub:

https://github.com/ryancramerdesign/ProcessWire/releases

However, if the site is ok on your localhost server, then I do not think it is a good idea to downgrade because sooner or later you will need to solve this problem anyway.

So you online server is running PHP Version: 7.0.2. You might want to try switching to PHP 5.6.x. As far as I know ProcessWire runs on v7 too, but you have modules as well which might not yet be PHP 7 ready. Even if your xampp is configured to run PHP 7, you might want to try downgrading PHP.

BTW, how about the server logs?

Link to comment
Share on other sites

I noticed that every time I clear my session and cache folders, than I can easily sign in and edit any page for a few minutes and after that it is not working. I don’t know is the total 17383 bytes (68 files) in session folder and 97889 bytes (1 file) in cache/MarkupHTMLPurifier/HTML folder in a few minutes (about 5 minutes just updating the texts and titles) is this normal or something is wrong?

About the server log, I have enabled access and error logs on my server. Now I have a log folder in htdocs and the log folder contents are: php.ini, php.dat, monthdir.pl, global.dat, fileman.cgi.

Link to comment
Share on other sites

I do not know too much about opcache, however I think is important to point out that whenever I use it I notice that when updating files the cache is not immediately refreshed but it takes several seconds (somewhere between 0-30) to be able to see the changes being applied. So in my experience opcache makes testing code changes painful during development.

Link to comment
Share on other sites

Hi,

I have change the below in my php.ini in my server, i could not see any changes.

**************************

[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
opcache.use_cwd=1
 
*************************
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...