Permissions for pictures

Hi super genius,

I need help. I transfered from my dedicated server all my websites to a VPS with virtualmin.
All my data are good but some pictures now don’t appear: tumbnails, logos - and it s impossible for my client who login, to transfert jpg from the backoffice to the ftp (as it was possible in the past).

I don’t know which permission to change. I m looking for a solution with my friend, nobody can help us.
Ths website is:
rt2012attestation.com

Who can help me please?

Deby

To start you should change server/hosting company or check your theme & plugins because there is some big problem going on with your site. Full load is over 1 min: http://gtmetrix.com/reports/rt2012attestation.com/q9ExaSip
Page load time: 69.34s
Total page size: 1.66MB
Total number of requests: 110

For the FTP check the ports if they are open and if FTP is running & listening. Next thing check if the files inside the virtual server have right permissions, especially pay attention for user and groups. For example if you upload everything as root user then all files/folders inside that virtual server will be owned by root what will prevent virtual server admin to actually change or edit anything. This is because other accounts dont have permission to edit/delete/change files owned by root user.

Thanks you Diabolico :slight_smile:
Now everything is ok on FTP.
The problem is “the cache levering”. As you told me he web site is very slow.
It not coming from the template but from some setting of php.ini.
I m using wordpress system, is there a specific setting for that?
just take a look on my other website:
controlert2012.fr

They started to run slow after i tried to setup :
/etc/php5/apache2/php.ini Configuration for mod_php Manage
/etc/php5/cgi/php.ini Configuration for scripts run via CGI Manage
/etc/php5/cli/php.ini Configuration for command-line scripts Manage

Do you know how to setup it for wordpress?

To speed up your WP you should use some caching plugin, many people will say W3TC but i found that WP Super Cache is better and faster (idk up to you, see and test for yourself). Second i would focus on MySQL. Find on google “mysqltuner.pl” and “tuning-primer.sh” and use them to fine tune your DB. If you still have problems cut your plugins and check or even change your theme. Push your JS to load from foother instead of header and compress anything what can be compressed. Once you done then it start real Don Quijote and chasing the windmills, e.g. any further step can help if you know what to do or its just waste of time.

I tested with another website: www.webpagetest.org/result/150619_PK_7896bebe21d53a214638b27510fd48d2/.
How you can see is not great but i suspect is not only your website, to be so slow it could easily be the server - overselling to hell or drivers are close to start failing (or maybe they are not server grade/quality)

Another thing keep to keep in mind sometimes CDN can actually slow down your website instead of speed up, tested and proven so many times. For example, if you have decent/good server located in EU and your goal is people from EU you dont need CDN. Aside of this CloudFlare is not real CDN, if you want something good you will pay and a lot. To support this, check my test website build on WP and without CDN or even SSD: i.imgur.com/WX40WWr.jpg.

My advice revert back any changes and start with my suggestion and see where you will end. Either way you should see what is going on with your websites as right now they are just too slow.

Many thanks Diabolico :slight_smile:
you were right about Cloudfare.
I keep all your advices, they are very useful.

Kissxxxx

To make you easy start try next settings for MySQL (my.cnf file):

JUST REMEMBER THIS ARE SOME SORT OF DEFAULT SETTINGS AND YOU WILL NEED TO FINE TUNE THEM, ITS USING INNODB NOT MYISAM, AND CHECK THE LINKS TO MATCH YOUR OS. Use both scripts i mentioned earlier in my post but before any change wait at least 24 hours, best results would be 2-3 days (need to repeat until you are satisfied with all results)

For: 2GB of memory
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /mysql/
datadir = /data01/data
tmpdir = /tmp
thread_cache_size = 64
table_cache = 64
key_buffer = 64M
sort_buffer_size = 256K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
max_allowed_packet = 1M
tmp_table_size=16M
max_heap_table_size=16M
query_cache_size=64M
query_cache_type=1
log_output=FILE
slow_query_log_file=/mysql/slow1.log
slow_query_log=1
long_query_time=3
log-error=/mysql/error.log
innodb_data_home_dir = /data01/data
innodb_data_file_path = ibdata1:1000M:autoextend
innodb_buffer_pool_size = 768M
innodb_additional_mem_pool_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_support_xa = 0
innodb_lock_wait_timeout = 50
innodb_flush_method=O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 8

For: 4GB of memory
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /mysql/
datadir = /data01/data
tmpdir = /tmp
thread_cache_size = 64
table_cache = 64
key_buffer = 64M
sort_buffer_size = 256K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
max_allowed_packet = 1M
tmp_table_size=16M
max_heap_table_size=16M
query_cache_size=64M
query_cache_type=1
log_output=FILE
slow_query_log_file=/mysql/slow1.log
slow_query_log=1
long_query_time=3
log-error=/mysql/error.log
innodb_data_home_dir = /data01/data
innodb_data_file_path = ibdata1:1000M:autoextend
innodb_buffer_pool_size =2048M
innodb_additional_mem_pool_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_support_xa = 0
innodb_lock_wait_timeout = 50
innodb_flush_method=O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 128M
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 8

For: 8GB of memory
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /mysql/
datadir = /data01/data
tmpdir = /tmp
thread_cache_size = 128
table_cache = 256
key_buffer = 64M
sort_buffer_size = 256K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
max_allowed_packet = 1M
tmp_table_size=32M
max_heap_table_size=32M
query_cache_size=128M
query_cache_type=1
log_output=FILE
slow_query_log_file=/mysql/slow1.log
slow_query_log=1
long_query_time=2
log-error=/mysql/error.log
innodb_data_home_dir = /data01/data
innodb_data_file_path = ibdata1:1000M:autoextend
innodb_buffer_pool_size = 5120M
innodb_additional_mem_pool_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_support_xa = 0
innodb_lock_wait_timeout = 50
innodb_flush_method=O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 8

If you have more than 8GB i can check if i have some settings for that. But remember this is not optimal, and you will need to spend some time to fine tune your MySQL.

Dear Diabolico,

Where could i find my.cnf file?
What does 2GB, 4GB, 8GB? The RAM ?

Thkx

Dear Dabolico,

I did everthing you told me, but my mails don’t go out.
Could you help me?
I open a new topic if you care:
https://virtualmin.com/node/37436

You will find several topics where i help others about emails. Check the forum please.