Jump to content

Search the Community

Showing results for tags 'apache'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome
    • Announcements & News
    • New Arrivals
  • Web Development
    • Programming
    • Database Development
    • Server Administration
    • Hosting & Domains
    • Frameworks
  • Web Design
    • HTML & CSS
    • Graphics & Multimedia
  • Desktop Discussion
    • Linux Development
    • Windows Development
    • Mac/Apple Development
    • Hardware Discussion
  • Marketing & Business
    • Advertising, Marketing, Monetization & Social Media
    • Search Engine Optimization & Traffic Building
    • Buy, Sell or Trade
  • Prodjex Web Development Applications, Tools and Plugins
    • IP.Board Applications and Plugins
    • Web Tools
  • The Developer Dump
    • General Chat

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. Recently a client buy a VPS at 1&1 and I moved the Worpress site from old shared hosting (Bluehost) to new VPS. The site is extremely slow and I don't know how to fix this meaning where to attack, if I should optimize something in Apache, if I should install some plugin to avoid this or something else so I need some advice. Some data around that WP: Database hold around 35k posts I have disable W3C Total Cache plugin since I think is miss configured and can slow down the site I have not using any image compressor like thimbthumb (this was installed in first but due to security reasons I remove from the site) The VPS has two cores and 4GB of RAM and it's running Centos, PHP 5.3.3, MySQL 5.5.x and Apache 2.2.15 Can any give me some ideas? Advice? Experience? I understood what this article told me, but still: https://smartclick.mk/why-is-my-wordpress-site-so-slow/. Do not know what else to do or how to attack this problem and my knowledge does not come so far on this. Performing Tests: In order to find the bottleneck I've enabled: Wordpress Debug Logs: define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); This logs most of the time errors like this [13-Feb-2015 12:01:46] PHP Notice: Undefined property: stdClass::$category_parent in /var/www/vhosts/elclarinweb.com/httpdocs/sistema/wp-content/themes/elclarin_v2/functions.php on line 136 MySQL logs: mysql.log, mysqld.log and mysqld_slow.log For mysql.log I've noticed a tons of access and for mysqld_slow.log I've noticed the following output: SET timestamp=1423830131; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # User@Host: elclarin_us[elclarin_us] @ localhost [] # Query_time: 0.001520 Lock_time: 0.000043 Rows_sent: 227 Rows_examined: 261 SET timestamp=1423830131; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150213 13:22:14 # User@Host: elclarin_us[elclarin_us] @ localhost [] # Query_time: 0.003051 Lock_time: 0.000097 Rows_sent: 227 Rows_examined: 261 SET timestamp=1423830134; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # User@Host: elclarin_us[elclarin_us] @ localhost [] # Query_time: 0.003259 Lock_time: 0.000097 Rows_sent: 227 Rows_examined: 261 SET timestamp=1423830134; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150213 13:22:15 # User@Host: elclarin_us[elclarin_us] @ localhost [] # Query_time: 0.001597 Lock_time: 0.000048 Rows_sent: 227 Rows_examined: 261 Why the same query is executed all the time? Any web server thread is killing my Wordpress?
  2. I know this is a pretty basic thing, but I've seen so many tutorials out there that are non-dynamic solutions. Normally when you google "How to force HTTPS using an .htaccess file" or "Redirect HTTP to HTTPS using an .htaccess file" you get examples like the below. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] This does work, but you have to replace www.example.com with your domain and it's then hard-coded and not dynamic. I don't like hard-coding anything unless it's absolutely necessary, so here's an example of the dynamic way to redirect to https from http requests using your htaccess file. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] View the Prodjex Blog post on How To Force HTTPS Using .Htaccess.
  3. In Laravel the path for serving your web page is in the /public folder. By default after installing Laravel and navigating in a browser to the URL you will see a directory listing of all the Laravel files. Here’s an easy way using an .htaccess file to redirect requests to the Laravel /public folder user mod_rewrite. Create a .htaccess file in your root directory and add the following code. RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] Save your file and refresh your browser, you should now see the default Laravel splash page.
×
×
  • Create New...