Load problem - Help with server / xenforo optimization

Great, now go to AdminCP > Options > Search Engine Optimisation (SEO).
Disable the "Include Content Title in URLs" option and start clicking on various forum titles and thread links, while watching the logs. Let me know if you get any errors.
 
Ok I'm browsing the forum now by myself and I don't see any more errors coming up in the apache error log.
 
Great, now go to AdminCP > Options > Search Engine Optimisation (SEO).
Disable the "Include Content Title in URLs" option and start clicking on various forum titles and thread links, while watching the logs. Let me know if you get any errors.
Done, no errors anywhere, everything looks normal.
 
It doesn't seem to be there:

cat: /etc/httpd/conf.d/mod_fastcgi.conf: No such file or directory
 
Hm, I just got an error in the apache log:

Code:
[Sun Aug 04 10:29:04.118153 2013] [:warn] [pid 24898] (104)Connection reset by peer: [client 94.68.124.205:49592] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.google.gr/url?sa=t&rct=j&q=%CF%80%CE%BF%CF%83%CE%BF%20%CE%B5%CF%87%CE%BF%CF%85%CE%BD%20%CF%84%CE%B1%20%CE%B5%CE%B9%CF%83%CE%B7%CF%84%CE%B7%CF%81%CE%B9%CE%B1%20%CE%B3%CE%B9%CE%B1%20%CF%81%CF%89%CE%BC%CE%B7&source=web&cd=3&ved=0CFIQFjAC&url=http%3A%2F%2Fwww.travelstories.gr%2Fcommunity%2Fthreads%2F%25CE%25A0%25CF%2581%25CF%258E%25CF%2584%25CE%25B7-%25CF%2586%25CE%25BF%25CF%2581%25CE%25AC-%25CF%2583%25CF%2584%25CE%25B7-%25CE%25A1%25CF%258E%25CE%25BC%25CE%25B7.26201%2F&ei=7gH-UaGYDceW0AXYsICABg&usg=AFQjCNHTlAJHT1qgAvhA_wpz0sOZyD0gOQ
 
Paste the output of these commands:

Here we go:

Code:
Linux sigmavps99.swserver86.gr 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 03:34:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Code:
CentOS release 6.4 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)

Code:
/bin/ls: cannot access /etc/httpd/conf.d: No such file or directory

Code:
cat: /etc/httpd/httpd.conf: No such file or directory
 
Alright these two give us:

Code:
lrwxrwxrwx. 1 root root 17 Mar  1  2012 /etc/httpd -> /usr/local/apache/

and

Code:
2.1M    /etc/httpd/bin
348K    /etc/httpd/build
12K    /etc/httpd/cgi-bin
3.0M    /etc/httpd/conf
376K    /etc/httpd/conf_pre_ea3
217M    /etc/httpd/domlogs
212K    /etc/httpd/error
0      /etc/httpd/etc
56K    /etc/httpd/htdocs
944K    /etc/httpd/icons
1.7M    /etc/httpd/include
1.2M    /etc/httpd/lib
200M    /etc/httpd/logs
116K    /etc/httpd/man
22M    /etc/httpd/manual
32M    /etc/httpd/modules
 
Here are the contents:

Code:
4.0K    /etc/httpd/conf/access.conf
64K    /etc/httpd/conf/extra
80K    /etc/httpd/conf/httpd.conf
80K    /etc/httpd/conf/httpd.conf.bak
8.0K    /etc/httpd/conf/httpd.conf.datastore
16K    /etc/httpd/conf/httpd.conf.ea-make-install
24K    /etc/httpd/conf/httpd.conf.ea-make-install,v
80K    /etc/httpd/conf/httpd.conf.ea-orig
80K    /etc/httpd/conf/httpd.conf.easyapache_save
148K    /etc/httpd/conf/httpd.conf,v
12K    /etc/httpd/conf/includes
16K    /etc/httpd/conf/magic
52K    /etc/httpd/conf/mime.types
4.0K    /etc/httpd/conf/modsec2.conf
4.0K    /etc/httpd/conf/modsec2.conf.cpbackup1
4.0K    /etc/httpd/conf/modsec2.conf.cpbackup2
4.0K    /etc/httpd/conf/modsec2.conf.cpbackup3
4.0K    /etc/httpd/conf/modsec2.conf.cpbackup4
4.0K    /etc/httpd/conf/modsec2.conf.cpbackup5
12K    /etc/httpd/conf/modsec2.conf,v
4.0K    /etc/httpd/conf/modsec2.user.conf
28K    /etc/httpd/conf/modsec2.user.conf.default
0      /etc/httpd/conf/modsec2.user.conf.none
4.0K    /etc/httpd/conf/modsec2.whitelist.conf
2.1M    /etc/httpd/conf/modsecurity.d
104K    /etc/httpd/conf/original
4.0K    /etc/httpd/conf/php5.version
4.0K    /etc/httpd/conf/php.conf
4.0K    /etc/httpd/conf/php.conf.cache
4.0K    /etc/httpd/conf/php.conf.yaml
4.0K    /etc/httpd/conf/php.version
4.0K    /etc/httpd/conf/sites
4.0K    /etc/httpd/conf/srm.conf
8.0K    /etc/httpd/conf/ssl.crt
8.0K    /etc/httpd/conf/ssl.key
 
Hm , I'm changing the putty window's settings to allow for bigger scrollback but I still can't get the full httpd.conf. The part I get is attached in the .txt (too big for xenforo post)


and for the php:

Code:
# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
#
# Manual edits of this file will be lost when Apache is updated.


# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/mod_fcgid.so
MaxRequestsPerProcess 500
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml

# End of autogenerated PHP configuration.
 

Attachments

OK, so we then know that all directives set in /etc/httpd/conf/php.conf are wrong.
Apache 2.4.x uses now Fcgid directives:
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

I have ZERO experience with CraPanel, it has to be a way in your interface to define the proper directives:
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.

This is what you should have minimal, from my limited experience with Apache:
LoadModule fcgid_module modules/mod_fcgid.so
AddHandler fcgid-script .php
FcgidMaxRequestsPerProces 100
FcgidIOTimeout 7200
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php
You will have to contact your host how to setup the proper configuration or rely on other experienced forums users, as I'm not one of them when it comes to panels. The fact that cPanel uses deprecated directives brings the following words to my mind: crap, useless, garbage, etc. Not to mention the crazy locations...

Anyways, back to your forum testing.
Go to AdminCP > Options > Search Engine Optimisation (SEO).
Enable the "Include Content Title in URLs" option.
Go to AdminCP > Options > Basic Board Information.
Enable the "Romanize Titles in URLs" option and start clicking on various forum titles and thread links, while watching the logs. Let me know if you get any errors.
 
Last edited:
Back
Top Bottom