Welcome Guest, Not a member yet? Register   Sign In
removing a file on a Linux server
#1

(This post was last modified: 09-08-2018, 12:26 AM by richb201.)

Somehow some of my local development files got on my server. In the attached screenshot you can see a file called "C:\xampp\php\logs\php_error_log". It shouldn't be on Ubuntu and is causing havoc. l want to remove it with rm. So I change to the /opt/bitnami/apps directory by using "cd apps". But now when I do a ls -l to list the directory I get:

bitnami@ip-172-26-10-99:~/apps$ ls -l
total 4
drwxr-xr-x 5 root root 4096 May 23 10:57 phpmyadmin

As you can see, "C:\xampp\php\logs\php_error_log" is not showing. So how can I delete it? if I type 

sudo rm "C:\xampp\php\logs\php_error_log"

I get:

bitnami@ip-172-26-10-99:~/apps$ sudo rm C:\xampp\php\logs\php_error_log

rm: cannot remove 'C:xamppphplogsphp_error_log': No such file or directory

So how do i get rid of this thing??? I am aslo having a problem loading php.  When I try to run php -v I get

bitnami@ip-172-26-10-99:~$ php -v
Failed loading C:\xampp\php\ext/xdebug.so:  C:\xampp\php\ext/xdebug.so: cannot open shared object file: No such file or directory
PHP 5.6.36 (cli) (built: Apr 27 2018 22:46:36)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies

The only lines in my server's php.ini that refer to my local PC are:

include_path=C:\xampp\php\PEAR 
extension_dir="C:\xampp\php\ext"
upload_tmp_dir="C:\xampp\tmp"
error_log="C:\xampp\php\logs\php_error_log"
mail.log = c:/mail_log
browscap="C:\xampp\php\extras\browscap.ini"
session.save_path="C:\xampp\tmp"
openssl.cafile=c:\users\richb201\.aws\cacert.pem
openssl.capath=c:\users\richb201\.aws\

So what do I change these to?

Any help is appreciated.

Attached Files Thumbnail(s)
   
proof that an old dog can learn new tricks
Reply


Messages In This Thread
removing a file on a Linux server - by richb201 - 09-08-2018, 12:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB