FAQ Database Discussion Community


Creating a 14 character 'random key generator'

php,codeigniter,lamp
I'm trying to use CodeIgniter to write up a small program for school which generates a random 'key' every time I click the 'generate' button. Looking to see if there's a way for me to create a function where I can fill up a 14 character array with a random...

Compile and install php5.4, make: *** [libphp5.la] Error 1

php,centos,redhat,lamp,build-error
I am trying to build PHP with the following build configuration: ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-openssl --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/include/libxml2/libxml --enable-xml --enable-sockets --with-apxs2=/usr/local/httpd/bin/apxs --with-mcrypt --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-bz2=/usr/bin/bzip2 --enable-maintainer-zts and...

.htaccess redirection keeping my orginal URL

.htaccess,cpanel,lamp
I would like to have the following setup using .htaccess. domain.com/test/hello.php or domain.com/index.php or any other link must show only domain.com in the URL. Kindly share your views on this....

What rights should I put on directory so web site users can upload photos?

php,linux,lamp
I want users to upload photos to these folders (with a php script) upload/big upload/thumb I guess putting '777' is risky (they could upload some php files etc..) What is the rights I sould put on the upload folder ?...

$_POST being automatically copied into other variables

php,lamp
(I apologize for a stupid question. This must be a simple setting, but an hour of Google hasn't revealed it.) We have a LAMP web server. When we send data through post, the $_POST variable is set as expected. But we also get a global variable for every entry in...

Wordpress “Post name” permalinks not working

wordpress,.htaccess,lamp,permalinks,ubuntu-server
I have a Wordpress website running on Lamp Server on Ubuntu Server 14.04. I just tried to use the option for Post Name permalinks, and now my pages no longer load up. I turned on the mod_rewrite function of the Apache server, restarted it, but it still doesn't work. Also,...

Fetch as Google 'Unreachable' error

ubuntu,laravel,server,lamp,google-crawlers
I just pushed a new version of my site to the server. It seems to be working fine, but I'm getting Google crawl errors and when I try to fetch as Google, I get an unreachable error. Here's the Google bots latest attempt in the access log: "GET / HTTP/1.1"...

Why is /etc/apache2/sites-enabled/000-default returning blank?

apache,lamp,ubuntu-14.04
I installed LAMP and phpmyadmin in my server. (Droplet in DigitalOcean) I have problem in editing the file here sudo nano /etc/apache2/sites-enabled/000-default This returns an empty file. I even tried sudo nano /etc/apache2/sites-enabled/default and it is also empty. When I tried > ls -l /etc/apache2/sites-enabled lrwxrwxrwx 1 root root 26...

ftp_get() corrupt large file download

php,ftp,wamp,lamp,gz
I have to download a large file(approx~-9mb) in .gz format from the server using ftp. I have written a function which downloads the file completely and correctly but when i put this code online , the file is downloaded but the file gets corrupt. Here is my code: function downloadFile($ftp_server,...

Mysql rows getting deleted after an unrelated insertion action happens in another table

php,mysql,sql,cakephp,lamp
I'll try to explain this as simple as possible, since it involves an ecommerce music site. So I have an app website based on CakePHP which is an ecommerce site, we sell online Music. The problem I'm having is that after someone buys an Album, the Genre rows of that...

In terms of back-end and front-end technology, what can GAE do that Web Hosting can't? [closed]

google-app-engine,web-hosting,lamp,paas,web-technologies
I vaguely understand the difference between Google App Engine and a traditional Web Hosting service. I do understand Google App Engine can scale for a much wider audience, thanks to not having to maintain your own hardware, handling the load-balancing, spreading the data over multiple locations, etc. But in terms...

How to download file that has space in its name?

iis,lamp
In my virtual directory, I have many mp3 files, there are space or Chinese characters. How do I allow visitors to download them? For example: There's no problem when downloading www.myWebsite.com/virtualDirectory/songNameSimple.mp3 But if the song name has space in it, it's replaced by %20, thus return 404 error. I'm curious...

Laravel Public folder accessible on LAMP server

php,apache,laravel,lamp
I am in dire need of help with setting up my laravel project on a LAMP server. So far I have tested my "Pretty URLs" on my localhost xampp server with no problems. Now that I am trying to set it up on an actual LAMP server I am running...

Image files not loading in Apache Linux Fedora 17. 403 Forbidden Error

php,linux,apache,.htaccess,lamp
Images are not loading in my server, This is the error I am getting Forbidden You don't have permission to access PATH/abc.png on this server I can access the images folder and all the images are listed but couldn't access it using url. There is no issue with Permission I...

Why isn't Php not loading values from php.ini? [duplicate]

php,apache,lamp
This question already has an answer here: Changes to upload_max_filesize in Ubunutu php.ini will not take effect 3 answers I have a LAMP setup. I have set the upload_max_filesize directive to 100M and post_max_size to 100M. However on executing phpinfo() the result reveals that maximum limit is still set...

Cloud based alternative to LAMP that can communicate to external API's

php,json,parse.com,lamp,apigee
I am developing PHP plugins for CMS systems that at the moment communicates with my LAMP (PHP server) setup. As I am about to rewrite my server and PHP plugins and I am looking for a way to bypass the server konfiguration, maintaining and so on. The server receives JSON,...

Difference access between the server and my computer mac

osx,symfony-1.4,lamp,chmod
I retrieve a project in symfony 1.4 . The project is currently running on an Ubuntu server (LAMP). When I run the project on my Mac , the photos do not appear yet the path is good . I think it is a problem of access rule but i am...

Apache logs showing strange ^@ characters ? What does this mean ?

apache,lamp
My apache logs are always interrupted by strange characters : 84.196.205.238, 172.23.20.177, 172.23.20.177 - - [05/May/2015:11:48:15 +0200] 0 www.sudinfo.be "GET /sites/default/files/imagecache/pagallery_450x300/552495393_google_street_view HTTP/1.1" 200 32620 "http://www.sudinfo.be/247263/article/culture/medias/2011-11-23/google-street-view-en%C2%A0belgique-comment-trouver-votre-maison" "Mozilla/5.0 (Linux; U; Android 4.2.2; nl-be; GT-P3110 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30"...

PHP Mail not sending on website using Ras Pi LAMP server

php,email,raspberry-pi,lamp
I run my bootstrap website on a Raspberry Pi LAMP server and I'm getting 'Error!' when sending a message using the contact form, the form uses two files using PHP Mail and the contact form is on the home page, here's the code: Contact form on index.html: <div class="col-sm-12"> <form...

PhpMyAdmin Blank Page on fodora 22 localhost server [closed]

php,mysql,phpmyadmin,fedora,lamp
I follow this guide to install LAMP server on fedora 22 workstation How To Install LAMP Stack (Apache, MariaDB And PHP) In Fedora 22 Everything working well except phpmyadmin. When i need access it of the browser i see nothing (blank page) How i can fix this issue ? Any...

Apache2 how to working www.example.com

apache,http,debian,virtualhost,lamp
I need help. I am sorry wrong write. My LAMP server i created virtual host working http://example.com a NOT WORKING http://www.exaple.com <VirtualHost *:80> DocumentRoot "/var/www/example/1/public_html" ServerName example.com ServerAlias www.example.com ServerAdmin [email protected] <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from...