Author Topic: How to install wordpress to linux server  (Read 21356 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Re: How to install wordpress to linux server
« Reply #15 on: January 02, 2016, 05:28:49 PM »
are you running mod_security in apache?

Offline
*
Re: How to install wordpress to linux server
« Reply #16 on: January 03, 2016, 04:45:43 PM »
Hi

 Indeed that was the culprit. I haven't figure that yet. The log show me the 950117 was denied. I put some rules, as found over the forum, in mod security :
http://forum.centos-webpanel.com/mod_security/enable-mod_security-for-wordpress/
http://forum.centos-webpanel.com/mod_security/enable-mod_security-for-wordpress/

 But don't know if it's better to just enable the one show in the Security log each time it pop out or to config as this post..?

 Also, after a reboot, the apache web server can't autostart.. is there an option to ?

Thanks again

Offline
**
Re: How to install wordpress to linux server
« Reply #17 on: January 03, 2016, 07:36:34 PM »
You can auto start http by going to Services Cofig -> ChkConfig and make sure http is set to on for run levels 2 through 5.

Yes you often have to disable rules 1 by 1. I did this an wound up with the following mod_sec Disabled rules (works with Jetpack and W3 total Cache and some other plugins):

Code: [Select]
## Rules for the CWP ##
SecRuleRemoveById 910006
SecRuleRemoveById 950000
SecRuleRemoveById 950001
SecRuleRemoveById 950005
SecRuleRemoveById 950006
SecRuleRemoveById 950117
SecRuleRemoveById 950907
SecRuleRemoveById 958039
SecRuleRemoveById 958051
SecRuleRemoveById 958291
SecRuleRemoveById 959006
SecRuleRemoveById 959151
SecRuleRemoveById 960008
SecRuleRemoveById 960010
SecRuleRemoveById 960011
SecRuleRemoveById 960012
SecRuleRemoveById 960035
SecRuleRemoveById 960335
SecRuleRemoveById 960904
SecRuleRemoveById 960915
SecRuleRemoveById 970003
SecRuleRemoveById 970015
SecRuleRemoveById 970903
SecRuleRemoveById 973301
SecRuleRemoveById 973302
SecRuleRemoveById 973306
SecRuleRemoveById 973316
SecRuleRemoveById 973330
SecRuleRemoveById 973331
SecRuleRemoveById 973332
SecRuleRemoveById 973334
SecRuleRemoveById 973335
SecRuleRemoveById 973336
SecRuleRemoveById 973344
SecRuleRemoveById 973347
SecRuleRemoveById 981172
SecRuleRemoveById 981240
SecRuleRemoveById 981241
SecRuleRemoveById 981244
SecRuleRemoveById 981248
SecRuleRemoveById 981249
SecRuleRemoveById 981255
SecRuleRemoveById 981256
SecRuleRemoveById 981260
SecRuleRemoveById 981317
SecRuleRemoveById 981318
SecRuleRemoveById 981319
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
SecRuleRemoveById phpids-17
SecRuleRemoveById phpids-20
SecRuleRemoveById phpids-21
SecRuleRemoveById phpids-30
SecRuleRemoveById phpids-61
## Rules for the CWP ##
SecRuleRemoveById 960017
SecRuleRemoveById 960015
SecRuleRemoveById 960009
########################################
## Removed Rules for Joomla, WordPress and Drupal CMSs ## ########################################
## Joomla ##
SecRuleRemoveById 950120
SecRuleRemoveById 950901
SecRuleRemoveById 960024
SecRuleRemoveById 973300
SecRuleRemoveById 973304
SecRuleRemoveById 973333
SecRuleRemoveById 973338
SecRuleRemoveById 981173
SecRuleRemoveById 981245
SecRuleRemoveById 981257
## Wordpress ##
SecRuleRemoveById 950007
SecRuleRemoveById 950010
SecRuleRemoveById 950911
SecRuleRemoveById 958005
SecRuleRemoveById 958006
SecRuleRemoveById 958030
SecRuleRemoveById 958049
SecRuleRemoveById 958056
SecRuleRemoveById 958057
SecRuleRemoveById 959070
SecRuleRemoveById 959073
SecRuleRemoveById 960020
SecRuleRemoveById 973308
SecRuleRemoveById 973309
SecRuleRemoveById 973314
SecRuleRemoveById 973327
SecRuleRemoveById 959071
SecRuleRemoveById 959072
SecRuleRemoveById 981004
SecRuleRemoveById 981242
SecRuleRemoveById 981243
SecRuleRemoveById 981246
SecRuleRemoveById 981320
## Drupal ##
SecRuleRemoveById 981231
## Removed rules for the webftp_simple ##
SecRuleRemoveById 950109
SecRuleRemoveById 950922
SecRuleRemoveById 981000
## phpMyAdmin ##
SecRuleRemoveById 981205
SecRuleRemoveById 970901

Offline
*
Re: How to install wordpress to linux server
« Reply #18 on: October 19, 2017, 08:48:32 PM »
I'm running into a few issues.

I have successfully migrated wordpress to a centos7 server a few times from my hosted server.

I'm trying with CWP for the first time and seem to have a problem, the HTTP test page continues to load even after I deleted the Index.html file.

I have deleted everything from the public_html folder and readded my wordpress files.
I have modified the wp_config file to reflect the new database which I imported from my live site.

Still unable to load the wordpress site no matter which urls I use. I have restarted the HTTP service and rebooted the sql database still no luck.
Anyone able to help me on this issue?
« Last Edit: October 19, 2017, 08:59:36 PM by mattie14 »