Cannot write to file with fopen() , Permission denied

I get failed to open stream: Permission denied when trying to create a file, or write to a file (if I manually create it first in FTP or SSH).

I’ve looked at many aspects but I don’t find what may be the issue. So maybe it could related to wordpress in some way. The wordress setup is based on Bedrock (with a different folder structure).

Here are the details:

I do an ajax call from the frontend, which reaches a method in the backend, inside a plugin script. The method is an ajax function which is registered with a "wp_ajax_nopriv" action.

Folder path: This script is in /mnt/persist/www/thesite.com/web/app/plugins/theplugin/src/

Owner: The "src" folder and all its parent folders have a certain user, "deploy" as owner.

Permissions: All folders have 755. The file: If I create it manually, I have set it to ‘775’ and deploy as owner.

Current user: If I do get_current_user() inside the ajax method, I get "deploy".

Working directory: If I run getcwd() inside the script however, the working directory turns out to be: /mnt/persist/www/thesite.com/web/wp/wp-admin.

I changed permissions in "src" to 777.

I use "fopen" like this:

$  fp = fopen( $  folderPath . $  filename . '.txt' ,"a" );        if(!$  fp){     die('Error: ' . implode(',',error_get_last())); } 

If I try to create/write to a file in the current directory (not using a folder path), it doesn’t work, and if I try to use the path: /mnt/persist/www/thesite.com/web/app/plugins/theplugin/src/ (which is verified with file_exists), plus the filename, it gives the same Permission denied error.

If I SSH into the server and change user to deploy, and go into "src" folder, I can create a file with "touch myfile.txt".

Concerning the working directory ( /mnt/persist/www/thesite.com/web/wp/wp-admin) , those folders also have "deploy" as the owner, and permissions set to 755.

Can I trust get_current_user(), which says deploy? I thought I might be running it as www-data, but since it says deploy, there shouldn’t be any problem?

I’m a bit clueless..

Cannot find password

Our site www.example.com is built with WordPress.

www.example.com is always redirected to alumni.example.com/?page_id=175/, however I don’t remember how this redirection is set.

I wanted to sign in the dashboard of WordPress, but my username and password did not work anymore (for long time I did not sign in). I tried to find my password, but the following page just hanged.

Does anyone why finding lost password does not work? Is it related to the redirection? Is there other way to sign in?

enter image description here

Cannot add custom taxonomy to specific menu

I’m trying to add a custom taxonomy to a menu, but for some reason it won’t show.

This is the custom post type that I want use to associate the taxonomy:

$  labels = array(     'name' => 'Esperienza',     'singular_name' => 'Esperienza',     'menu_name' => 'Esperienza',     'all_items' => 'Esperienza',     'add_new' => 'Aggiungi nuovo',     'add_new_item' => 'Aggiungi nuova Esperienza',     'edit' => 'Modifica',     'edit_item' => 'Modifica Esperienza',     'new_item' => 'Aggiungi nuova Esperienza',     'view' => 'Visualizza Esperienza',     'view_item' => 'Visualizza Esperienza',     'search_items' => 'Cerca Esperienza',     'not_found' => 'Nessun Esperienza trovata',     'not_found_in_trash' => 'Nessun Esperienza trovata',     'parent' => 'Esperienza genitore',     'filter_items_list'     => 'Esperienza $  s',     'items_list_navigation' => 'Navigazione',     'items_list'            => 'Lista Esperienza',     'view items'    =>    'Visualizza Esperienza',     'attributes'    =>    'Attributi Esperienza' );  $  args = array(     'labels'  => $  labels,     'public' => true,     'publicly_queryable' => true,     'show_ui' => true,     'query_var' => true,     'rewrite' => array('slug' => 'st_experiences'),     'has_archive' => true,     'hierarchical' => false,     'menu_position' => 0,     'show_in_menu' => 'edit.php?post_type=st_tours',     'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments'),     'taxonomies' => array('st_experience_categories') );  register_post_type('st_experiences', $  args); 

and this is the custom taxonomy:

function experience_category_post_type() {     $  labels = [         'name' => __('Categorie esperienze', 'traveler'),         'singular_name' => __('Categorie esperienze', 'traveler'),         'search_items' => __('Search Categorie esperienze', 'traveler'),         'popular_items' => __('Popular Categorie esperienze', 'traveler'),         'all_items' => __('All Categorie esperienze', 'traveler'),         'parent_item' => null,         'parent_item_colon' => null,         'edit_item' => __('Edit Categorie esperienze', 'traveler'),         'update_item' => __('Update Categorie esperienze', 'traveler'),         'add_new_item' => __('Add New Categorie esperienze', 'traveler'),         'new_item_name' => __('New Experience Type Name', 'traveler'),         'separate_items_with_commas' => __('Separate Categorie esperienze with commas', 'traveler'),         'add_or_remove_items' => __('Add or remove Categorie esperienze', 'traveler'),         'choose_from_most_used' => __('Choose from the most used Categorie esperienze', 'traveler'),         'not_found' => __('No Categorie esperienze.', 'traveler'),         'menu_name' => __('Categorie Esperienze', 'traveler'),     ];      register_taxonomy('st_experience_categories', array('st_experiences'), array(         'labels' => $  labels,         'show_ui' => true,         'show_admin_column' => true,         'query_var' => true,         'rewrite' => array('slug' => 'st_experience_categories'),         'show_in_menu' => 'edit.php?post_type=st_tours',         'show_in_nav_menus' => true,         'hierarchical' => true     )); }  add_action('init', 'experience_category_post_type'); 

when I visit my custom post I correctly see the taxonomy on the right menu:

enter image description here

but on the left side menu I can’t get displayed:

enter image description here

what I did wrong?

cannot scrape any proxies (all fail from Scrapebox provided source)

Am I suppose to use a proxy when scraping proxies, all of them failed

https://www.youtube.com/watch?v=sbO0FnxW…cedSEOClub 

This is method I used. Nothing else And this is fresh install of Scrapebox

I went ahead an checked if my ip is blacklisted anywhere I don’t think it is.

Is there a way I can export these results to have you take a look?

Looking for a game, cannot remember the name of it [closed]

I am unsure it it’s actually an RPG game, but it’s kind of like Scrutinized, i am like 65% sure it has made by EA because i have a medium-strong memory of playing it through Origin. It has an abstract art style and is called something like Disgruntled or something, you are playing as a detective if remember correctly, and the game cover is blue abstract art with a man with a monocle (or whatever it’s called, glasses on only one eye). Does anybody have any idea which game this might be? Also sorry it this is not the right forum, i don’t know where else to ask this.

Cannot assign to function call when looping through and converting excel files [closed]

With this code:

 xls = pd.ExcelFile('test.xlsx') sn = xls.sheet_names for i,snlist in list(zip(range(1,13),sn)):     'df{}'.format(str(i)) =  pd.read_excel('test.xlsx',sheet_name=snlist, skiprows=range(6))  

I get this error:

‘df{}’.format(str(i)) = pd.read_excel(‘test.xlsx’,sheet_name=snlist, skiprows=range(6)) ^ SyntaxError: cannot assign to function call

df+str(i) also return error

i want to make result as: df1 = pd.read_excel.. list1… df2 = pd.read_excel… list2….