Questions tagged [linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
22 views

Updating wordpress from my Linux distro's repository

I installed wordpress with apt, which ties in a lot of directories, so I suspect that using the built-in core update tool will break the installation; but wordfence constantly demands that I update ...
0
votes
3answers
94 views

WordPress sites being filled with random PHP files

Two weeks ago when I tried to access one of my WordPress sites through the browser, I was redirected to an ad page. I went inside of the public_html directory and found tons of PHP files with random ...
0
votes
1answer
1k views

WordPress Update - This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

I have some WordPress websites server with root access, and at the time of creating the server, everything was fine and WordPress itself and plugins and themes were updating without any issues, but I'...
0
votes
1answer
288 views

Problems fixing a REST API 404 after Moving my WordPress Directory and updating Permalink Structure

I am running a self-hosted version of WordPress on a Linode VPS running Debian 9. I was previously using WordPress on a /blog directory because I had a basic HTML site that I decided not to keep any ...
0
votes
0answers
6 views

Setup WordPress and Linux [Debian] user at the same time

How can I create a WordPress user, and a Linux user at the same time, with the same password? Perhaps it might require something like exec(). This would be particularly useful for admins. I couldn't ...
0
votes
1answer
5k views

PHP Warning: chmod(): Operation not permitted in class-wp-filesystem-direct.php on line 173

I running an instance of Wordpress on my web server but I'm getting this error in the logs PHP Warning: chmod(): Operation not permitted in /home/webserver/html/wp-admin/includes/class-wp-filesystem-...
-1
votes
2answers
276 views

Carriage Return control character (^M) found in wp-config-sample.php

On a fresh WordPress install in Linux distributions, wp-config-sample.php contains Carriage Return control characters that are not found in any other .php file in the distribution. Running egrep -l $'\...
0
votes
1answer
34 views

Error establishing a database connection - Wordpress setup, everything else is working

Setting up a LAMP stack with Wordpress on a home machine and port forwarding so I can host it on the Internet. Everything seems to have gone ok so far, except when I browse to the IP I see the error ...
0
votes
0answers
128 views

How to configure both webserver and appserver for WordPress CMS?

I would like to use both web server and appserver for WordPress so that Appserver and db server should comes under private network. Since WordPress has only apache please let me know the communication ...
0
votes
1answer
148 views

How to remove all plugins, posts, pages, and inactive themes in one line with wp-cli? WordPress bloatware removal

Softaculous seems to always adds junk to the installs I don't want. Such as example posts, pages, plugins, and starter themes. How do I remove them all for a fresh start?
0
votes
0answers
571 views

WP_Fatal_Error_Handler OR WP_Error OR try/catch

A process into my plugin provoke a fatal error in Linux Server which I have not access, for example to define a WP_DEBUG_LOG. I could identified the conflict in the event related to generate an jpeg ...
0
votes
0answers
35 views

Wordpress cloning issue

I have cloned my wordpress website abc.com using duplicator plugin. The clone is successfully installed and working on my other domain abccopy.com. But abc.com/wp-login.php page has a background image ...
0
votes
1answer
16 views

How to edit content in WordPress and the Polylang – plugin? – with demosite

hello dear user, hello dear developer, the question; How to edit content in WordPress and the Polylang - plugin? first of all: i love PolyLang for its powerful features and the versatile options ...
1
vote
0answers
10 views

What happen after new plugin get installed in term of permissions?

Using Ubuntu to host WordPress, I am wondering about permissions of files for newly installed plugin, how would they be executable? permissions for the folder that has the wordpress installation: ...
1
vote
2answers
2k views

.htaccess file missing from Wordpress install directory

This is occuring on my local machine, Lubuntu 18.04 with apache2 and Php 7.2.15. Steps tried: Enable hidden files No .htaccess file seen: https://nimb.ws/4YJfDT Switch permalink structure to ...
0
votes
2answers
4k views

Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3

I host my own WP site on a Debian/Raspbian buster server. I upgraded PHP 7.1 to 7.3 and the site broke. I can't understand why it broke because mysql_connect() is deprecated for 7.x (though wp-db....
1
vote
3answers
174 views

Transferring contact form input to an email account without using an email-proxy

On a virtual private server machine (Ubuntu 16.04) which I self-host on DigitalOcean I use an all-default and latest Debian stable with all-default and latest Apache, MySQL and PHP to host my ...
3
votes
1answer
704 views

Wordpress can't find temporary folder, but folder it's looking at has correct permissions

So, I've spent a couple of hours looking around the internet to try to figure out this problem, since it seems like a dumb one that would probably be a duplicate, but apparently it isn't. I'm hosting ...
0
votes
2answers
1k views

Most efficient way to trigger wp-cron through system cron.

I have recently decided it would be best if i disable the built in wordpress cron function and move to the system cron which will activate the wordpress cron every 15 minutes. I am wondering which ...
1
vote
1answer
1k views

Image rotation and editing stopped working in Wordpress after upgrading Ubuntu from 16.04 to 18.04

I'm seeing this error in Wordpress Media editor: "Image rotation is not supported by your web host." I checked on my server and I have php7-gd: php -i | grep -i gd /etc/php/7.2/cli/conf.d/20-gd....
0
votes
1answer
343 views

how to properly mount external server directory for wordpress uploads

I have multiple servers I am using for my wordpress site, each server has its own purpose. Currently I have a server that I want to use for all of wordpress file uploads, this way nothing is saved on ...
0
votes
1answer
1k views

How to fix wp-login.php gives error 500 after migration?

I have migrated a word press site to a self hosted linux server. My front page and all other pages load however images are still pointing to my old server. My wp-login.php page also gives an error 500....
0
votes
2answers
280 views

How to configure Wordpress Database for CentOS 7

I'm trying move an existing Wordpress site to run across two different servers, one with Apache and the main source code and the other that just has the database running on MYSQL. wp-config: define('...
0
votes
2answers
1k views

Wordpress failing to update plugins

After cloning my wordpress site and fresh install of it i encountered problem. Plugins won't update. I'm working in Linux environment (Ubuntu). I've tried multiple solutions but still without positive ...
1
vote
3answers
1k views

WP Admin missing icons, numerous JavaScript errors, but only when SCRIPT_DEBUG is false

I have access to a single Linux/Apache server where I'm trying to deploy WordPress. For purposes of this error, I've tested it with the default twentyseventeen theme and all plugins disabled. When I ...
0
votes
0answers
21 views

How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?

How come there is no error if I upgrade WordPress core after locking .htaccess' permissions to 644? I upgrade WordPress this way basically: wp plugin update --all wp core update wp language core ...
0
votes
0answers
56 views

A plugin changes my .htaccess file and I can't access httpd.conf as that's a shared server

In a CentOS with Bash A WordPress plugin (most likely WordFence) changes my .htaccess file by deleting extraneous (Apache PCRE) directives I've added there, and I can't access httpd.conf to add them ...
0
votes
0answers
1k views

403 Forbidden home on localhost with nginx server

I install wordpress in nginx server on my localhost using debian OS, install is normally. But I only can login to my dashboard using localhost/statistik/wp-admin/index.php not in localhost/statistik/...
0
votes
1answer
544 views

Move site root directory on debian

I installed WordPress on Debian using this article from the Debian Wiki. My wp.conf looks like Alias /wp/wp-content /var/lib/wordpress/wp-content Alias /wp /usr/share/wordpress <Directory /usr/...
0
votes
1answer
26 views

Fastest way to install a multisite?

I setted up a Ubuntu-Nginx VPS machine with phpmyadmin and WP-CLI. I'm ready to start working with WordPress. What's the fastest way to install a multisite? Maybe with WP-CLI, maybe there's a ready, ...
1
vote
1answer
867 views

Shortest way to install WP-CLI

That's the shortest way I know to install the WordPress shell extension WP-CLI: curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +...
2
votes
1answer
318 views

Can't upload media to my Raspberry Pi Wordpress server

Thanks in advance for any useful tips. I'll cut to the chase. I followed these guides to set up my wordpress server: 1 - https://www.techcoil.com/blog/setting-up-wordpress-on-raspberry-pi-3-with-...
0
votes
1answer
967 views

Is Postfix required for WordPress contact forms in general?

If I remember correctly, I could get data from ContactForm7, for example, into my personal Gmail account, without doing apt-get install postfix -y, though I might be wrong and I did install it. I don'...
0
votes
2answers
363 views

A shorter way to automatically update WordPress?

This is how I started to update WordPress daily: cat <<-"CRON_DAILY" > /etc/cron.daily/nses_cron_daily for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp plugin ...
1
vote
2answers
94 views

login wp impossible

well i can access the sites: www.foo.com and www.bar.com but i cannot access the login - the sites are blank. foo.com/wp-login.php bar.com/wp-login.php i have the following logs. [Mon Jan 01 16:...
1
vote
1answer
98 views

Flatten media files in uploads directory via linux terminal eliminating thumbnails?

I need to get the source files (the initial files I have uploaded) of my media library flattening the directory structure and getting rid of the smaller images created by wordpress using linux/mac ...
0
votes
1answer
1k views

wordpress ajax upload media not working

I move my wordpress website to another server that is centos7 and apache web server and everything is ok but ajax upload in media not work. it is ok when i did not use ajax but it has problem with ...
-2
votes
1answer
99 views

Check WordPress size on disk

Is there is any plugin or method to check how much wordpress size is on disk. Let's say I have two different directories (abc.com, abc.com/differentPath) on abc.com domain, and in both directories, ...
0
votes
1answer
874 views

Timthumb isn't displaying any images. "A TimThumb error has occured

I have a Wordpress web site which is hosted on a distributed infrastructure. I have a web server(apache) and a cache server (varnish). When I load the site directly from web server everything is OK, ...
-3
votes
1answer
53 views

Communcation with wordrpess and linux server [closed]

Is there any way to send & receive data between Wordpress & linux server ? What i wants to do is Take data from user from wordpress page Send data to linux server for processing Once ...
1
vote
2answers
334 views

Right permissions to WordPress directory

Knowing that not all files and folders have the same permissions, What are the right permissions in order to avoid hacker attacks and to allow the sites updates and upgrades? My site is installed on ...
2
votes
2answers
11k views

WordPress incorrectly redirects to local IP address?

I have my wordpress server set up using php, mysql, and apache on my raspberry pi. I also have a dynamic dns hostname and configured my router's port forwardiing settings. When trying to access my ...
0
votes
1answer
406 views

Strange special character/Latin characters

We have developed many blogs on wordpress which is hosted on Rackspace server(Red Hat). Last Sunday we worked on user and set 'myuser' to run as PHP. So if we execute echo shell_exec('whoami'); then ...
1
vote
1answer
345 views

Accessing an image folder inside public web directory

I have put a folder in the public web directory of my WordPress installation where I have some images used by a legacy system. Say its located under http://example.com/legacy-images/image1.png. I ...
1
vote
1answer
1k views

Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML

I'm trying to get WordPress running off of a plain Digital Ocean Ubuntu droplet. I'm running Apache, and it serves basic index.html files fine, from my /var/www/html directory. When I unzip the latest ...
-1
votes
2answers
1k views

504/502 errors plauging our site

One of our sites keeps going offline and I'm running out of ideas. It's a wordpress site built with the Avada theme and it's goal is to server as a calendar of events using The Events Calendar plugin. ...
0
votes
1answer
421 views

My WordPress is giving me an 403 error when saving post/draft with specific words

I'm getting a 403 error when trying to save a post/draft on my wordpress site, but it only occurs with specific words like "in(", "is(" or "import". I know that this doesn't seems to be posted on ...
1
vote
2answers
10k views

enable SFTP via SSH keys in wordpress

can anyone help me define('FTP_PUBKEY','/home/use/.ssh/id_rsa'); define('FTP_PRIKEY','/home/user/.ssh/id_rsa'); define('FTP_USER',''); define('FTP_PASS',''); define('FTP_HOST','127.0.0.1:22'); ...
1
vote
1answer
557 views

SELinux security vs Wordpress updates

We have a quite huge Wordpress multi-sites installation with lots of themes/plugins. So we often have new available updates (core/themes/plugins). We don't use automatic updates : ...
0
votes
1answer
37 views

How can I add a row in a table from a Linux Shell?

I'm looking to do some scripting here so I can easily just have an application or script automatically add a row for me without needing me to use the UI and do it manually. Is this possible?