saboor Posted March 7, 2016 Share Posted March 7, 2016 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 More sharing options...
saboor Posted March 7, 2016 Author Share Posted March 7, 2016 For your more information I have updated my wire/config.php without database path and database socket but still it is not working properly. Link to comment Share on other sites More sharing options...
szabesz Posted March 7, 2016 Share Posted March 7, 2016 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-serverOr 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 movingAnyway, 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. 2 Link to comment Share on other sites More sharing options...
Christophe Posted March 7, 2016 Share Posted March 7, 2016 Hello saboor, Please don't update /wire/config.php. Update /site/config.php where you can add things found in /wire/config.php and modify them. You won't have to bother about the /wire/ folder upgrade. 2 Link to comment Share on other sites More sharing options...
saboor Posted March 19, 2016 Author Share Posted March 19, 2016 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? 1 Link to comment Share on other sites More sharing options...
szabesz Posted March 19, 2016 Share Posted March 19, 2016 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 More sharing options...
saboor Posted March 23, 2016 Author Share Posted March 23, 2016 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 More sharing options...
szabesz Posted March 24, 2016 Share Posted March 24, 2016 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? 2 Link to comment Share on other sites More sharing options...
saboor Posted March 24, 2016 Author Share Posted March 24, 2016 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 More sharing options...
LostKobrakai Posted March 24, 2016 Share Posted March 24, 2016 The blue-vr template should probably also work with 2.7 as there weren't any mayor changes, like with 3.0, just try it with that version. Link to comment Share on other sites More sharing options...
szabesz Posted March 24, 2016 Share Posted March 24, 2016 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 More sharing options...
saboor Posted March 26, 2016 Author Share Posted March 26, 2016 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 More sharing options...
BitPoet Posted March 26, 2016 Share Posted March 26, 2016 Also, since opcache is enabled, make sure that opcache.use_cwd is enabled. Otherwise, strange things may happen. 1 Link to comment Share on other sites More sharing options...
szabesz Posted March 26, 2016 Share Posted March 26, 2016 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 More sharing options...
LostKobrakai Posted March 26, 2016 Share Posted March 26, 2016 Opcache (as really any cache) is useful for production sites, but the least in development. 1 Link to comment Share on other sites More sharing options...
saboor Posted March 26, 2016 Author Share Posted March 26, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now