Forum archive
Curl Missing?
Hello,
I'm very new to Turnkey LAMP and Linux and I got disappointed at first glance because my Wordpress couldn't start - it brings 500 error. So I needed to dig into Apache log files where I found that I needed to activate some PHP modules. That's so so fine, probably because of security, but what pissed me of is that I needed to install curl by searching on internet and then logging into ssh in order to run such popular and generic web platform. I don't find this user friendly.
Ah ok, if you're planing to run additional software, then using LAMP as the base certainly makes plenty of sense. And thanks for your kind perspective for my rambling posts... I'm fairly well known for it... :)
Whilst the web UI is easy on the eye and is great for quick adjustments, personally I find configuring Apache from the commandline far more straight forward and intuitive (but obviously YMMV). Also as a side note, it's probably worth noting that Webmin has a module for installing packages (e.g. that php-curl package you needed). I still think commandline is quicker and easier, but again, you may find that preferable?
FWIW, as a general rule, most of the PHP extensions which are packaged within Debian are "php-<ext_name>". E.g. the PHP XML extension is "php-xml". If you are looking for something, I find the online Debian package search a useful tool. Once you find the name of the pacakge, it can be easily installed either via Webmin or commandline.
Re your current issues, I'm not sure, but my guess is that it needs the Apache rewrite module enabled (it's included by default, but not enabled). To use that, you'll need to enable it:
Another thing that may be related is Apache using .htaccess files (or not, more likely). IIRC WordPress has .htaccess files that support the url rewriting etc. To ensure that those are read, within your Apache config for your WordPress virtual host/site (not sure where Webmin puts it, but if I had set it up, it would be /etc/apache2/sites-available/wordpress.conf) within the web root Directory block, ensure that you have 'AllowOverride All'. Otherwise Apache will ignore the .htaccess files. E.g.:
<Directory /var/www/wordpress/> AllowOverride All # ... other config here ...Plus whenever you make changes to Apache config, you need to restart it: