Howdy Dolphineers again. I have run into a slight snag. I will be honest - I have never ran dolphin from a local server before. I have always just used a 3rd party server and paid the monthly costs. Now, I have a few things not working properly.
For starters, my permalinks are not working. I have included screenshot of my host tools. The expiry I can figure out, but the section about disable_functions, I am confused about. If anyone could give me a bit of help on what I need to do to get everything working properly, I would greatly appreciate.
caredesign.net |
The disabled functions are in the main php.ini file or in a separate config file listed in php.ini.
If i had to guess you don't have mod_rewrite compiled into apache either.
https://dolphin-techs.com - Skype: Dolphin Techs |
I see your using unbuntu.
You need to edit the servers php.ini file and look for the disabled_function setting. It needs to be empty.
Also for mod_rewrite to work on unbuntu you need to make sure it is enabled. From a shell run sudo a2enmod rewrite
You also need to make sure apache is setup to allow over rides by the htaccess file. You need to edit your apache configuration file. In unbuntu i think /etc/apache2/sites-available/default
You Need to change all occurences of AllowOverride None to AllowOverride All
Then restart apache. sudo /etc/init.d/apache2 restart
https://www.deanbassett.com |
mod_rewrite compiled into apache
Many hosting providers keep using that word compile. Must be a cpanel or plesk thing.
Most all modern linux distros come with packages that can be installed that provide everything needed. Compiling support into something is a thing of the past. Well except for maybe distros like slackware which is what i started with way back in 1995.
Has been as easy as installing packages for years. Only thing i can think of is it must have something to do with these panels. I have not had to compile anything in linux for over 10 years now.
https://www.deanbassett.com |
https://dolphin-techs.com - Skype: Dolphin Techs |
mod_rewrite compiled into apache
Many hosting providers keep using that word compile. Must be a cpanel or plesk thing.
Most all modern linux distros come with packages that can be installed that provide everything needed. Compiling support into something is a thing of the past. Well except for maybe distros like slackware which is what i started with way back in 1995.
Has been as easy as installing packages for years. Only thing i can think of is it must have something to do with these panels. I have not had to compile anything in linux for over 10 years now.
Sometimes it is necessary to complie something. I compiled Nginx because the destro did not have everything compiled in that I needed. CentOS is very bad, and I do say bad; about shipping very outdated packages. They claimed it is for stability but PHP 5.4.27 is very stable release so CentOS could upgrade the version of PHP they ship in their destros. Most of the CentOS packages need to be upgraded. Maybe it has to do with the fact that REDHAT controls CentOS now. The first thing I do when setting up a CentOS server is to grab the Remi repo. I also compiled VSFTP so I could have an updated release.
Geeks, making the world a better place |
CentOS is very bad, and I do say bad; about shipping very outdated packages. They claimed it is for stability Bad? I disagree with that. I suppose it's a matter of opinion based on whats important to you.
It is for stability. CentOS is a re-branded clone of Redhat Enterprise. It is designed for stability. Trust me. From the early 1990's up until about 3 years ago, i ran a dialup ISP. I have tried many distros on my web, ftp, dns, and mail servers. CentOS was the one that out performed all the rest in uptime.
I don't care about new packages. Uptime is more important to me than anything else. And when i was running my ISP business it had to be. My customers did not like it when a service was down. https://www.deanbassett.com |
You need to edit the servers php.ini file and look for the disabled_function setting. It needs to be empty.: Taken care of. Thanks Deano and DJ
Also for mod_rewrite to work on unbuntu you need to make sure it is enabled. From a shell run sudo a2enmod rewrite: I get the following error:
ERROR: Module rewrite not properly enabled: /etc/apache2/mods-enabled/rewrite.load is a real file, not touching it
You need to edit your apache configuration file. In unbuntu i think /etc/apache2/sites-available/default: I have 000-default (even made a copy just called default), in which I have:
Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all
Everything I have installed was done using sudo apt-get. Still permalinks not working.
caredesign.net |
Delete the rewrite.load file
rm /etc/apache2/mods-enabled/rewrite.load
Then try enabling rewrite again.
sudo a2enmod rewrite https://www.deanbassett.com |
OK, I was trying something while you were posting Deano. I found out that in newer versions of ubuntu, there is no /etc/apache2/sites-available/default but instead, I was supposed to make changes to /etc/apache2/apache2.conf. Making your suggested changes in this file worked perfectly. Thanks again to all. I am sure I will run into another issue - lol.
EDIT: while my permalinks are working, I am still getting an error when attempting sudo a2enmod rewrite
caredesign.net |
Did you restart apache after you made your changes to take effect ? https://dolphin-techs.com - Skype: Dolphin Techs |
Yes.
Did you restart apache after you made your changes to take effect ?
caredesign.net |
Yes, bad; because sometimes shipping such outdated packages means you don't get the features needed. I bet if one checks, CentOS official destros still have php 5.3.x. Such outdated packages can be a security issue. Geeks, making the world a better place |
Such outdated packages can be a security issue.
Ah, but even tho the packages may not be the latest, RedHat always fixes security issues that come up. Even new versions have security issues and they get fixed also. So the only thing missing is new features. Which most of the time does not concern me. Don't get me wrong. I upgrade something when i have to, but only if i have to.
https://www.deanbassett.com |
EDIT: while my permalinks are working, I am still getting an error when attempting sudo a2enmod rewrite
Yes. And my previous post should fix that.
Delete the rewrite.load file
rm /etc/apache2/mods-enabled/rewrite.load
Then try enabling rewrite again.
sudo a2enmod rewrite
After it's installed, running sudo a2enmod rewrite should state it's already enabled. Not a error, so that rewrite.load file must have a problem.
https://www.deanbassett.com |
I should have stated it could also be in /etc/apache2/apache2.conf
It depends on version of unbuntu.
But i run CentOS, so i am not as good with Unbuntu. https://www.deanbassett.com |
gracias senior Deano. I followed your instructions and it shows it is enabled. So - what exactly did I do if the permalinks were working without the change? caredesign.net |
If they were working then you did not really need to fix the other problem, but i prefer not to have any errors if it can be corrected. https://www.deanbassett.com |
I am running linux mint 17, thinking about changing to a server version and not having a gui.
I should have stated it could also be in /etc/apache2/apache2.conf
It depends on version of unbuntu.
But i run CentOS, so i am not as good with Unbuntu.
caredesign.net |
Mint is based on Unbuntu. So most of it is pretty much the same. I don't like its desktop tho. It was Gnome up until version 12. which i prefer.
https://www.deanbassett.com |
Trying out CentOs 7 with no GUI, and on another pc CentOs 7 with GUI (as main pc). caredesign.net |
I was not even aware centos 7 was out yet. https://www.deanbassett.com |
http://www.centos.org/
I was not even aware centos 7 was out yet.
caredesign.net |
OK, getting everything setup and I ran into a couple of problems. Cannot access phpmyadmin from web browser (no biggie, cause I can use the command line to create accounts and databases), and no matter what I do, the install script thinks that the ffmpeg is not executable, but it is. caredesign.net |
phpmyadmin can be a pain to setup and get working.
As for the ffmpeg issue. Never seen that happen before. https://www.deanbassett.com |
Try dbNinja, it is what I am using now instead of phpMyAdmin.
https://www.dbninja.com/
Geeks, making the world a better place |
How is PHP running? Apache module? Try changing the file ownership. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I won't be able to get back to this till this weekend. But I did wipe the pc clean and will reinstall. Will post step by steps at that time. caredesign.net |