hack3rcon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Why Directory Listing cannot be disabled?Thank you.
Is it OK?<Directory "/var/www/wp"> Options -Indexes AllowOverride All Require all granted </Directory>Forum: Installing WordPress
In reply to: Is this kind of installation OK?Thank you for your help.
Excuse me, how about security? Is it OK?Forum: Installing WordPress
In reply to: Is this kind of installation OK?Is it OK?
<Directory "/var/www/wordpress"> Options -Indexes +FollowSymLinks AllowOverride none Require all granted </Directory>Forum: Installing WordPress
In reply to: Is this kind of installation OK?Thank you.
Are below options good for security?Options Indexes FollowSymLinks AllowOverride all Require all grantedIf above lines are OK, then why I browse “https://MyDomain.net/wp-includes “, I can see the contents of that directory?
Split the Directory block? Is it OK:
<VirtualHost *:80> ServerAdmin root@localhost DocumentRoot /var/www/wordpress ErrorLog /var/log/httpd/wordpress_error.log CustomLog /var/log/httpd/wordpress_access.log common </VirtualHost> <Directory "/var/www/wordpress"> Options Indexes FollowSymLinks AllowOverride all Require all granted </Directory>Forum: Installing WordPress
In reply to: How to disable directory listing in WordPress?Thank you.
Why line two is definitely wrong? I restarted Apache service and its working.
WP scanner showed me:
ImageForum: Installing WordPress
In reply to: How to disable directory listing in WordPress?I added above lines to my Virtual Host config file, but not matter and WP Scanner show the same result 🙁
Forum: Installing WordPress
In reply to: How to disable directory listing in WordPress?Thank you.
How can I do it for HTTPS? Can I use:<VirtualHost *:443> </Directory> <Directory /var/www/WP/wp-content/plugins/contact-form-7> Options -Indexes </Directory> <Directory /var/www/WP/wp-content/plugins/elementor> Options -Indexes </Directory> <Directory /var/www/WP/wp-content/plugins/elementor-pro> Options -Indexes </Directory> <Directory /var/www/WP/wp-content/plugins/email-subscribers> Options -Indexes </Directory> <Directory /var/www/WP/wp-content/plugins/wp-aparat> Options -Indexes </Directory> </VirtualHost>Forum: Everything else WordPress
In reply to: How to solve these problems?Forum: Everything else WordPress
In reply to: How to solve these problems?Thank you so much.
How about Image 2?Forum: Everything else WordPress
In reply to: Update from CLIThank you.
I solved that error.
I have a question. My WordPress website is under “/var/www/wp” directory. I did below command:# /usr/local/bin/wp core update Error: This does not seem to be a WordPress installation. Pass --path=<code>path/to/wordpress</code> or run <code>wp core download</code>.And I know that I must define “–path=/var/www/wp” parameter. Use WP-CLI for update my WordPress website is same as click on update button in WordPress panel?
Forum: Everything else WordPress
In reply to: Update from CLIThank you so much.
I got below error:# php wp-cli.phar --info PHP: syntax error, unexpected '(' in /etc/php.ini on line 1678 OS: Linux 4.18.0-193.14.2.el8_2.x86_64 #1 SMP Sun Jul 26 03:54:29 UTC 2020 x86_64 Shell: /bin/bash PHP binary: /usr/bin/php PHP version: 7.2.24 php.ini used: /etc/php.ini WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: /home/jason WP-CLI packages dir: WP-CLI global config: WP-CLI project config: WP-CLI version: 2.4.0And PHP.ini file on line 1678:
; Local Variables: ; tab-width: 4 ; End: ; X-XSS-Protection header("X-XSS-Protection: 1; mode=block");What is my problem?
Forum: Everything else WordPress
In reply to: Update from CLIThank you.
Is it the official way to install WP-CLI?$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar $ chmod +x wp-cli.phar $ sudo mv wp-cli.phar /usr/local/bin/wp $ wp core download $ wp core install $ wp core check-updateForum: Installing WordPress
In reply to: WordPress directories permission.Did you see any SELinux on that page?
Forum: Installing WordPress
In reply to: WordPress directories permission.Then, is it a good idea if all directories must be writable?
Forum: Installing WordPress
In reply to: WordPress directories permission.Thank you for your help, but I mean was SELinux. Which directories and files must have “httpd_sys_rw_content_t” label?