Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp websites don't work after changin php version
    primarykey
    data
    text
    <p>I work with php in a Ubuntu 13.04 environment. I've configured apache so that in my home directory I have a <code>public_html</code> directory where I keep all the websites I'm working on and I can access them with <code>localhost/~homedir/website</code>. Everything used to work fine, but some days ago I downgraded php to version 5.3 to try and solve a problem (which then I didn't) and then I came back to php 5.4.9. This happened some days ago and I don't remember if after all this I checked any of my websites. Anyway, today I tried accessing one and it didn't work. On the apache error.log file I have this:</p> <pre><code>File does not exist: /home/carlo/public_html/website/index.php/welcome Negotiation: discovered file(s) matching request: /home/carlo/public_html/website/index (None could be negotiated). </code></pre> <p>The <code>.htaccess</code> I usually use is like this:</p> <pre><code>RewriteEngine on RewriteBase /~carlo/website/ RewriteCond $1 !^(index\.php|cache|captcha|fonts|forum|media|img|min|css|js|scripts|images|uploads|docs|robots.txt|sitemap.xml|sitemap|public|tools|assets|xd_receiver.htm) RewriteRule ^(.*)$ index.php/$1 [L] </code></pre> <p>On a side note, phpmyadmin is working. I can access it with <code>localhost/phpmyadmin</code>. In <code>/etc/apache2/conf.d/apache.conf</code> I have this:</p> <pre><code>Alias /phpmyadmin /usr/share/phpmyadmin &lt;Directory /usr/share/phpmyadmin&gt; Options FollowSymLinks DirectoryIndex index.php &lt;IfModule mod_php5.c&gt; AddType application/x-httpd-php .php php_flag magic_quotes_gpc Off php_flag track_vars On php_flag register_globals Off php_admin_flag allow_url_fopen Off php_value include_path . php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/ &lt;/IfModule&gt; </code></pre> <p></p> <p>What I think is that downgrading and upgrading php some configuration file changed, but I don't know which one and what to do. Can you help me figuring it out? Shall I post some other info?</p> <p>EDIT:</p> <p>I think I've found out the problem. Apparently, upgrading php the following instructions were reactivated:</p> <pre><code># To re-enable php in user directories comment the following lines # (from &lt;IfModule ...&gt; to &lt;/IfModule&gt;.) Do NOT set it to On as it # prevents .htaccess files from disabling it. &lt;IfModule mod_userdir.c&gt; &lt;Directory /home/*/public_html&gt; php_admin_value engine Off &lt;/Directory&gt; &lt;/IfModule&gt; </code></pre> <p>So, commenting them solved the issue (I hope)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload