Jump to content

Mod rewrite and GD


Recommended Posts

I'm setting up a server for someone and I'm lost on 2 things.

 

1. How do I install GD2? I've already downloaded the .tar.gz as well as read various online tutorials. I can't seem to get it working though! Please help

 

2. Mod_rewrite isn't working. The .htaccess file is correct because right before getting this current server, it was working on another (shared) server). I've looked in httpd.conf and it all looks good (rewrite_module is uncommented) AND when I run phpinfo(), it shows that the mod_rewrite module is loaded. What could be going wrong?

 

Thanks!

 

Wes

Link to comment
https://forums.phpfreaks.com/topic/160546-mod-rewrite-and-gd/
Share on other sites

UPDATE

 

GD IS INSTALLED

MOD_REWRITE IS WORKING

 

Now my problem is, getting GD to work. It IS installed correctly. And I've uncommented the 'php_gd2.dll' in php.ini, but it's still not showing in my phpinfo(). The reason I know GD is installed is because I checked it all out in SSH and it looks good. I know there probably could be thousands of reasons for this, but what are some common? I've rebooted the server twice (by the way, is there a way to just reload the php.ini without rebooting the whole server?)

 

It's a Linux box

 

Wes

Link to comment
https://forums.phpfreaks.com/topic/160546-mod-rewrite-and-gd/#findComment-847853
Share on other sites

I've rebooted the server twice (by the way, is there a way to just reload the php.ini without rebooting the whole server?

When making changes to the php.ini all your need to do is restart the Apache service. No need to need to restart the whole server

 

Also you say you're using linux. Files ending in .dll are for Windows only so loading php_gd2.dll will impossible on linux. PHP extensions on *nix based systems end in .so.

 

Can you tell use how you have installed PHP? If you installed PHP via your systems package manager you should install gd2 for PHP via your package manager as this will take care of everything for you. However if you installed PHP manually you may need to recompile PHP to enable GD.

Link to comment
https://forums.phpfreaks.com/topic/160546-mod-rewrite-and-gd/#findComment-847992
Share on other sites

What distro are you using? Compiling php from source really isn't required these days, extensions are usually installable via your package manager.

 

You'll have a script within /etc/init.d that is used to stop/start/restart apache. It could be called anything from apache, apache2 to httpd.

 

You would execute this script by executing....

 

sudo /etc/init.d/apache restart

 

for example.

Link to comment
https://forums.phpfreaks.com/topic/160546-mod-rewrite-and-gd/#findComment-848440
Share on other sites

What distro are you using? Compiling php from source really isn't required these days, extensions are usually installable via your package manager.

 

You'll have a script within /etc/init.d that is used to stop/start/restart apache. It could be called anything from apache, apache2 to httpd.

 

You would execute this script by executing....

 

sudo /etc/init.d/apache restart

 

for example.

 

Thanks for that bit of info :)

 

Wes

Link to comment
https://forums.phpfreaks.com/topic/160546-mod-rewrite-and-gd/#findComment-848670
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.