I used Xampp and deleted it.
Then, I tried to use Mamp. There is an error that I don't understand.
Mamp is working perfect as webserver. But if I want to use phpmyadmin, it doesn't work.
For example, I insert something to database. It isn't showing in phpmyadmin.
It is saving to old Xampp database although I deleted Xampp. How does it happen?
How Can I delete Xampp permanently(with mysql) on Mac OS?
XAMPP 5.x:
You can find uninstall.app in /Applications/XAMPP.
After running this program, then you can use this command to delete all XAMPP cache files: sudo rm -rf /Applications/XAMPP
XAMPP 7.x:
Open Mac OS Finder and go to /Applications folder. You should find an XAMPP icon there (eg. XAMPP.app), right-click it and choose 'Move to Trash'.
In addition to this, you might want to delete the ~/.bitnami folder within your home directory.
the newer version of XAMPP include uninstaller apps, you can find it inside XAMPP folder in Application directory. But they leave empty XAMPP folder.
To Delete XAMPP
Step 1:
Go to your Application folder and delete it.
Step 2:
Open your terminal and type: sudo rm -rf ~/.bitnami
To uninstall XAMPP-VM, follow these steps:
Delete the XAMPP-VM icon from the Applications folder.
Remove all XAMPP-VM data by deleting the ~/.bitnami folder within your home directory on the OS X host.
https://www.apachefriends.org/faq_stackman.html
I think that just put the application (in your Applications folder) is enough. But you can try to search some XAMPP garbages.
Open your terminal, sudo and search for something containing XAMPP:
sudo -s
[ Type your password ]
find / | grep -i xampp
It can take a time if you do not have a fast hdd.
This will display all files/folder containing XAMPP in their name.
Open Spotlight and search for XAMPP,
To open Spotlight, click the magnifying glass icon in the upper-right
corner of the menu bar, or press Command-Space from any app.
Should be displayed some folders. Check for XAMPP (in upper cases) folder and open it.
XAMPP folder should contain an uninstall programm, tap on it and follow the instructions.
For a complete remove Go to Macintosh HD and delete the folder /Aplications/XAMPP (Be careful with you application files).
I did it right now and it works.
it's easy pro,
Open the application folder.
Click on the XAMPP icon and hold it.
Drag the icon to Trash.
Clean Trash (to do it just hold Ctrl and click on “Empty Trash”).
run this command on the terminal:
rm -fr ~/.bitnami/
Related
So basically, i'm trying to learn how to use XAMPP to make a php server with MySQL. When I try to start it however, the start button doesn't work. The button is greyed out for some reason.
An image of the control menu: https://imgur.com/a/v4O1GZ2
When I try to start the server from the general tab, it shows a yellow dot meaning it is starting (Image here: https://imgur.com/a/VEkRES2) and after it is done, it shows this error message: https://imgur.com/a/Zu6hTgi
The error I get when I click show details: cannot start stack: ssh not accessible
The Log:
INFO: Starting "XAMPP" stack
ERROR: Error starting "XAMPP" stack: cannot start stack: ssh not accessible`
I have tried everything; I tried reinstalling, I tried deleting my ~/.bitnami folder, but nothing works.
I stumbled upon this thread last night, and learned that it was because I had used CHMOD 777, which unfortunately broke XAMPP.
So wanted to share how I 'solved' this (rescued my files) without having a recent Time Machine backup in case it might be helpful for others.
Step 1:
Copy the virtual XAMPP machine (machine.qcow2) in terminal
‘$ cd .bitnami/stackman/machines/xampp/vm’
Now '$ open .' and move the 'machine.qcow2' file to e.g. downloads.
Step 2:
Delete the .bitnami folder.
Step 3:
Delete and re-install XAMPP.
Step 4:
Launch XAMPP and mount the image, then move machine.qcow2 file into '/opt/lamp/htdocs' using Finder.
Step 5:
Install qemu-utils and p7zip-full
'$ sudo apt-get install qemu-utils'
'$ sudo apt-get install p7zip-full'
Step 6:
Go into the 'htdocs' directory and convert machine.qcow2 to machine.iso with qemu
'$ cd /opt/lampp/htdocs'
'$ qemu-img convert image.qcow2 image.iso'
Step 7:
'Unzip' the .iso file
'$ 7z x image.iso'
That's it! If you '$ ls' now, you'll see your old files!
I then used 7z to make a Zip-backup folder with the old files, moved the 7z to my desktop, deleted and re-installed XAMPP. Cleared the new 'htdocs' and unzipped the file again.
This took me about half a night to figure out, so hopefully it will be useful for someone!
Maybe you need to change the ports. Sometimes different programs use the same ports and it doesnt work properly. Try changing the ports.
Changing ports Xammp
I am running Ubuntu 16. I am fairly new to web design but I have set up a LAMP server on my Ubuntu machine and installed WordPress site. I wanted to try to mess around with PHP so I tried to install myphp.
I managed to do this and I realized that I had to install nginx also.
I did this, but my local host always diverts to a message "welcome to Nginx"
I tried to edit the configuration files but could not get it to work?
Is there a guide for installing Nginx and myphp to see phpMyAdmin, after you have already set up a WordPress site?
Like I said I am running Ubuntu 16.04.
You may need to delete the index.html file from the web root. The index.php file should remain.
On Ubuntu+nginx go to html directory using following command
cd /var/www/html/
then find out following index.nginx-debian.html and delete it or edit it as you want
To edit these file open into you editor or use Ubuntu default editor nano.
sudo nano /var/www/html/index.nginx-debian.html
To delete these file run following command.
sudo rm -rf /var/www/html/index.nginx-debian.html
these is the defautl nginx welcome page that why it appear after install, for more information check nginx default configuration file using following command.
sudo nano /etc/nginx/sites-available/default
Thanks
I have just installed a fresh copy of Yii2 advanced and am having trouble getting the style sheets to load. The error seems to be that Yii (or webserver) cannot create path /var/www/frontend/web/assets/1ecfb338/css despite doing so in the same http request that it errors. Even after reinforcing file permissions of 777 from without and outside the VM, Yii doesn't seem to make further attempts to write the stylesheet.
If I just refresh the page loads without error but the stylesheet bootstrap.css has not been created in the directory.
This is most frustrating. Does anyone have any ideas?
If it matters I am running Yii in a Vagrant VM with Virtualbox. Debian is the VM OS and Ubuntu is the host.
This is quite strange at not experienced this before. I was able to correct this by changing the mode to 777 as the super user from outside the virtual machine. From doing the same thing inside the virtual machine made no difference.
I have worked on many projects before with this kind of setup but not had this before. Software that I'm using that may be responsible is:
Host machine:
Ubuntu 14.04
Vagrant 1.7.4
Virtualbox 4.3.30
Virtual machine:
Debian Jessie
Nginx 1.6.2
PHP 5.6.14
Edit: I found that I had defined the sync folder incorrectly. I had to change to rule this this:
config.vm.synced_folder "./", "/var/www", id: "vagrant-root", :group=>'www-data', :mount_options=>['dmode=775,fmode=775']
You just give permission for particular directory like:
sudo chmod -R 777 /var/www/frontend/web/assets
The solution for me was adding
sed -i 's/www-data/vagrant/g' /etc/apache2/envvars
to the Vagrantfile like written here
Vagrant file_put_contents permission denied
How can i Install Rack Tables in windows 7. Here is the link where i downloaded the Rack Tables http://racktables.org/ .. I want to know how can i install this system. (Rack Tables is a rack inventory). Im using xampp but whenever i try to install it im getting this error.
RackTables installation: step 3 of 7
The C:\xampp\htdocs\racktables\RackTables-0.20.7\wwwroot\inc/secret.php file is not writable by web-server. Make sure it is.The following commands should suffice:
touch 'C:\xampp\htdocs\racktables\RackTables-0.20.7\wwwroot\inc/secret.php'; chmod 666 'C:\xampp\htdocs\racktables\RackTables-0.20.7\wwwroot\inc/secret.php'
Fedora Linux with SELinux may require this file to be owned by specific user (apache) and/or executing "setenforce 0" for the time of installation. SELinux may be turned back on with "setenforce 1" command.
Check to see if the file 'secret.php' exists in that folder. If not, just copy past a other .php file and make it empty.
And don't forget to change the windows properties of the file (check off read only).
I just installed on Windows using WAMP. I had to literally set the file permissions on secret.php to read-only for all users (including System) to get by that screen.
My operating system is Windows 7.
I got my WAMP2.2 install in my computer.
Then I try to install PEAR.
However, I can not find my go-pear.bat file in my wamp directory.
Fine. I download in here: http://pear.php.net/go-pear.phar
and install using this file.
I put the file in
C:/wamp/bin/php/php5.3.8/pear/go-pear.phar
Run the command: php -d phar.require_hash=0 PEAR/go-pear.phar
After the installation, I include the path of pear in php.ini in php and apache folder.
I also include C:/wamp/bin/php/php5.3.8/ in windows $PATH variable.
But when I run pear command. It said it can not find the pear command.
I check the folder and just find a file called pear.bat and pear.ini.
I tried to run pear.bat again in command line. It still does not work.
Experts, please help on this issue.
Ok since many people may be asking the same thing. Let's suppose the following.
I'm currently running 2.2 E which includes Apache 2.2.22 – Mysql 5.5.24 – PHP 5.3.13 XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0
Now, to install PEAR do the following:
Download this file:
http://pear.php.net/go-pear.phar
And put it on your WAMP server directory under the PHP version on the bin folder.
Run the command to install PEAR and you're over it.
Example (defaults, no change has been done)
Get the file on the link ->http://pear.php.net/go-pear.phar
Go to this directory C:\wamp\bin\php\php5.3.13
Open command prompt (cmd.exe). Supposing you're using Windows Vista and higher, press Start, type "cmd.exe" and right click on it and select run as administrator/CTRL+SHIFT+Enter (Haven't tested on non-priviliges rights)
Use Window's cd command to change the directory to the go-pear.phar file you've just downloaded. In my case I'll be pin pointing it to my own directory, so I did it like follows:
cd "C:\wamp\bin\php\php5.3.13"
Press Enter. You should note that instead of saying "C:\system\32" is now displaying C:\wamp\bin\php\php5.3.13
Write the following command and press Enter:
php -d phar.require_hash=0 go-pear.phar
Select whether you like or not a local copy or a system one. By typing system:local and pressing enter you'll install a local copy. By typing system and pressing enter you'll install a system-wide copy.
Type yes to confirm the option chosen.
The next list of directories, will be the referring directories that PEAR will install its components. If you select from 1 - 12 you can change the directory you'd like to install. By typing all and pressing Enter you'll be able to change them all in a queued manner. In my case, I just pressed Enter and left all defaults
DO THE FOLLOWING IN CASE YOU CONTINUE TO HAVE SOME LISTINGS
11. It is very probable that afterwards you'll receive a message like:
WARNING! The include+path defined in the currently used php.ini does not contain the PEAR PHP directory you just specified: If the specified directory is also not in the include_path used by your scripts, you will have problems getting any PEAR packages working.
Below it will also appear:
Would you like to alter php.ini ? [Y/n]:
Type y and press enter
This should put you running with PEAR on WAMP server :)
pear.bat is the executable on windows. You have to put that directory in your system's PATH variable for the command to be recognized.
All the steps mentioned to below link for GUI based - easy understanding review and setup:
Click here
For anyone looking for a more current answer. On Windows 10 I had to edit .bash_profile to add the following:
function __pear {
pear.bat $#
}
alias pear=__pear