You are not logged in.
Hello everyone! This is my first post here, so I'm sorry if I mess up somehow. Now onto the meat & potatoes of my misery.
I installed XAMPP by downloading the installer script from the official site and chmod +x'ing it. It all installed perfectly, set up my httpd.conf, httpd-vhosts.conf and my /etc/hosts file, no problem. Everything works splendidly and the sites boot up just like they're supposed to. Now here's the kicker. I'm at my absolute wit's end because of this.
I'm a rookie web engineer and admittedly I don't have a whole lot experience with Arch, or Linux in general, but some months back I really pushed it hard, ya know, really wanted to get into it and learn all I could. Well real life and a whole slew of other things happened and I had to go back to Windows. Anyway, fast forward to yesterday and me reinstalling Arch on my new laptop.
The project we're working on relies on mongoDB (by the way, let it be known that sudo systemctl status mongodb.service reports everything it a-okay, I can connect to the DB via Robomongo no problem). It also requires the usage of the legacy mongo driver. Now I'm tearing my hair out at this. How would I go about installing and enabling mongo.so in /opt/lampp/etc/php.ini? I tried downloading a php56 package from the AUR, getting php56-pear and doing sudo pecl56 install mongo. Once that was done, I tried setting the extension_dir in my main php.ini (the one used by apache) to the newly created php56 directory, but that didn't work. I also tried moving the mongo.so from the local php56 installation to the extension directory used by the xampp php installation, but that didn't work either.
I beg anyone to help me out with this. Thank you all very much for bearing with me while I try not to gouge my eyes out. Peace out and thank you again!
Last edited by Tefached (2016-09-23 06:51:30)
Offline
Welcome to Arch Linux
I installed XAMPP by downloading the installer script from the official site and chmod +x'ing it. It all installed perfectly, set up my httpd.conf, httpd-vhosts.conf and my /etc/hosts file, no problem.
Au contraire, lots of problems: you let some third-party script automatically modify your system configuration files (/etc/hosts - why?)
Why not install the web server (e.g. Apache, or lighttpd, or nginx), the PHP interpreter (possibly with FastCGI - also, why PHP 5.6?), and the mongoDB driver for PHP the sane way, using pacman?
Using third-party scripts (and sources) like XAMPP may seem "easy" (especially when coming from a Windows background, where that kind of stuff is probably standard), but it doesn't go well if you want to fine-tune something (e.g. changing the DB backend), and it's therefore generally discouraged - and also not supported here.
Also please keep it down with all the technically irrelevant anecdotes when describing problems (read also: How To Ask Questions The Smart Way).
Offline
Hi and thanks for the reply. Duly noted on the anecdotes, I'll tone it down a notch in the future.
Also I'm sorry for the misunderstanding. The installer itself did not modify anything except for installing all the componens -- I did that myself, with the .conf files and the hosts file.
I need PHP 5.6 because our project is using that version, and there's not really anything I can do about it.
Thank you for your suggestions, I'll do that today.
Offline
Also I'm sorry for the misunderstanding. The installer itself did not modify anything except for installing all the componens -- I did that myself, with the .conf files and the hosts file.
Ah OK.
I need PHP 5.6 because our project is using that version, and there's not really anything I can do about it.
Unfortunately, it seems that nobody has packaged the equivalent of php-mongodb for PHP 5.6 in the AUR yet. You could create your own php56-mongodb package. Otherwise I'm out of ideas...
Offline
Please change your topic title to remove the cry for help. Please also state that you are using XAMPP in the title.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Sorry to everyone for not replying for so long. In the end I did what ayekat suggested. I downloaded php56 from the aur repository and with the included pear56 I did `sudo pecl56 install mongo` and that did the trick. Thank you all for your help.
Offline