Ubuntu :: LAMP: Mod_rewrite, Imagick Refuses To Work In One Folder?
Feb 19, 2011
I have ubuntu 10.10. I installed apache2 Php mysql and phpmyadmin through the package handler. it worked after that I instaled Imagemagick , and imagick for PHP. than I installed mod_rewrite for appache2. I created a folder in /var/www/ called shimmie. I copied there my codes and after setting up htaccess it worked fine. url rewrite worked. thumbnails with imagick appeared along with normal images. Yesterday I got another webpage project. but it required apache mod_ expires and mod_headers and installed it. And installed Xdebug for PHP. after this I put the webpage to another /var/www/ folder called fashion. Now in fashion everything works as its needs to: url rewrite , expires.. everything. But now my original folder shimmi, doesnt works: no url rewrite, no imagick thumbnails nor the original image shows up.
the folder belongs to my user and set is that every thing can read it and write it.
EDIT: I even copied the shimmie folder toa new and still didnt work, so i re created it... and still doesn't work.... why is thats the only thing that cant use .htacces and imagick?
I want to enable Pretty URLs in Concrete5 and Joomla CMSs. So far I have- enabled pretty urls in the CMS- created .htaccess files (as they showed)- changed AllowOverride None to All in /etc/Apache2/httpd.conf <directory>- restarted ApacheBut the pretty urls still don't work, When I click any link on either site it gives me a page not found error. If I use the "non-pretty" URLs, all the links work. So I guess Apache either doesn't read the httpd config file or it doesn't read the .htaccess files or something else. Has anyone got this working? What else did you do?
I have tried to install vlc on my ubuntu 9.04. Initially all went fien, vlc was here and did work. I tiried to uniinstall, then install again, still no cure. what went here wrong? And how to correct all?
next time I tried to run it, nothing happened, no process of vlc could be found and so I tried to start it form cmd with following results:
I replaced a broken WinXP install with Ubuntu 9.10 x32 on my kids PC and the install and OS itself seems to be fine. When connecting the Netgear WG111v2 USB dongle so that they can get internet access things aren't so good. Firstly the startup and shutdown of the machine get big pauses (around 2 minutes at a time) and there are also big pauses and a general slowdown of the machine while in use that doesn't happen with the dongle disconnected. I wouldn't mind that so much but I can't get the damn thing to connect under ubuntu to our home network. I left an old Win2k partition intact on the machine and I'm glad I did as it means that I've been able to install the drivers to make sure that it all works under Windows, which it does.
It probably makes little difference but the light on the dongle is off for the majority of the time and only lights up briefly on seemingly random occasions. Also, I have no entries for Network Manager in my menus, and the system tray applet doesn't give me the options and tabs that are mentioned in some peoples posts in this forum (ie I can't change the computer name for example), sometimes the system tray applet disappears altogether.
With the dongle attached typing lsusb into the terminal sometimes shows just the USB hubs and sometimes also shows an entry with the WG111 included (and sometimes with big pauses). nm-tool sometimes shows just the motherboard NIC (disconnected), sometimes the WG111 too (also disconnected) and sometimes it just throws up several error messages with pauses between each one. dmesg showed an entry for the dongle on the occasion that I tried it.
I used to run Apache + PHP5 + MySQL + ImageMagick locally, as a testing server for a project I'm working on. A while ago I updated a few things, with the php5-imagick library not matching dependency version numbers anymore. I decided to ignore it, since there was no update for the library. I have been without an internet connection in the meantime, but php5-imagick didn't work anymore at all. It didn't return any errors, but it simply didn't modify anything about the pictures anymore. A few minutes ago I decided to manually uninstall and reinstall the php5-imagick package.Uninstalling went fine. But when I wanted to reinstall it, the package was nowhere to be found! A quick Google search turned up no relevant results.
So I've searched all over the web and followed every bit of instruction that I could. I get bluetooth manager to detect my phone and it pairs up without any problem. Even when I set it up to connect to play streaming music from the phone it links up but I hear nothing from the speakers. Of course, in pulseaudio I do see "Internet Phone", but there's no way I can edit it. And whenever I try to do this step, I get a failure
Now we need to tell PulseAudio that your Bluetooth headset exists:
I have 2 HDs, an old one with LVM (sda) with two partitions, sda1 and sda2, and the new one without LVM (sdb). I want to format the old sda device. I tried with sfdisk, but it says that the sda is busy:
But there is no call in /etc/fstab to sda, I did a /sbin/swapoff -a, and this is the output of df:
So, after an update my sound stopped working at all. Music won't even play on Banshee. I tried fixing this several ways with no luck. Now, my computer's sound output is stuck at "Dummy".
I have recently been pulling my hair out with Gnome-Shell. I had Gnome3 including the shell up and running as soon as it was ready in the stable repos. However it recently refused to work after the update to 3.0.1 hit the stable repository. Today I did a complete reinstall of OpenSUSE 11.4 from the gnome desktop CD, NVIDIA drivers are correctly installed and working. Gnome3 has been installed via the one-click method on top of this FRESH install. Yet still my gnome-shell freezes after login, I am running in fallback mode now. Really cannot see what can have gone wrong this time, nothing out of the ordinary has been knowingly installed at all. I'd really love to get my desktop up and running to how it used to be.
Instead of doing this by actually changing the apache directory, I simply put in a symlink from the WWW directory.This worked many times, but today, under Maverick, I got the following error : "Forbidden You don't have permission to access / on this server."I spent a LOT of time on the web trying to solve this error and in the end, it got solved simply by enabling permissions "access" to "others" direclty on my home folder (because my Dropbox folder is, of course, within my home folder).However, I have no idea if this is a good idea. Does this mean that simply anyone could access any file on my computer ??Alternatively, does anyone know how I could proceed to make this LAMP server work WITHOUT having to change my Home directy permissions this way ?
My problem is when trying to connect to: "hxxp://www.m-y-d-o-m-a-i-n.com/phpMyAdmin" I reported Error 404: PHP Code: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404
I have mod_rewrite and mod_proxy loaded properly for the apache2 package in 11.04. I added the following to the bottom of my apache2.conf:
RewriteEngine: On RewriteRule: ^/$ /test [L]
The server restarts fine, but / is not getting rewritten in the slightest. And when I added the RewriteLog directive, the log file had absolutely nothing in it.
I want to use rewite module to change my site url from site/index.php to site/cat/ for example I have created .htaccess file in the directory where the file is and add to it:
Code:
RewriteEngine on Rwerite ^cat$ /site/index.php
Here site is not my site, it just in example. I have rewrite.load in the loading list of modules and I can see it loads in phpinfo(). AllowOverride is set to All for the current site, but no redirect is made on site/cat
I am still struggling to get non-www to www. At the moment I have following code to redirect from non-www to www. RewriteCond %{HTTP_HOST} !^www.hoteldealscatcher.com$ [NC] RewriteRule ^(.*)$ http://www.hoteldealscatcher.com/$1 [R=301,L]It works totally fine for home page but not for other deep links, such as /city/Sydney.php, they are still going to non-www pages. What 's the best approach I could use to solve it
I have tried this a million ways, got it to work once but it didn't work sitewide for some reason. I have a url: [URL] and I want it to be found by going to: [URL] I am using this
I've given a bit of support using Mod_rewrite to use magical urls to redirect to scripts, but when I migrated to Ubuntu's Apache2... I'm lost. I basically want to rewrite like this:
Code: RewriteRule ^artist/(.+)/$ artist.php?artname=$1 But I noticed that it wasn't passing the artist=$1 to the server GET vars. Then I noticed that if I changed the name of the file in both the rule and the file system to artists.php, typing artist/blah/ no longer was found. So then I realized that if I removed the rewrite rule artist/hello/ would still resolve to artist.php without any parameters my htaccess is like so:
I am running Apache2 on Novell SLES 11. I am using Virtual Hosting for two sites. One site only has a single domain whereas the other site has two domains registered. surrounding my one virtual host with the two domains. I want anyone that point to [URL] gets redirected to [URL]. I am trying to do this for trending but not 100% on how to go about doing this. I've read about mod_rewrite but most of the information I've read about is about a single site running on Apache and not much around Virtual Hosting within Apache. I am currently using Server Alias within my vhost.conf file which allows either [URL] or [URL] to see the site but I really want to redirect [URL] to [URL].
On one of my servers (Centos 5.5), I have been hosting articularly complex CRM application for one of my clients. Recently they have asked about configuring SSL connections to the CRM. Problem is, SSL is already configured for their main domain but not the sub-domain where the CRM application is accessed. Rather than purchasing another SSL certificate for their sub-domain (and probably another IP address),ld it be possible to setup a redirection from the subdomain to a sub-directory in the SSL directory using mod_rewrite. I have searched online and through the other posts on LinuxQuestions but nothing I have tried works.For example:[URl]
I have just finished transferring my home folder to a new partition. I did so by carefully following instructions on this link [URL] I had firefox open and was copying instructions one by one into an open terminal window.
When I tried to reboot ubuntu I first had a problem with ICEauthority which I think is now fixed and ubuntu then started as normal but when I tried to run Firefox I got a message saying that it was already open.
As I had Firefox open when I was copying files to the new partition I assume that some setting was copied saying that Firefox was open?
Is it possible to simply adjust this setting or do I have to undo the transfer and repeat the process with firefox closed.
I have not deleted my copy of the old home folder yet.
I got ubuntu samba server on server 10.04 username:user1 , Home folder: /home/user1 This user connects from a macbook pro no problem. I followed the same steps to set up user2 username:user2 , Home folder: /home/user2 This user does not connect from windows vista. I have the correct ports open, 137-139 & 445, and can connect from the macintosh, but not vista. The error says that the username or password is in correct. If you need some log files or config files, just let me know where to go and they're all yours!
I have been using Ubuntu 10.04 (32 bit) as a headless workstation, running a VNC screen. Worked perfectly for about 3 weeks, then suddenly, I lost the Drag and Drop capability, for all applications.For example: Dragging and dropping to move items on the desktop does not work. The item simply pops back to the original location. Dragging and dropping to move items from one folder to another does not work. Same behavior -- the item just pops back to the original location. Dragging and dropping Bookmarks in Firefox does not work. The attempted Drag and Drop is ignored. Copy and paste still works fine.The problem does NOT occur when using an attached monitor (primary display screen :0).After much Googling (including these forums), I suspected that the changed behavior was caused by an update (from Ubuntu Update Manager). I confirmed this with the following:Reinstalled Ubuntu 10.04 fresh from the live cd.Configured minimal networking and installed VNC server.Tested Drag and drop -- works okayApplied pending updates (116) from Ubuntu Update ManagerTested Drag and drop -- not workingI am using vnc4server and openssh-server installed from the repositories using Synaptic.
I can't access my home folder using nautilus ( and everything that using gui), but I easily can access to subfolders e.g. "Music", "Downloads" and others. What can cause this trouble? Also I can retrieve directory listing using terminal.