09-08-2018, 12:10 AM (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
09-08-2018, 12:32 AM (This post was last modified: 09-08-2018, 12:35 AM by skunkbad.)
Richard, you're in the wrong directory.
If you look closely at your image, the directory that contains the file you want to delete is not ~/apps. You were in that directory, but then you went up one directory with cd ..
The directory that contains the file you want to delete is your home directory (~).
You should be able to do this:
sudo rm -f ~/C:\xampp\php\logs\php_error_log
or to make it easy on yourself:
sudo rm -f ~/*php_error_log
Just a tip; most Linux distros will allow you to type "ll" instead of "ls -l" or "ls -la". It's really fast. Give it a shot.
Thanks Brian. I'll check it out. BTW, I was thinking that perhaps my php install is pretty screwed up and I should delete it and reinstall a fresh one. Is there an easy way to remove the install and then a way to reinstall?
09-08-2018, 11:00 AM (This post was last modified: 09-08-2018, 12:15 PM by richb201.)
(09-08-2018, 08:30 AM)skunkbad Wrote: "Easy" just depends on your skill level. I have doubts that PHP is screwed up. Why do you think that?
Because I made a mistake and copied my php.ini from my windows PC to my linux server. There are many places in the php.ini that point at my local hard drive. I don't have a copy of the original linux php.ini. So I need a new copy.
Is there anywhere I can get a linux version of php.ini without re-installing?
I guess I could just create a new LAMP instance, copy the php.ini, and then delete the instance?
OK. I created another instance and copied the php.ini from that instance to mine. Now I just need to install Xdebug to it. Which one should I install? is there a windows version vs a Linux version. I know that I need 64 bit and I am using php 5.6. Do I need threadsafe for working with CI?
(09-08-2018, 08:30 AM)skunkbad Wrote: "Easy" just depends on your skill level. I have doubts that PHP is screwed up. Why do you think that?
Because I made a mistake and copied my php.ini from my windows PC to my linux server. There are many places in the php.ini that point at my local hard drive. I don't have a copy of the original linux php.ini. So I need a new copy.
Is there anywhere I can get a linux version of php.ini without re-installing?
I guess I could just create a new LAMP instance, copy the php.ini, and then delete the instance?
OK. I created another instance and copied the php.ini from that instance to mine. Now I just need to install Xdebug to it. Which one should I install? is there a windows version vs a Linux version. I know that I need 64 bit and I am using php 5.6. Do I need threadsafe for working with CI?
well my phpStorm is still complaining "Invalid descendent file name "C:\xampp\php\logs\php_error_log" ". This is causing phpStorm to show PHP version: not installed.
I know it can be difficult to give up Windows, because I was there once, but if you started developing your websites on Linux, you'd never have these weird issues. I use Ubuntu Desktop. Current version has PHP 7.2 which is a bonus.