mysql – PHP, which was loaded into a subdirectory, has a much slower TTFB than in root

I'm using two identical Azure web application services (IIS) with PHP 7.3 and 32 bits.

On webservice1.comI have WordPress installed in the root. This has a TTFB of 225,24ms,

On webservice2.comI have copied all WordPress files from the internet webservice1.com roots in webservice2.com/blog, I now have a TTFB of 7.88 seconds, This problem occurs every time you load PHP pages on webservice2.com/blog. webservice2.com Contains a number of static content in the root directory and in other subdirectories.

Why could that be? Both refer to the same Azure database for mySQL servers, MySQL Version 5.7.

I'm working on it right now, so I do not have much server experience. I would appreciate any insight, having dealt with it for about a day.

Note: I am familiar with the configuration steps to move WordPress sites between domains and the required database changes. I'm not asking about this process. This problem persists even when I make these changes.

Thanks a lot!

Ag.algebraic geometry – root lattice and (resolutions of) singular cubic surfaces

(Cross-posted by math.SE because I'm not sure which platform is suitable)

Given a smooth cubic surface $ X $ (Say over $ mathbb {C} $) as an explosion of $ mathbb {P} ^ 2 $ at the $ 6 $ Points) with Neron-Severi group $ NS (X) $ and canonical divider $ K_X $, the subset $ R = { alpha in NS (X): alpha. K_X = 0, alpha. alpha = -2 } $ is the root system of the Weyl group of $ E_6 $, I understand that there are previous questions about this grid on this site (for example, https://math.stackexchange.com/questions/1477220/27-lines-on-a-cubic-surface?rq=1 and https : // math.stackexchange.com/questions/82199/automorphism-group-of-the-configuration-of-lines-on-a-cubic-surface-and-quadrati?rq=1), but I could not find one Explanation of what happens Singular cubic surfaces (on this site or other sources).

Let's take a closer look $ varphi: X & # 39; longrightarrow X $ is a "minimal" resolution of singularities of a singular cubic surface $ X $ with rational colons as singularities. Suppose that $ X subset mathbb {P} ^ 3 $ has rational colons as singularities. For the sake of simplicity we will take $ X $ to have only one singular point (which we consider to be one) $ (1: 0: 0: 0) $) with singularity type $ A_1 $ or $ A_2 $, Then, for which sublattice of the root system described above $ X & # 39; $ Do the components of the extraordinary divider produce this resolution?

Under the above conditions, we can write $ X = (f = 0) $ With $ f (t_0, t_1, t_2, t_3) = t_0 g_2 (t_1, t_2, t_3) + g_3 (t_1, t_2, t_3) $ for some homogeneous polynomials $ g_2 $ and $ g_3 $ of the degree $ 2 $ and $ 3 $ each (listed in many sources, such as in Section 9.2 of Dolgachev's classical algebraic geometry).

In that $ A_2 $ Case I tried to look at $ (- 2) $– Curves resulting from two consecutive explosions of three collinear points (blow up one point and then one point on the extraordinary divider in the next explosion). We repeat this for two collinear triple points. I do not know how to get a subgrid from $ R $ (built for $ X & # 39; $), which follows the above information. I think that is, I have to better understand "usual" generators for the root lattice in the sleek case. For example, what do classes in $ X & # 39; $ come from line classes passing through the singular point in $ X $ look like? Are there any suggestions on how to proceed in this situation (or even in the $ A_1 $ case or other singularity types)?

apache2 – How to set the document root under LAMP cPanel to the user's public_html?

I've just opened a new VPS hosting account with a hosting company that I have not used before, and I can not get the server to get the public_html directory in my user account's home directory. The server only delivers the files from / var / www / html.

I went back for a moment and opened a new VPS account. The hosting service gave me root access to WHM. From WHM I have created a new user named "admin_bob" with the domain "mysite.com". I put a hello_world.html in the public_html directory of admin_bob and in the directory / var / www / html (I inserted a small text in the html file to distinguish the two). When I go to mysite.com/hello_world.html, I see the file from / var / www / html.

When I go to cPanel and click on domains (under the category Domains), the document root for the domain "mysite.com" is clearly displayed as / home / admin_bob / public_html.

What do I have to do to get the web server to retrieve hello_world.html from the public_html directory of admin_bob (/ home / admin_bob / public_html)?

The server is a LAMP with CentOS 7.

Files in the root desktop can not be moved

I have logged in as the root user so I can drag all user files into a folder and then transfer them to an external hard drive. I had no problem moving files to the root desktop, but trying to move, copy, or even delete files from the desktop results in a dialog box that does not show any progress before moving, even if you try to to move an empty test folder. I think this might be due to a permissions bug because the root user desktop is located in / macintosh hd / private / var / root / desktop / and the private folder is hidden. How do I get around this problem?

Multi-Sites – How do I add a file to the root in the multi-site installation?

I have a multisite setup.

public html
 - Sites 
 - - All
 - - site1.com
 - - site2.com
etc.

I need to store txt files in the root of every web site, such as: For example, site1.com/ads.txt or site2.com/robots.txt

When I upload to public_html, the txt file can be accessed on all sites of the installation. If I install in the folder for individual files, the txt file will be displayed as site1.com/sites/site1.com/files/filename.txt.

How can I view the .txt file in the root of site1.com but not on site2.com?

Thank you for any help.

mysql – MariaDB fails to reset the lost root password

I'm using a local copy of MariaDB on OS X. It works fine, but I forgot my root password (yes, I know) and the usual reset fails like this:

$ mysqld_safe ‐‐skip-grant-tables &
(1) 22120
$ 190818 13:47:37 mysqld_safe Logging to '/usr/local/var/mycomputername.err'.
190818 13:47:37 mysqld_safe Starting mysqld daemon with databases from /usr/local/var

So far, so good? However, I do not get a mysql prompt, and when I press Enter, I return to the CL prompt. Then enter (as root user):

mysql -u root

gives:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

So I can not get in without a password and can not continue to reset the default password.

The error logs show:

2019-08-18 12:38:44 4527658432 (Note) Plugin 'FEEDBACK' is disabled.
2019-08-18 12:38:44 4527658432 (ERROR) Could not open mysql.plugin table. Some plugins may be not loaded
/usr/local/bin/mysqld: Too many arguments (first extra is '‐‐skip-grant-tables').
2019-08-18 12:38:44 4527658432 (ERROR) Aborting

I can not update user set plugin='' where User='root'; since I can not get mysql shell.

mysql – MariaDB can not reset the lost root password as usual

I'm preparing a local copy of MariaDB on OS X (already working with a local developer site) for a data dump and forgetting my root password (stupid, I know).

However, the usual reset password fails as follows:

$ mysqld_safe ‐‐skip-grant-tables &
(1) 22120
$ 190818 13:47:37 mysqld_safe Logging to '/usr/local/var/mycomputername.err'.
190818 13:47:37 mysqld_safe Starting mysqld daemon with databases from /usr/local/var

So far, so good? However, I do not get a mysql prompt, and when I press Enter, I return to the CL prompt. Then enter (as root user):

mysql -u root

gives:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

So I can not get in without a password and can not continue to reset the default password.

Error Log:

2019-08-18 12:38:44 4527658432 (Note) Plugin 'FEEDBACK' is disabled.
2019-08-18 12:38:44 4527658432 (ERROR) Could not open mysql.plugin table. Some plugins may be not loaded
/usr/local/bin/mysqld: Too many arguments (first extra is '‐‐skip-grant-tables').
2019-08-18 12:38:44 4527658432 (ERROR) Aborting

But I can not update user set plugin='' where User='root'; because I can not get into a mysql shell.

In addition to problems

  • I also have a MySQL process that I can not kill
  • The .pid (renamed every time) can not be found.